- Tendermint
- Broadcast Transaction
Tendermint
Broadcast Transaction
Broadcast a transaction to the network
POST
/cosmos/tx/v1beta1/txs
tx_bytes*
mode*
curl --request POST \
--url https://api.sonr.network/cosmos/tx/v1beta1/txs \
--header 'Content-Type: application/json' \
--data '{
"tx_bytes": "string",
"mode": "string"
}'
Parameters
tx_bytesRequired
string
Raw transaction bytes.
modeRequired
string
Mode can be sync, async, or block. sync and async modes return after CheckTx. block mode returns after DeliverTx.
{
"tx_response": {
"height": "string",
"txhash": "string",
"codespace": "string",
"code": 0,
"data": "string",
"raw_log": "string",
"logs": [
{
"msg_index": 0,
"log": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string"
}
]
}
]
}
],
"info": "string",
"gas_wanted": "string",
"gas_used": "string",
"tx": {
"@type": "string"
},
"timestamp": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string",
"index": true
}
]
}
]
}
}
curl --request POST \
--url https://api.sonr.network/cosmos/tx/v1beta1/txs \
--header 'Content-Type: application/json' \
--data '{
"tx_bytes": "string",
"mode": "string"
}'
{
"tx_response": {
"height": "string",
"txhash": "string",
"codespace": "string",
"code": 0,
"data": "string",
"raw_log": "string",
"logs": [
{
"msg_index": 0,
"log": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string"
}
]
}
]
}
],
"info": "string",
"gas_wanted": "string",
"gas_used": "string",
"tx": {
"@type": "string"
},
"timestamp": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string",
"index": true
}
]
}
]
}
}