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 to demos.transfer
.
The transcation returned by demos.transfer
is signed using the wallet connected to the demos
object.
3. Send the transaction
Hacking
The demos.transfer
method calls the main transfer function, passing the connected wallet to sign the transaction.
To sign the transaction using a different private key, you can call the tranfer function directly as shown:
Last updated