l2_getBatch

Return the number of submitted batch state.

Parameters

  • batchIndex: uint64|QUANTITY - specified batch number, enable hex-encoded and original string.

  • useDetail: boolean - If true it returns the full transaction objects, if false it returns only the hashes of the transactions.

Returns

Object - A batch object with the following fields:

  • batchHash: 32 Bytes - hash of a batch

  • batchNumber: QUANTITY - batch number

  • queueNum: QUANTITY - the number of enqueued transactions included in batch

  • queueStart: QUANTITY - the start index of enqueued transactions included in batch

  • sequencer: Address - sequencer address

  • subBatches: Array - Array of object that describe sub batch:

    • timestamp: QUANTITY - the timestamp of sub batch

    • transactions: Object|32 bytes - the transaction object or hash

Example

Request

Result

Last updated