Skip to main content
Create a transaction, different transaction types have different parameters. This method will use 40 Compute Units.

TransferContract

Parameters

Object - the items in object as below: from - String of the address the transaction is sent from. to - String of the address the transaction is directed to. value - Integer of the value sent with this transaction encoded as a hexadecimal.

Returns

Object - transaction of TransferContract or an error.

TransferAssetContract

Parameters

Object - the items in object as below: from - String of the address the transaction is sent from. to - String of the address the transaction is directed to. tokenId - Token ID tokenValue - The transfer amount of TRC10

Returns

Object - transaction of TransferAssetContract or an error

CreateSmartContract

Parameters

Object - the items in object as below:

Returns

Object - transaction of CreateSmartContract or an error

TriggerSmartContract

Parameters

Object - the items in object as below:

Returns

Object - transaction of TriggerSmartContract or an error