⛏️getLatestTxsOfAddress
Description
The getLatestTxsOfAddress
function is an asynchronous function used to retrieve the latest transactions of a list of addresses on the blockchain explorer.
It retrieves the latest transactions of each address and returns a parsed result containing information such as transaction direction (sent or received), amount, wallet address, external address, USD amount, and transaction type.
Parameters
addresses
string[]
An array of addresses to retrieve the latest transactions for.
Response
code
number
The response code indicating the success or failure of the operation.
result
object[]
An array of parsed transaction logs containing information such as transaction direction, amount, wallet address, external address, USD amount, and transaction type.
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 getLatestTxsOfAddress
request using the Nest SDK:
Response
Use Cases
Retrieving latest transactions: By invoking this function with the appropriate parameters, you can retrieve the latest transactions of a list of addresses on the blockchain explorer.
Address validation: The function validates the addresses in the input array to ensure they are valid.
Sending HTTP requests: The function sends HTTP requests to the blockchain explorer's API to fetch the latest transactions of each address.
Last updated