Skip to main content

Transactions

There are 4 types of transactions in DEMOS.
  1. Native
  2. Crosschain
  3. Web2
  4. DemosWork
Using the demos sdk, you can create, sign and broadcast transactions as discussed in following chapters.
Want one call per transaction instead of the build → sign → confirm → broadcast steps? See Programmatic Transactions (demos.run) — an additive demos.run.* facade with an automatic fee ceiling. The step-by-step API below stays fully supported.
Before sending native transactions, read Amounts & Denominations to understand how DEM and OS amounts are passed (bigint is preferred), how the SDK detects the active wire format via getNetworkInfo, and the SubDemPrecisionError guard for sub-DEM amounts on pre-fork nodes.