l2_getL2RelayMsgParams

Return the params to invoke relayMessage or replayMessage of L2 cross witness contract.

Parameters

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

Returns

Object - A object with the following fields:

  • target: Address - to address of message

  • sender: Address - from address of message

  • message: byte array - message content

  • messageIndex: QUANTITY - the index of message

  • mmrSize: QUANTITY - the size of MMR tree

  • proof: Hash Array - refer MMR proof

Example

Request

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

Result

Last updated