POSTCheckTx

https://rpc-cosmos-mainnet.nodit.io/

Validates a transaction without executing it.

Request Body
jsonrpcstring (enum)required

JSON-RPC protocol version. Always 2.0.

idintegerrequired

Identifier of the request. Returned unchanged as id in the response.

methodstring (enum)required

Name of the JSON-RPC method to call.

txstringrequired

Encoded transaction.

Responses
jsonrpcstringrequired

JSON-RPC protocol version. Always 2.0.

idintegerrequired

The request ID, echoed back unchanged.

errorstring

Error information returned when the request fails.

codestring

Result code. 0 means success; any other value is an error.

datastring

Data returned by CheckTx.

logstring

Execution log message.

infostring

Additional information.

gas_wantedstring

Gas limit requested by the transaction.

gas_usedstring

Gas actually used.

eventsobject[]

Events emitted during execution.

typestring

Event type.

attributesobject[]

Event attributes (key-value pairs).

keystring

Attribute key.

valuestring

Attribute value.

indexboolean

Whether the attribute is indexed.

codespacestring

Namespace of the result code.

X-API-KEY
RequestCU25
cURL
curl -X POST "https://rpc-cosmos-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "check_tx",
  "params": {
    "tx": "a/encoded_tx/c"
  }
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "code": "0",
    "data": "",
    "log": "[]",
    "info": "",
    "gas_wanted": "200000",
    "gas_used": "80000",
    "events": [],
    "codespace": ""
  }
}