⛏️transferTokens
Last updated
Last updated
The transferTokens
function allows users to transfer tokens from one account to another on the Casper blockchain network.
Parameter | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Before making requests with Nest SDK, you must have it installed.
You can install Nest SDK using either npm
or yarn
. Use the following commands to install Nest SDK:
Here is an example of how to make a transferTokens
request using the Nest SDK:
Token Transfers: The function can be used to transfer tokens from one account to another on the Casper blockchain network.
DApp Development: The function can be used by developers to integrate token transfers into their decentralized applications built on the Casper blockchain network.
RPC_API
string
The RPC endpoint of the Casper network
privateKey
string
The private key of the sender's account
to
string
The public key of the recipient's account
amount
number
The amount of tokens to transfer
txHash
string
The hash of the transaction on the Casper network