curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createtransaction \
--header 'Content-Type: application/json' \
--data '
{
"to_address": "41e9d79cc47518930bc322d9bf7cddd260a0260a8d",
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"amount": 1000,
"visible": false
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/createtransaction \
--header 'Content-Type: application/json' \
--data '
{
"to_address": "41e9d79cc47518930bc322d9bf7cddd260a0260a8d",
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"amount": 1000,
"visible": false
}
'{
"visible": true,
"txID": "<string>",
"raw_data": {
"contract": "<array>",
"ref_block_bytes": "<string>",
"ref_block_hash": "<string>",
"expiration": 123,
"timestamp": 123
},
"raw_data_hex": "<string>"
}to_address — the recipient’s TRON address (hex format)owner_address — the sender’s TRON address (hex format)amount — the amount of TRX to transfer (in sun, where 1 TRX = 1,000,000 sun)visible — optional boolean to specify address format (default: false for hex format)visible — boolean indicating address format usedtxID — transaction ID hashraw_data — raw transaction data object containing:
contract — array with transfer contract detailsref_block_bytes — reference block bytesref_block_hash — reference block hashexpiration — transaction expiration timestamptimestamp — transaction creation timestampraw_data_hex — hexadecimal representation of raw transaction datawallet/createtransaction method is used for:
Was this page helpful?