transferasset - Tron

transferasset. Creates a transaction to transfer a TRC10 token between two addresses.

transferasset - tron [Value: 20CU]
Creates a transaction to transfer a TRC10 token between two addresses.
Use cases

Use cases

  • Send a TRC10 token payment from one address to another
Constraints

Constraints

  • The sending address must already hold a balance of the specified TRC10 token
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://lb.drpc.live/tron/{API-KEY}/wallet/transferasset \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "to_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g", "asset_name": "example", "amount": 1, "visible": true}'
Copy
Response
200
{
  "visible": false,
  "txID": "7a8b50753079977b2cc0ddc19309c568e5bcaa8d2d865b3d96b40719b1b8df6f",
  "raw_data": {
    "contract": [
      {
        "parameter": {
          "value": {
            "amount": 100,
            "asset_name": "31303035343136",
            "owner_address": "41dd791d6b49e190062d650e6a23c575510d35f2f9",
            "to_address": "4192ad11c1bf16b3b14b0bd6b5c7e2db73a0b5e83a"
          },
          "type_url": "type.googleapis.com/protocol.TransferAssetContract"
        },
        "type": "TransferAssetContract"
      }
    ],
    "ref_block_bytes": "2765",
    "ref_block_hash": "d2e724f76534cfc4",
    "expiration": 1777446171000,
    "timestamp": 1777446111063
  },
  "raw_data_hex": "0a0227652208d2e724f76534cfc440f8e2b0c0dd335a730802126f0a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e736665724173736574436f6e747261637412390a0731303035343136121541dd791d6b49e190062d650e6a23c575510d35f2f91a154192ad11c1bf16b3b14b0bd6b5c7e2db73a0b5e83a206470d78eadc0dd33"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
object
owner_addressstring
[Required] The address sending the TRC10 token.
to_addressstring
[Required] The address receiving the TRC10 token.
asset_namestring
[Required] The identifier of the TRC10 token being transferred. Since the ALLOW_SAME_TOKEN_NAME proposal, this is the token's numeric id represented as a string (e.g. 1000001), UTF-8 encoded as a hex string.
amountinteger
[Required] The quantity of the token to transfer, expressed in its smallest unit.
extra_datastring
A memo attached to the transfer; hex-encoded, or plain UTF-8 text when visible=true.
Permission_idinteger
The ID of the multi-sig permission group authorizing this operation, if the sender account uses multi-sig.
visibleboolean
Whether addresses and text fields in the request/response are formatted as Base58/UTF-8 (true) or hex (false).

Response

200
Creates a transaction to transfer a TRC10 token between two addresses.

Response params

object
visibleboolean
Indicates whether addresses in this transaction are represented in base58 format (true) or hex format (false).
txIDstring
The unique transaction hash (transaction ID), computed as the SHA256 of raw_data.
raw_dataobject
The unsigned transaction body containing the contract instruction and blockchain reference data.
object
contractarray_of_objects
The list of contract instructions to be executed by this transaction.
object
parameterobject
The typed payload describing the specific contract call being made.
object
valueobject
The decoded fields of the contract — here, a TRC10 asset transfer.
object
amountinteger
[Required] The quantity of the token being transferred, expressed in its smallest unit.
asset_namestring
[Required] The identifier of the TRC10 token being transferred, UTF-8 encoded as a hex string.
owner_addressstring
[Required] The address sending the TRC10 token, in hex format.
to_addressstring
[Required] The address receiving the TRC10 token, in hex format.
type_urlstring
The fully qualified protobuf type identifier describing which contract schema `value` should be decoded with.
typestring
The human-readable name of the contract type being executed (here, TransferAssetContract).
ref_block_bytesstring
The last two bytes of the reference block number, used for transaction expiration and replay protection.
ref_block_hashstring
The last eight bytes of the reference block's hash, paired with ref_block_bytes for replay protection.
expirationinteger
Unix timestamp, in ms, after which this transaction is no longer valid and will be rejected by the network.
timestampinteger
Unix timestamp, in ms, marking when the transaction was created/signed by the client.
raw_data_hexstring
The hex-encoded serialized bytes of raw_data, used as the actual payload to sign and broadcast.