Submit an assembled DemosWork script as a demoswork
transaction, end to end.
prepareDemosWorkPayload serialises and signs the work; the shared
runner then confirms it and (in "auto" mode) broadcasts it within
the fee cap.
import { DemosWork } from "@kynesyslabs/demosdk"
const work = new DemosWork()
// ... push steps / operations onto `work` ...
// auto-broadcast within the fee cap:
await demos.run.demoswork.submit(work)
// build + confirm only, broadcast later yourself:
const r = await demos.run.demoswork.submit(work, { confirm: "manual" })
await demos.broadcast(r.validityData)
The assembled DemosWork script to execute.
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
DemosWork scripts as one-call programmatic transactions.
Assembling a DemosWork (its steps, operations and conditionals) stays with the caller. Once built, this namespace collapses the classic
prepareDemosWorkPayload → confirm → broadcastflow into a single call that auto-broadcasts within the configured fee ceiling.