🔗near
Description
The transfer
function is an asynchronous function that facilitates the transfer of a specified amount of cryptocurrency from one account to another on the NEAR blockchain.
Parameters
Response
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
Transfer Bitcoin: The
transfer
function can be used to transfer a specific amount of Bitcoin from one address to another. It requires the private key of the sender's address, the amount to be transferred, the recipient's address, the desired environment (e.g., testnet or mainnet), the sender's address, and the ECC object for cryptographic operations.Error Handling: The function handles potential errors during the transfer process. If any step fails, an error object with a code and description is returned, indicating the cause of the failure.
Last updated