Sending Transactions
Send transactions from your users to other address
Sending a transaction from an address or multiple addresses to another address. This function will create a transaction
Before you create any transaction, make sure that you create an address and make sure you have amount in your wallet, if you don't have please check this How to Obtain Testnet Coins?
The createTransacion
function has the following properties.
property | description | required |
---|---|---|
network | specify which blockchain | required |
from | specify which addresses to withdraw from. This is an array of strings. | required |
amount | the amount to send. | required |
to | the desired address | required |
property | description | required |
---|---|---|
network | specify which blockchain | required |
from | specify which addresses to withdraw from. This is an array of strings. | required |
amount | the amount to send. | required |
to | the desired address | required |
You only need to initialize the client once at the start of the application.
The expected output
Last updated