⛏️sendSOL
Description
The sendSOL
function enables the transfer of SOL tokens between two wallets on the Solana blockchain.
Parameter
Name | Type | Description |
---|---|---|
| string | The secret key of the wallet sending SOL |
| string | The public address of the wallet receiving SOL |
| number | The amount of SOL to be transferred |
Response
Name | Type | Description |
---|---|---|
| string | The transaction signature returned by the blockchain |
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 sendSOL
request using the NEST® SDK:
Response
Use Cases
Sending payments: The function can be used to send SOL payments from one wallet to another, enabling users to pay for goods and services on Solana-based platforms.
Exchanges: The function can be used by cryptocurrency exchanges to facilitate the buying and selling of SOL.
Wallets: The function can be integrated into Solana-based wallets to allow users to send and receive SOL tokens.
Last updated