⚡ We welcome businesses to test our enterprise-grade service

Method: POST /wallet/createtransaction

dropdown

Method REST /wallet/createtransaction example for Tron (TRX)

POST /wallet/createtransaction

Method not allowed

Create a TRX transfer transaction. If to_address does not exist, then create the account on the blockchain.

Parameters

to_address - string

To_address is the transfer address, converted to a hex string

owner_address - string

Owner_address is the transfer address, converted to a hex string

amount - int64

Amount is the transfer amount,the unit is sun

permission_id - int32

Optional, for multi-signature use

visible - boolean

Optional.Whehter the address is in base58 format.

extra_data - string

Optional, totes on the transaction, HEX format

Request

curl --location --request POST 'https://trx.getblock.io/wallet/createtransaction' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{}'


Response

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