1. Tendermint
  2. Simulate Transaction
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"
      }
    ]
  }
}