Message Sender
Get signed pending on-chain messages from the Bridge node
API Endpoint
Request Method
GET
Request Parameters:
target_chain:The chain ID of the target blockchain.
executor_contract_address:The address of the executor contract on the target chain.
last_message_timestamp:The timestamp of the last retrieved message. Use
0
if fetching for the first time.
Example Request
Example Response
Response Parameters
The response is an array of message objects, where each element represents a cross-chain message. Each message contains the following fields:
no
: Unique message number, typically used to identify the message order.msg
: The main message body, containing the following sub-fields:head
: Message header, containing metadata:type
: Message type (e.g., 0 means a normal message).nonce
: Message nonce, used to prevent replay attacks.from_chain
: Source chain information, including:vm
: Virtual machine type of the source chain (e.g., Solana).id
: Identifier of the source chain.
from_addr
: Source address representing the sender of the message.to_chain
: Destination chain information, including:vm
: Virtual machine type of the target chain (e.g., Endless).id
: Identifier of the target chain.
to_addr
: Destination address representing the receiver of the message.fee_relay
: Relay fee, representing the cost needed to process this message.
body
: Content of the message body, usually a byte sequence containing the actual data to be transferred.fee_msger
: Message fee, representing the cost required to send this message.from_block
: Block height on the source chain, indicating the originating block of the message.from_hash
: Source block hash, containing:hash
: The hash value of the block.chain
: Information of the source chain (VM type and ID).
sig
: Array of signatures, containing signature information for the message:pubkey
: Public key of the signer.sig
: Signature value used to verify the message’s integrity and origin.
sig_pubkeys
: Array of public keys, listing all public keys involved in the signature aggregation.
Last updated