GETTx Search

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

Searches for transactions matching the query conditions.

Query Parameters
querystringrequired

Transaction search query string.

provestring

String boolean indicating whether to include the transaction's block inclusion proof in the result.

pagestring

Page number (starting from 1).

per_pagestring

Number of items to return per page (maximum 100).

order_bystring

Sort order. "asc" or "desc". Defaults to the default sort order if omitted.

Responses
jsonrpcstringrequired

JSON-RPC protocol version. Always 2.0.

idintegerrequired

The request ID, echoed back unchanged.

txsobject[]required

Transactions matching the search query.

hashstring

Transaction hash.

heightstring

Height of the block containing the transaction.

indexinteger

Index of the transaction within the block.

tx_resultobject

Transaction execution result.

logstring

Execution log message.

gas_wantedstring

Gas limit requested by the transaction.

gas_usedstring

Gas actually used.

tagsobject[]

Tags recorded during transaction execution.

keystring

Tag key.

valuestring

Tag value.

indexboolean

Whether the tag is indexed.

txstring

Raw transaction (Base64).

proofobject

Merkle proof that the transaction is included in the block.

RootHashstring

Root hash of the block's transaction Merkle tree.

Datastring

The raw transaction being proven.

Proofobject

Merkle proof.

totalstring

Total number of leaves in the Merkle tree.

indexstring

Index of the proven leaf.

leaf_hashstring

Hash of the proven leaf.

auntsstring[]

Hashes of the sibling nodes on the path to the root.

total_countstringrequired

Total number of results matching the query.

X-API-KEY
RequestCU40
cURL
curl -X GET "https://rpc-babylon-mainnet.nodit.io/tx_search?query=tx.height=1000&prove=false&page=1&per_page=30&order_by=asc" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "txs": [
      {
        "hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
        "height": "1000",
        "index": 0,
        "tx_result": {
          "log": "[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]",
          "gas_wanted": "200000",
          "gas_used": "28596",
          "tags": [
            {
              "key": "action",
              "value": "send",
              "index": true
            }
          ]
        },
        "tx": "a/encoded_tx/c"
      }
    ],
    "total_count": "1"
  }
}