Skip to main content

Query transactions by filter

GET 

/api/chain/tx_by_filter

General transaction query over the node's transaction index: filter by signer, first argument (the receiver of a transfer), contract and function. Results are ordered by signer nonce, not by height.

Only these filter combinations are indexed:

  • signer, arg0, or signer + arg0
  • contract, or contract + function
  • signer + contract, or signer + contract + function
  • arg0 + contract, or arg0 + contract + function
  • signer + arg0 + contract + function

Any other combination (for example function without contract, or no filter at all) returns an empty or incomplete list. Epoch.submit_sol transactions are indexed only under signer, arg0, contract, contract + function, signer + contract and signer + contract + function.

Paging: pass the returned cursor back as cursor (both Base58), or resume from a nonce with start_nonce. cursor is null on the last page.

limit must be at most 1000; a larger value makes the request fail without a JSON reply. Nodes that keep full history (ARCHIVALNODE=true or HISTORY_KEEP_EPOCHS=0; the public RPC hosts answer it) serve this route themselves. Other nodes forward it to an upstream node once they have pruned history, and answer 404 before that.

Request​

Responses​

One page of transactions