buildTransaction(TransferContract) {disallowed} - TRON

Example code for the buildTransaction(TransferContract) {disallowed} json-rpc method. Сomplete guide on how to use buildTransaction(TransferContract) {disallowed} json-rpc in GetBlock.io Web3 docume

Parameters

from - data, 20 bytes

The address the transaction is sent from.

to - data, 20 bytes

The address the transaction is directed to.

value - data

the transfer amount

Request

curl --location --request POST 'https://trx.getblock.io/mainnet/jsonrpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "buildTransaction",
"params": ["0xC4DB2C9DFBCB6AA344793F1DDA7BD656598A06D8", "0x95FD23D3D2221CFEF64167938DE5E62074719E54", "0x1f4"],
"id": "getblock.io"}'

Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}

Last updated

© 2019-2024 GetBlock LLC. All rights reserved ID: 21835790. Address: Belgrade, Serbia.