Submit a fully-built XMScript as a crosschainOperation
transaction, end to end.
prepareXMPayload signs the transaction; the shared runner then
confirms it and (in "auto" mode) broadcasts it within the fee cap.
import { prepareXMScript } from "@kynesyslabs/demosdk"
const xmScript = prepareXMScript({ chain: "eth", ... })
// auto-broadcast within the fee cap:
await demos.run.xm.submit(xmScript)
// build + confirm only, broadcast later yourself:
const r = await demos.run.xm.submit(xmScript, { confirm: "manual" })
await demos.broadcast(r.validityData)
The assembled cross-chain script to execute.
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Cross-chain (XM) operations as one-call programmatic transactions.
Building the
XMScriptis inherently chain-specific (per-chain signed payloads, RPC selection, EVM vs non-EVM task shape, …) and therefore stays with the caller. Once a script is assembled, this namespace collapses the classicprepareXMPayload → confirm → broadcastflow into a single call that auto-broadcasts within the configured fee ceiling.