getNFTBalances(params: WalletNftBalanceQuery)
getNFTBalances(params: WalletNftBalanceQuery)
Description
This method returns Current NFT Balances, Cost and Floor Price for one or multiple wallets. NFT Floor Price is from Opensea or LooksRare.
- OpenPool API Endpoint:
GET:/wallet/nft_balance/
Parameters
Name | Type | Description | Optional |
---|---|---|---|
params | WalletNftBalanceQuery | Query parameters | No |
interface WalletNftBalanceQuery {
page?: number;
wallet: string;
}
Response
{
count?: number;
next?: string | null;
previous?: string | null;
results?: [
{
id: string;
balance: number;
cost: {
value?: string;
currency?: string;
fiat?: string;
fiat_currency?: string;
};
floor: {
value?: string;
currency?: string;
fiat?: string;
fiat_currency?: string;
};
nft: {
id?: string;
collection: {
floor: [
{
venue: {
id: number;
name: string;
image_url: string;
};
floor: string;
currency: string;
timestamp: string;
}
];
blockchain: {
id?: string;
chain_id?: number | null;
name: string;
slug?: string | null;
symbol?: string | null;
image_url?: string | null;
};
address: string;
name?: string | null;
symbol?: string | null;
description?: string | null;
image_url?: string | null;
opensea_status?: string | null;
is_spam?: boolean;
};
token_id: string;
name?: string | null;
image?: string | null;
preview?: string | null;
thumbnail?: string | null;
original?: string | null;
animation_image?: string | null;
animation_original?: string | null;
description?: string | null;
external_url?: string | null;
};
wallet: string;
tx: string;
}
]
}