Skip to main content

Parameters

chainId
string
default:"560048"
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:"ots_searchTransactionsBefore"
required
JSON-RPC method name.
params
object
required
The parameters for method ots_searchTransactionsBefore: [address, defaultBlock, pageSize].Positional parameters for ots_searchTransactionsBefore:
  • params[0]: The address.
  • params[1]: Block identifier. Can be an integer block number or a string tag: “latest”, “earliest”, or “pending”.
  • params[2]: The page size for the number of results to return.

Returns

result
object
Paginated list of transactions and receipts for a given address before or after a specified block number.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=560048 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "ots_searchTransactionsBefore",
    "params": [
      "0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95",
      0,
      5
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}