Get all NFTs currently owned by the given wallet address.
How to use getWalletNFTs method ?
Below, you'll find an in-depth guide that provides a comprehensive explanation of how to utilize the getWalletNFTs method effectively using Blast.
Parameters
Below, you can find the query parameters accepted by the method.
Parameter
Type
Description
walletAddress*
string
The wallet address of the owner
contractAddress
string
The contract address for the NFT contract
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
Number of records returned in the current page
nextPageKey
string
Key used to get the next page of results
nfts
array<object>
array of NFT objects (see the getNFT method for more details)
This API is paginated, response items are ordered descending by:
blockNumber
transferIndex
Example Request and Result for getWalletNFTs
In this section, you can find an illustrative example of a request made to retrieve all NFTs currently owned by the given wallet address using the getWalletNFTs 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!