Message with Ton
Last updated
Last updated
Check here.
kQDJdptC1nHSC9XUR2q5fSFIY8hAHqZYqfoZRF01Y6joXYfJ
relay
indicates whether message processing is required on MAP Relay Chain (set to 1
if processed on MAP Relay Chain).
msgType
indicates different message, MESSAGE
(set to 1
) or CALLDATA
(set to 0
, deprecated, not supported on TON Network).
target
is the contract address where the message will be executed upon reaching the target chain
payload
is the data intended for cross-chain transmission.
gasLimit
is the maximum gas limit allowed for execution on the target chain.
relay
0
msgType
1
MESSAGE
toChain
11155111
Sepolia chain id
initiator
0x00f723e983d1cfc0da138b9046e03ca500dbe8a23e12b960c415ad423615180ecb
The raw address 0:f723e983d1cfc0da138b9046e03ca500dbe8a23e12b960c415ad423615180ecb
of
EQD3I-mD0c_A2hOLkEbgPKUA2-iiPhK5YMQVrUI2FRgOy4LB
target
0x8c8afd3ff50c4D8e0323815b29E510a77D2c41fd
Executor contract on Sepolia
gasLimit
300000
payload
0x96a296d224f285c6...
Sending a omni-chain message to TON is the same as sending messages to other chains. You can directly encode the assembled MessageData
and then call transferOut
to send the omni-chain message. It is essential to ensure that the message data payload is a message that can be recognized by TON.
Here, toChain
is the TON Network chain id:
mainnet: 1360104473493505
testnet: 1360104473493506
toChain
1360104473493506
TON Testnet chain id
relay
0
msgType
1
MESSAGE
target
0x002bffbd154f9e738634d618e0c8f4928531e3f85c475fc934461f2ccf18bfe5e5
The raw address 0:2bffbd154f9e738634d618e0c8f4928531e3f85c475fc934461f2ccf18bfe5e5
of
UQAr_70VT55zhjTWGODI9JKFMeP4XEdfyTRGHyzPGL_l5cHA
gasLimit
50000000
send 0.05 TON as gas fee
payload
0x96a296d224f285c6...
On ton network, will send an mapo_execute(0xa5b6af5b)
message to the target contract.
And check here.