Native Transactions
You can send DEM using the Demos sdk as shown below:1. Connect to the network
2. Create a transaction
You can now create a transaction by passing the address and the amount todemos.transfer. The amount can be either a bigint in OS (preferred, full precision; 1 DEM = 10^9 OS) or a legacy number in whole DEM (deprecated, removed in v4).
demos.transfer is signed using the wallet connected to the demos object.
demos.transfer is an alias to demos.pay. See Amounts & Denominations for the full denomination reference, including getNetworkInfo fork detection and the SubDemPrecisionError guard.