🔗evm
Description
The getTotalBalanceInUSDbyAddressArray
function is an asynchronous function used to retrieve the total balance in USD for a given array of Ethereum and Solana addresses.
Parameters
Parameter | Data Type | Description |
---|---|---|
| string[] | (Optional) An array of Ethereum addresses for which the total balance is requested. |
| string[] | (Optional) An array of Solana addresses for which the total balance is requested. |
Response
Field | Data Type | Description |
---|---|---|
| number | Indicates the status code. 1 for success, 0 for error. |
| object | Contains the total balance in USD for the provided addresses. |
| string | Contains the error message if an error occurred during the process. |
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 getBalanceByMnemonic
request using the Nest SDK:
Response
Use Cases
Retrieving total balance: By invoking this function with an array of Ethereum and/or Solana addresses, you can retrieve the total balance in USD for those addresses.
Error handling: If there is an error during the API request or if the response status code is not 1, the function will return an error object with the appropriate error message.
Last updated