Goshen
  • Introduction
  • Get started
  • For Developers
    • Building on Goshen
    • Gas fee
    • L1/L2 differences
    • JSON RPC API
      • l2_getBatch
      • l2_getBatchIndex
      • l2_getBatchState
      • l2_getEnqueuedTxs
      • l2_getL2MMRProof
      • l2_getL2RelayMsgParams
      • l2_getPendingTxBatches
      • l2_globalInfo
      • l2_getState
      • l2_inputBatchNumber
      • l2_stateBatchNumber
      • debug_getReadStorageProofAtBlock
    • System contracts
    • Runing Goshen Node
  • Advanced Topics
    • L1/L2 Interoperability
      • Cross layer communication
      • Token Bridge
    • White Paper
  • other topics
    • Advantages and comparison
    • Roadmap
Powered by GitBook
On this page
  • Parameters
  • Returns
  • Example
  1. For Developers
  2. JSON RPC API

l2_inputBatchNumber

Return the number of submitted batch.

Parameters

Null

Returns

DATA: QUANTITY, the number of submitted batch.

Example

Request

{
    "jsonrpc": "2.0",
    "method": "l2_inputBatchNumber",
    "id": 0,
    "params": []
}

Result

{
    "jsonrpc": "2.0",
    "id": 0,
    "result": "0x2b"
}
Previousl2_getStateNextl2_stateBatchNumber

Last updated 2 years ago