curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/broadcasttransaction \
--header 'Content-Type: application/json' \
--data '{
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"amount": 1000,
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"to_address": "41e9d79cc47518930bc322d9bf7cddd260a0260a8d"
},
"type_url": "type.googleapis.com/protocol.TransferContract"
},
"type": "TransferContract"
}
],
"ref_block_bytes": "5e4b",
"ref_block_hash": "47c9dc89341b300d",
"expiration": 1591089627000,
"timestamp": 1591089567635
},
"raw_data_hex": "0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e",
"signature": [
"<string>"
],
"visible": false
}'
{
"result": true,
"code": "<string>",
"message": "<string>",
"txid": "<string>"
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/broadcasttransaction \
--header 'Content-Type: application/json' \
--data '{
"raw_data": {
"contract": [
{
"parameter": {
"value": {
"amount": 1000,
"owner_address": "41608f8da72479edc7dd921e4c30bb7e7cddbe722e",
"to_address": "41e9d79cc47518930bc322d9bf7cddd260a0260a8d"
},
"type_url": "type.googleapis.com/protocol.TransferContract"
},
"type": "TransferContract"
}
],
"ref_block_bytes": "5e4b",
"ref_block_hash": "47c9dc89341b300d",
"expiration": 1591089627000,
"timestamp": 1591089567635
},
"raw_data_hex": "0a025e4b220847c9dc89341b300d40f8fed3a2a72e5a66080112620a2d747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5472616e73666572436f6e747261637412310a1541608f8da72479edc7dd921e4c30bb7e7cddbe722e121541e9d79cc47518930bc322d9bf7cddd260a0260a8d18e8077093afd0a2a72e",
"signature": [
"<string>"
],
"visible": false
}'
{
"result": true,
"code": "<string>",
"message": "<string>",
"txid": "<string>"
}
raw_data
— the raw transaction data object containing:
contract
— array of contract objects with transaction detailsref_block_bytes
— reference block bytesref_block_hash
— reference block hashexpiration
— transaction expiration time in millisecondstimestamp
— transaction creation timestampraw_data_hex
— hexadecimal representation of the raw transaction datasignature
— array of transaction signatures (required for signed transactions)visible
— optional boolean for address formatresult
— boolean indicating broadcast successcode
— error code if broadcast failedmessage
— hexadecimal error message if broadcast failedtxid
— transaction ID if broadcast succeededwallet/broadcasttransaction
method is used for:
Transaction broadcast result
The response is of type object
.
Was this page helpful?