- Tendermint
- Simulate Transaction
Tendermint
Simulate Transaction
Simulate simulates executing a transaction for estimating gas usage.
POST
/cosmos/tx/v1beta1/simulate
tx*
tx_bytes*
curl --request POST \
--url https://api.sonr.network/cosmos/tx/v1beta1/simulate \
--header 'Content-Type: application/json' \
--data '{
"tx": "string",
"tx_bytes": "string"
}'
Parameters
txRequired
string
Tx is the standard type used for broadcasting transactions.
tx_bytesRequired
string
tx_bytes is the raw transaction.
{
"gas_info": {
"gas_wanted": "string",
"gas_used": "string"
},
"result": {
"data": "string",
"log": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string",
"index": true
}
]
}
],
"msg_responses": [
{
"@type": "string"
}
]
}
}
curl --request POST \
--url https://api.sonr.network/cosmos/tx/v1beta1/simulate \
--header 'Content-Type: application/json' \
--data '{
"tx": "string",
"tx_bytes": "string"
}'
{
"gas_info": {
"gas_wanted": "string",
"gas_used": "string"
},
"result": {
"data": "string",
"log": "string",
"events": [
{
"type": "string",
"attributes": [
{
"key": "string",
"value": "string",
"index": true
}
]
}
],
"msg_responses": [
{
"@type": "string"
}
]
}
}