Skip to main content

batches

No description

batches(
skip: Int = 0
first: Int = 100
orderBy: Batch_orderBy
orderDirection: OrderDirection
where: Batch_filter
block: Block_height
subgraphError: _SubgraphErrorPolicy_! = deny
): [Batch!]!

Arguments​

batches.skip ● Int scalar​

batches.first ● Int scalar​

batches.orderBy ● Batch_orderBy enum​

batches.orderDirection ● OrderDirection enum​

batches.where ● Batch_filter input​

batches.block ● Block_height input​

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

batches.subgraphError ● _SubgraphErrorPolicy_! non-null enum​

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

Type​

Batch object​

Creating streams in bulk is possible using the SablierBatchLockup contract. See https://github.com/sablier-labs/evm-monorepo/blob/main/lockup/src/SablierBatchLockup.sol

Note: the entity can be immutable because a batch is only updated in the same block. See https://thegraph.com/docs/en/subgraphs/developing/creating/ql-schema/#defining-entities