Transact on AssetHub & Parachain
A guide on using the Snowbridge TypeScript SDK for integration.
Transact On AssetHub
const remarkCall = moonbeam.tx.system.remarkWithEvent(remarkMessage)
const callHex = remarkCall.method.toHex()
// Get weight info for the call
const paymentInfo = await remarkCall.paymentInfo(POLKADOT_ACCOUNT_PUBLIC)
const weight = paymentInfo.weight
const customXcm = [
{
transact: {
originKind: "SovereignAccount",
fallbackMaxWeight: {
refTime: weight.refTime.toBigInt(),
proofSize: weight.proofSize.toBigInt(),
},
call: {
encoded: callHex,
},
},
},
]Transact Execution
Transact on Parachain
Message Origin
Last updated
