Skip to content

Transactions Query Language

zyuhel edited this page Nov 12, 2018 · 20 revisions

Transactions Queries are consist of multiple pairs of keys values, with , as separator.

All parameters join by "OR" by default, to join with "AND" specify AND: in front of the parameter.

Available parameters:

  • blockId: Block id of transaction. (String)

Example: blockId=7917597195203393333 will show transactions from block 7917597195203393333

  • senderId: Sender address of transaction. (String)

Example: senderId=U15423595369615486571 will show transactions sent from address U15423595369615486571

  • recipientId: Recipient of transaction. (String)

Example: recipientId=U18322695495053155871 will show transactions that are sent to address U18322695495053155871

  • inId: Recipient or sender address of transaction. (String)

Example: inId=U15423595369615486571 will show transactions from or to address U15423595369615486571

  • type: Transaction type (Number)

Example: type=0 will show transactions with type 0 (transfer tokens transactions)

Available options:

  • limit: Limit of transaction to send in response. Default is 20. (Number)
  • offset: Offset to load. (Integer number)
  • orderBy: Name of column to order. After column name must go "desc" or "asc" to choose order type. Example: orderBy=timestamp:desc (String)

Complex query examples:

inId=U15423595369615486571, type=0, limit=1, orderBy=timestamp:desc - will show 1 last transfer tokens transaction where appear U15423595369615486571

blockId=7917597195203393333, and:recipientId=U18322695495053155871, orderBy=timestamp:asc - will show all transactions from block 7917597195203393333 that has U18322695495053155871 as recipient

Clone this wiki locally