🔗sol
Last updated
Last updated
The getTotalBalanceInUSDbyAddressArray
function is an asynchronous function used to retrieve the total balance in USD for a given array of Ethereum and Solana addresses.
Parameter | Data Type | Description |
---|---|---|
Field | Data 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 getBalanceByMnemonic
request using the Nest SDK:
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.
addresses
string[]
(Optional) An array of Ethereum addresses for which the total balance is requested.
solanaAddresses
string[]
(Optional) An array of Solana addresses for which the total balance is requested.
code
number
Indicates the status code. 1 for success, 0 for error.
result
object
Contains the total balance in USD for the provided addresses.
error
string
Contains the error message if an error occurred during the process.