getWalletNFTEvents
Get NFT events (mint, burn, transfer) associated with the given wallet address.
How to use getWalletNFTEvents method ?
Below, you'll find an in-depth guide that provides a comprehensive explanation of how to utilize the getWalletNFTEvents method effectively using Blast.
Parameters
Below, you can find the query parameters accepted by the method.
Parameter | Type | Description |
---|---|---|
walletAddress* | string | The querying wallet address |
contractAddress | string | The contract address |
fromBlock | number | Starting block for querying |
toBlock | number | Ending block for querying |
pageSize | number | Maximum number of records to be retrieved in one page (max 100, default 25) |
pageKey | string | Key used to get the next page of results. Must be set to the value of nextPageKey returned in the previous response |
Returns
Parameter | Type | Description |
---|---|---|
count | number | The number of NFT events associated with the given wallet address |
nextPageKey | string | Key to get the next page of results if more are available. |
events | array<object> | array of NFTEvent objects (for more information see the getNFTEvents method) |
This API is paginated, response items are ordered descending by:
blockNumber
transferIndex
Example Request and Result for getWalletNFTEvents
In this section, you can find an illustrative example of a request made to retrieve the count of NFT events currently owned by a wallet address and the NFTEvent objects using the getWalletNFTEvents method.
The example in this section uses a non-existing project id.
Make sure you replace it with your Starknet endpoint when issuing the Builder API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Returns the total number of NFT events owned by a wallet and the array of NFTEvent objects.
GET
https://starknet-mainnet.blastapi.io/<project_id>/builder/getWalletNFTEvents?
Query Parameters
Name | Type | Value |
---|---|---|
walletAddress | string | |
contractAddress | string | |
fromBlock | number |
Last updated