getAssetTransfers - SDK
The Transfers API allows you to easily fetch historical transactions for any address across Ethereum and supported L2s including Polygon, Arbitrum, and Optimism. See the web documentation for the full details.
The Transfers API allows you to easily fetch historical transactions for any address across Ethereum and supported L2s including Polygon, Arbitrum, and Optimism. See the web documentation for the full details.
Don’t have an API key?
Start using this method in your app today. Get started for free
Description
The Transfers API allows you to fetch historical transactions for any address across Ethereum easily and supported L2s including Polygon, Arbitrum, and Optimism.
See the web documentation for the full details.
Parameters
params
object parameters
Response
AssetTransfersResponse
response object parameters
AssetTransfersWithMetadataResponse
object parameters
Example Request and Response
Prerequisite: You will need to install the Alchemy SDK before making requests with it.
The commands for installing it using npm or yarn are given below:
Request
Here is an example of how to make a getAssetTransfers
request using the Alchemy SDK:
Response
Use Cases
Here are some common use cases for the getAssetTransfers
method:
-
Asset tracking: One of the most common use cases for
getAssetTransfers
is to track the movement of a particular asset on the blockchain. This can be useful for businesses and organizations that need to keep track of their assets as they move on-chain. -
Audit trails: By using
getAssetTransfers
to retrieve a history of all transfers of a particular asset, auditors can verify the authenticity and provenance of the asset. This can help to prevent fraud and ensure compliance with regulations. -
Payment verification:
getAssetTransfers
can also be used to verify that a payment has been made or received. For example, if a company expects a payment in a particular asset, it can use this function to confirm that the payment has been transferred to its account.
Related Methods
Here are the methods related to getAssetTransfers
:
- call: Returns the result of executing the transaction using call.