Skip to main content
POST
https://api.uniblock.dev
/
uni
/
v1
/
json-rpc
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "tx_search",
    "params": [
      "tx.height=1000",
      true,
      1,
      30,
      "asc",
      true
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "txs": [
      {
        "hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
        "height": "1000",
        "index": 0,
        "tx_result": {
          "__truncated": true
        },
        "tx": "5wHwYl3uCkaoo2GaChQmSIu8hxpJxLcCuIi8fiHN4TMwrRIU/Af1cEG7Rcs/6LjTl7YjRSymJfYaFAoFdWF0b20SCzE0OTk5OTk1MDAwEhMKDQoFdWF0b20S...",
        "proof": {
          "__truncated": true
        }
      }
    ],
    "total_count": "2"
  }
}

Parameters

chainId
string
default:"137"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"tx_search"
required
JSON-RPC method name.
params
object
required
Transaction search parameters in the order: [query, prove, page, per_page, order_by, match_events]Positional parameters for tx_search:
  • params[0]: A transaction query string (e.g., “tx.height=1000”).
  • params[1]: Include proofs of the transaction inclusion in the block.
  • params[2]: Page number (1-based).
  • params[3]: Number of entries per page (max: 100).
  • params[4]: Order of transaction sorting (“asc” or “desc”), by height & index.
  • params[5]: Match attributes in query within events in addition to height & txhash.

Returns

result
object
The transactions returned with the search queries.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=137 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "tx_search",
    "params": [
      "tx.height=1000",
      true,
      1,
      30,
      "asc",
      true
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "txs": [
      {
        "hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
        "height": "1000",
        "index": 0,
        "tx_result": {
          "__truncated": true
        },
        "tx": "5wHwYl3uCkaoo2GaChQmSIu8hxpJxLcCuIi8fiHN4TMwrRIU/Af1cEG7Rcs/6LjTl7YjRSymJfYaFAoFdWF0b20SCzE0OTk5OTk1MDAwEhMKDQoFdWF0b20S...",
        "proof": {
          "__truncated": true
        }
      }
    ],
    "total_count": "2"
  }
}