Message Contract
1. Send Message Contract Interface
1.1. In the Endless chain, the Message sending interface is defined as follows:
Message sending interface is defined as follows:public fun send_message_v2(
sender: &signer,
executor: &signer,
excutor_account: &address,
mtype: u8,
to_chain: vector<u8>,
to_addr: vector<u8>,
mbody: vector<u8>,
fee: u128
)1.2. The messages and ABI sent on the sepolia, bsc, and nile chains are as follows:
1.3. The method definition and IDL for sending messages on the solana chain are as follows:
2. Consumer message contract interface
2.1. In the Endless chain, the consumption message interface is defined as follows:
2.2. Consumption of Messages on Sepolia, BSC, and Nile Chains — Definition and ABI:
2.3.The definition and IDL of the message consumption method on the Solana chain are as follows:
Last updated