🔗sol
Description
The transfer
function allows the transfer of SOL tokens from one wallet to another on the Solana blockchain. The function takes in the sender's private key, receiver's wallet address, transfer amount, and the environment to execute the transaction.
Parameters
Name | Type | Description |
---|---|---|
| string | The private key of the wallet sending the tokens |
| string | The amount of tokens to be transferred |
| string | The wallet address of the recipient |
| string | The environment to execute the transaction |
Response
Name | Type | Description |
---|---|---|
| number | Status code (1 for success, 0 for failure) |
| string | If successful, returns the transaction signature, otherwise returns an error message |
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 transfer
request using the Nest SDK:
Response
Use Cases
Applications: It can be used by Solana wallet applications to send SOL tokens to other wallet addresses.
Payment Systems: It can be integrated into payment systems of Solana-based online marketplaces to facilitate transactions between buyers and sellers.
Last updated