Skip to main content

FlowBatch

Creating streams in bulk is possible using the Sablier batch contracts.

type FlowBatch {
id: String!
hash: Bytes
timestamp: BigInt
batcher: FlowBatcher
position: BigInt
size: BigInt!
streams(
skip: Int = 0
first: Int = 100
orderBy: FlowStream_orderBy
orderDirection: OrderDirection
where: FlowStream_filter
): [FlowStream!]!
}

Fields

FlowBatch.id ● String! non-null scalar

Unique identifier: batch-{chainId}-{txHash}-{batcher}

FlowBatch.hash ● Bytes scalar

Hash of the Ethereum transaction that created this batch.

FlowBatch.timestamp ● BigInt scalar

Timestamp of the transaction that created this batch.

FlowBatch.batcher ● FlowBatcher object

The sender address that created this batch.

FlowBatch.position ● BigInt scalar

Index of the batch based on the batchCounter in the Batcher entity.

FlowBatch.size ● BigInt! non-null scalar

Number of streams part of this batch.

FlowBatch.streams ● [FlowStream!]! non-null object

Streams part of this batch.

FlowBatch.streams.skip ● Int scalar
FlowBatch.streams.first ● Int scalar
FlowBatch.streams.orderBy ● FlowStream_orderBy enum
FlowBatch.streams.orderDirection ● OrderDirection enum
FlowBatch.streams.where ● FlowStream_filter input