TRON
wallet/votewitnessaccount15 额度
Builds an unsigned transaction that votes for super representatives.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner_address | string | Transaction initiator address (base58 or hex). |
| votes | Object[] | Votes: array of { vote_address, vote_count }; vote_address is the SR address, vote_count must be > 0. Replaces all previous votes of the account. |
| Permission_id | number | Permission ID for multi-signature accounts; defaults to the owner permission (0). (可选) |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (可选) |
返回值
类型
Object
Unsigned transaction object (txID, raw_data, raw_data_hex, visible). It is only built, not signed or broadcast; sign it and send it with wallet/broadcasttransaction. On failure an object with an Error string (still HTTP 200).
代码示例
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/votewitnessaccount' \
-X POST \
-H 'content-type: application/json' \
-d '{
"owner_address": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
"votes": [
{
"vote_address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"vote_count": 1
}
],
"visible": true
}'