Transfer CAPS
CAPS is the Ternoa blockchain token. Transactions made on the Ternoa blockchain are carried out in CAPS. It is used in particular for the creation of NFTs, Encryption, and storage of data over time.
Prerequisites
Before getting started, make sure you have the following ready:
Create a Ternoa account with Alphanet CAPS
Install and set up your editor of choice (we will use Visual Studio Code [VSC] in this tutorial)
Install NodeJS v.14+ & NPM
How to transfer CAPS to an address
This example shows how to transfer a CAPS balance to an address using balancesTransfer
. The numberToBalance
helper is used to format the amount from a number value to a BN value according to chain decimals (18 decimals for Ternoa).
The balancesTransferKeepAlive
helper can be used for transferring some liquid balance to another account with a check that the transfer will not kill the origin account.
The balancesTransferAll
helper can be used for transferring the entire transferable balance from the caller account.
Support
If you face any trouble, feel free to reach out to our community engineers in our Discord.
Last updated