🔗sendEther
Last updated
Last updated
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.
Parameter | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
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:
Here is an example of how to make a sendEther
request using the Nest SDK:
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.
blockchain
string
Takes a string parameter specifying the name of the blockchain network (For eg. bsc, polygon, eth, ava, gnosis, moonbeam)
address
string
The receiving account address for the transfer of Ether
amount
string
The amount of Ether to be transferred
privateKey
string
The private key of the account to sign the transaction
Promise<Object>
object
Returns the transaction receipt object.