Parameters
- fromstringREQUIRED
The account address of the Super Representative
- comissionintegerREQUIRED
The commission percentage (0-100) for the SR to share with voters
Returns
- transactionobject
The transaction object that will be sent to the network
- raw_dataobject
The raw transaction data
- ref_block_bytesstring
The bytes of the previous block hash
- ref_block_numinteger
The reference block number
- ref_block_hashstring
The hash of the previous block
- expirationinteger
The expiration time of the transaction
- authsarray
Authorization information
- datastring
Additional data associated with the transaction (not used)
- contractarray
The details of the smart contracts involved in the transaction
- typestring
The type of smart contract (enum: Transaction_Contract_ContractType)
- parameterobject
The parameters of the smart contract function being called
- valuestring
The actual data of the contract
- type_urlstring
The type of data being represented by the parameter
- providerstring
The provider of the contract
- ContractNamestring
The name of the contract
- Permission_idinteger
The permission ID for the contract
- scriptsstring
Script data associated with the transaction (not used)
- timestampinteger
The timestamp of the transaction
- fee_limitinteger
The maximum fee limit for the transaction
- signaturearray
The signatures associated with the transaction
- retarray
The results of the transaction execution
- feeinteger
The fee paid for the transaction
- retstring
The result code of the transaction (enum: Transaction_ResultCode)
- contractRetstring
The contract result of the transaction (enum: Transaction_ResultContractResult)
- assetIssueIDstring
The ID of the asset issued
- withdraw_amountinteger
The amount withdrawn (if applicable)
- unfreeze_amountinteger
The amount unfrozen (if applicable)
- exchange_received_amountinteger
The amount received in exchange operation
- exchange_inject_another_amountinteger
The amount injected in exchange operation
- exchange_withdraw_another_amountinteger
The amount withdrawn in exchange operation
- exchange_idinteger
The exchange ID (if applicable)
- shielded_transaction_feeinteger
The fee for shielded transactions
- orderIdstring
The order ID (if applicable)
- orderDetailsarray
Details of market orders
- makerOrderIdstring
The ID of the maker order
- takerOrderIdstring
The ID of the taker order
- fillSellQuantityinteger
The quantity filled on the sell side
- fillBuyQuantityinteger
The quantity filled on the buy side
- withdraw_expire_amountinteger
The expired withdrawal amount
- cancelUnfreezeV2Amountobject
Mapping of canceled unfreeze V2 amounts
- txidstring
The transaction ID (sha256 hash of transaction.rowdata)
- constant_resultarray
Results of constant function calls
- resultobject
The result of creating the transaction
- resultboolean
Whether the transaction was created successfully
- codestring
The result code
- messagestring
The result message
- energy_usedinteger
The amount of energy used
- logsarray
The logs generated during transaction execution
- addressstring
The address that generated the log
- topicsarray
The topics of the log
- datastring
The data contained in the log
- internal_transactionsarray
Internal transactions triggered by this transaction
- hashstring
The hash of the internal transaction
- caller_addressstring
The address of the caller
- transferTo_addressstring
The address of the recipient
- callValueInfoarray
Information about the call value
- callValueinteger
The amount of TRX transferred
- tokenIdstring
The ID of the token transferred
- notestring
Additional notes about the internal transaction
- rejectedboolean
Whether the internal transaction was rejected
- extrastring
Extra information about the internal transaction
- energy_penaltyinteger
The energy penalty incurred