NFT Collections
Returns the NFT collections where the account owns tokens.
Authorizations
X-Ledger-API-KeystringRequired
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
X-Ledger-API-UserstringRequired
(required) Username of a registered API User
Path parameters
account_idintegerRequired
The account's ID
Query parameters
pageinteger | nullableOptionalDefault:
Defines the page number to be fetched.
1Example: 3page_sizeinteger | nullableOptionalDefault:
Defines the number of elements displayed on a page.
10Example: 40Responses
200
Paginated NFT collection
application/json
404
Account not found
application/json
get
/accounts/{account_id}/nft-collectionsGET /accounts/{account_id}/nft-collections HTTP/1.1
Host:
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Accept: */*
{
"edges": [
{
"cursor": 0,
"node": {
"account_id": 1,
"contract_address": "text",
"image": {
"mediaType": "text",
"uri": "text"
},
"name": "text",
"price": {
"contract_address": "text",
"ticker": "ETH",
"token_id": "text",
"value": 1
},
"token_balance": 1,
"token_type": "text"
}
}
],
"page_info": {
"count": 1,
"has_next_page": false
}
}