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 -toaddress of messagesender: Address -fromaddress of messagemessage: byte array - message contentmessageIndex: QUANTITY - the index of messagemmrSize: QUANTITY - the size of MMR treeproof: Hash Array - refer MMR proof
Example
Request
{
"jsonrpc": "2.0",
"method": "l2_getL2RelayMsgParams",
"id": 0,
"params": [
"0x1"
]
}Result
Last updated