POSTBroadCastTxSync

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

Broadcasts a transaction synchronously and returns the CheckTx result. Does not wait for the DeliverTx result.

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.

codespacestring

Namespace of the result code.

hashstring

Transaction hash.

X-API-KEY
RequestCU40
cURL
curl -X POST "https://rpc-babylon-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "broadcast_tx_sync",
  "params": {
    "tx": "a/encoded_tx/c"
  }
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "code": "0",
    "data": "",
    "log": "[]",
    "codespace": "",
    "hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED"
  }
}