Skip to main content

transactionBlocks

The transaction blocks that exist in the network.

scanLimit restricts the number of candidate transactions scanned when gathering a page of results. It is required for queries that apply two or more complex filters (on function, affected address, recipient, input object, changed object, or wrapped or deleted object), and can be at most serviceConfig.maxScanLimit. A kind filter cannot be combined with any of them.

When the scan limit is reached the page will be returned even if it has fewer than first results when paginating forward (last when paginating backwards). If there are more transactions to scan, pageInfo.hasNextPage (or pageInfo.hasPreviousPage) will be set to true, and PageInfo.endCursor (or PageInfo.startCursor) will be set to the last transaction that was scanned as opposed to the last (or first) transaction in the page.

Requesting the next (or previous) page after this cursor will resume the search, scanning the next scanLimit many transactions in the direction of pagination, and so on until all transactions in the scanning range have been visited.

By default, the scanning range includes all checkpointed transactions known to GraphQL, but it can be restricted by the after and before cursors, and the beforeCheckpoint, afterCheckpoint and atCheckpoint filters. Transactions that don't have a checkpoint yet are always omitted.

DEPRECATION NOTICE: Support for the combination of two or more complex filters as discussed above will stop with the v1.38 release. scanLimit will thus become obsolete and will be removed as well.

transactionBlocks(
first: Int
after: String
last: Int
before: String
filter: TransactionBlockFilter
scanLimit: Int
): TransactionBlockConnection!

Arguments​

transactionBlocks.first ● Int scalar​

transactionBlocks.after ● String scalar​

transactionBlocks.last ● Int scalar​

transactionBlocks.before ● String scalar​

transactionBlocks.filter ● TransactionBlockFilter input​

transactionBlocks.scanLimit ● Int deprecated scalar​

DEPRECATED

scanLimit will be removed with v1.38, along with the support for combining complex filters.

Type​

TransactionBlockConnection object​