🔗depositEther
Last updated
Last updated
The depositEther
function is used to transfer Ether from one wallet to another by sending it to the designated receptor contract with a unique ID.
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 depositEther
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.
id
string
Unique identifier for the transfer transaction
amount
string
Amount of Ether to be transferred
privateKey
string
Private key of the sender's wallet
code
number
Status code indicating whether the transfer was successful or not. (1 for success, 0 for error)
receipt
object
Transaction receipt object returned by the Ethereum network
error
object
Error object containing details of any errors that occurred during the transfer