buildTransaction

Create a transaction. This method supports different contract types including TransferContract, TransferAssetContract, CreateSmartContract, and TriggerSmartContract. The parameters provided in the request determine which type of transaction is created.

Body Params
integer
required
string
enum
required
Allowed:
string
enum
required
Allowed:
params
array of objects
required
length between 1 and 1
params*
string

The address the transaction is sent from

string

The address the transaction is directed to or smart contract address

string

The transfer amount (hex string)

integer

Token ID (for TRC10 tokens)

integer

The transfer amount of TRC10

string

The name of the smart contract (for CreateSmartContract)

string

Fee limit (for CreateSmartContract or TriggerSmartContract)

string

The ABI of the smart contract (as JSON string)

string

Bytecode (for CreateSmartContract) or encoded function call (for TriggerSmartContract)

integer

Consume user resource percent (for CreateSmartContract)

integer

Origin energy limit (for CreateSmartContract)

Response

Language
Credentials
Header
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json