Skip to main content

TransferContract RPC Method

Sends token to another address on the network.

Updated on
Oct 04, 2023

Parameters

from
string
REQUIRED

The address of the account that sends the transaction and will be the owner of the new smart contract

to
string
REQUIRED

The address of the account that received the transaction

value
string
REQUIRED

The amount of TRX (Tronix) that is transferred with the transaction

Returns

result

This method returns an error if the asset balance is less than zero, otherwise it returns the following transaction object

transaction

The transaction object which contain the following fields:

visible

A boolean value indicating whether the transaction is visible on the blockchain or not

txID

The id of the transaction

raw_data

The raw transaction data, including the contract and its parameters

contract

The details of the smart contract involved in the transaction

parameter

The parameter of the smart contract function being called in the transaction

value

The value object containing following fields:

amount

The amount of token to be transferred

owner_address

The address of the owner of the token being transferred

to_address

The address of the receiver to which the token is to be transferred

type_url

The type of data being represented by the parameter or output

type

The type of smart contract

ref_block_bytes

The bytes of the previous block hash

ref_block_hash

The hash of the previous block

expiration

The expiration time of the transaction

fee_limit

The maximum fee limit for the transaction

timestamp

The timestamp of the transaction

raw_data_hex

The raw transaction data, encoded in hexadecimal format

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free