🔗sendEther
Description
The sendEther
function sends a specified amount of Ether from the account associated with the provided private key to a specified address on a given blockchain network.
Parameters
Parameter | Type | Description |
---|---|---|
| string | Takes a string parameter specifying the name of the blockchain network (For eg. bsc, polygon, eth, ava, gnosis, moonbeam) |
| string | The receiving account address for the transfer of Ether |
| string | The amount of Ether to be transferred |
| string | The private key of the account to sign the transaction |
Response
Property | Type | Description |
---|---|---|
| object | Returns the transaction receipt object. |
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 sendEther
request using the Nest SDK:
Response
Use Cases
Crypto Wallets: The function can be used by crypto wallets to send Ether from one wallet to another.
Online Marketplaces: The function can be used by online marketplaces to facilitate payments in Ether for goods and services.
Cryptocurrency Exchanges: The function can be used by cryptocurrency exchanges to facilitate the buying and selling of Ether.
Last updated