ProtectedbaseBase URL for the API endpoints
Protected OptionalapiOptional API key for authenticated requests
ProtectedloggerLogger instance for NFT operations
ProtectedfetchProtectedMakes an API request with the given parameters. Handles parameter sanitization, API key inclusion, and error handling.
API endpoint to call
Query parameters
Promise resolving to the API response
Get NFT balances for an address. Retrieves all NFT balances for a specific address.
Parameters for the NFT balances query
Parameters for fetching NFT balances
BalancesParams
Optionalpage?: numberPage number (1-based)
Optionaloffset?: numberPage offset.
Optionalskip?: numberNumber of records to skip (pageSize * (pageNumber - 1)). Maximum 10000.
Optionallimit?: numberNumber of records per page. Maximum 100.
Optionalsort?: "asc" | "desc"Sort order by timestamp (ASC for ascending, DESC for descending)
Owner address to get NFT balances for
The NFT balances for the address
Get NFT tokens for a contract. Retrieves all NFT tokens for a specific contract address with optional filtering.
Parameters for the NFT tokens query
Parameters for fetching NFT tokens
TokensParams
Optionalpage?: numberPage number (1-based)
Optionaloffset?: numberPage offset.
Optionalskip?: numberNumber of records to skip (pageSize * (pageNumber - 1)). Maximum 10000.
Optionallimit?: numberNumber of records per page. Maximum 100.
Optionalsort?: "asc" | "desc"Sort order by timestamp (ASC for ascending, DESC for descending)
NFT contract address
Optionalowner?: stringOwner address to filter tokens by
OptionalsortField?: "latest_update_time" | "mint_time"Field to sort by (latest_update_time or mint_time)
Optionalcursor?: stringCursor for pagination
OptionalwithBrief?: stringWhether to include token metadata brief
OptionalwithMetadata?: stringWhether to include full token metadata
OptionalsuppressMetadataError?: stringWhether to suppress metadata parsing errors
The NFT tokens for the contract
Get NFT preview data. Retrieves preview information for a specific NFT token.
Parameters for the NFT preview query
Parameters for fetching NFT preview
PreviewParams
The NFT preview data
Get NFT owners for a specific token. Retrieves all owners of a specific NFT token.
Parameters for the NFT owners query
Parameters for fetching NFT owners
OwnersParams
Optionalpage?: numberPage number (1-based)
Optionaloffset?: numberPage offset.
Optionalskip?: numberNumber of records to skip (pageSize * (pageNumber - 1)). Maximum 10000.
Optionallimit?: numberNumber of records per page. Maximum 100.
Optionalsort?: "asc" | "desc"Sort order by timestamp (ASC for ascending, DESC for descending)
NFT contract address
OptionaltokenId?: stringToken ID to get owners for
Optionalcursor?: stringPagination cursor
The NFT token owners
Get NFT transfers for a specific token. Retrieves transfer history for a specific NFT token with optional filtering.
Parameters for the NFT transfers query
Parameters for fetching NFT transfers
TransfersParams
Optionalpage?: numberPage number (1-based)
Optionaloffset?: numberPage offset.
Optionalskip?: numberNumber of records to skip (pageSize * (pageNumber - 1)). Maximum 10000.
Optionallimit?: numberNumber of records per page. Maximum 100.
Optionalsort?: "asc" | "desc"Sort order by timestamp (ASC for ascending, DESC for descending)
OptionalminTimestamp?: numberMinimum timestamp in seconds
OptionalmaxTimestamp?: numberMaximum timestamp in seconds
OptionalstartBlock?: numberStarting block number
OptionalendBlock?: numberEnding block number
NFT contract address
OptionaltokenId?: stringToken ID to get transfers for
Optionalcursor?: stringPagination cursor
Optionalfrom?: stringSender address to filter by
Optionalto?: stringRecipient address to filter by
The NFT transfer history
Module for handling NFT-related operations on Conflux Core. Provides methods for querying NFT balances, tokens, transfers, and ownership information.
NFTModule