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_getL2MMRProof

Return the MMR proof of message that send from L2 to L1.

Parameters

  • msgIndex: uint64|QUANTITY - specified cross chain msg, enable hex-encoded and original string.

  • size: uint64|QUANTITY - MMR tree size

Returns

Array: Hash Array - MMR proof

Example

Request

{
    "jsonrpc": "2.0",
    "method": "l2_getL2MMRProof",
    "id": 0,
    "params": [
        "0x1",
        "0x5"
    ]
}

Result

{
    "jsonrpc": "2.0",
    "id": 0,
    "result": [
        "0xb5e35054842f48bde929a99d84f8163b7b617133e52764c15240fafa442d461f",
        "0x1e219662760f97600f27a64080c6082edf480373f16385a6b2f8ace58e23187a",
        "0x4ffab73a1f643f1de3d69e1a7dad96b3544852fb24d88f1984b4cb326039e375"
    ]
}
Previousl2_getEnqueuedTxsNextl2_getL2RelayMsgParams

Last updated 2 years ago