TRON
wallet/transferasset15 créditos
Builds an unsigned TRC-10 token transfer transaction.
Parámetros
| Nombre | Tipo | Descripción |
|---|---|---|
| owner_address | string | Transaction initiator address (base58 or hex). |
| to_address | string | Recipient address (base58 or hex). |
| asset_name | string | TRC-10 token id: plain decimal id when visible is true, hex of its UTF-8 bytes otherwise. |
| amount | number | Amount in the smallest unit of the token. |
| extra_data | string | Transaction note in hex. (opcional) |
| Permission_id | number | Permission ID for multi-signature accounts; defaults to the owner permission (0). (opcional) |
| visible | boolean | true = base58 addresses (in the request and the response); false (default) = hex addresses. (opcional) |
Valor devuelto
Tipo
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).
Ejemplos de código
curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/transferasset' \
-X POST \
-H 'content-type: application/json' \
-d '{
"owner_address": "TLsV52sRDL79HXGGm9yzwKibb6BeruhUzy",
"to_address": "T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb",
"asset_name": "1000001",
"amount": 10,
"visible": true
}'