⛏️transferToken
Description
The transferToken
function transfers a specified amount of a token from one address to another using the private key associated with the sender's wallet and returns a transaction signature.
Parameter
The function does not take any parameters.
Response
publicKey
string
The generated public key in Base58 format
privateKey
string
The generated private key in Base58 format
Example Request and Response
Prerequisites
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:
Request
Here is an example of how to make a transferToken
request using the NEST® SDK:
Response
Use Cases
Crypto Wallets: The function can be used by crypto wallets to generate new key pairs for their users.
Online Marketplaces: The function can be used by online marketplaces to facilitate payments using Solana.
Cryptocurrency Exchanges: The function can be used by cryptocurrency exchanges to generate new key pairs for their users to use on Solana.
Last updated