In this article, I will introduce Bitquery’s Streaming APIs as an alternative to Moralis, which is deprecating some of its NFT endpoints. This change may prompt developers to look for alternative solutions. Bitquery offers a wide range of tools for interacting with and analyzing NFTs.
Bitquery NFT APIs
Bitquery offers flexible NFT transfer APIs that allow you to query NFT transfers and apply filters based on parameters such as senders, receivers, transactions, blocks, timeframes, specific collections, amounts, and more.
Here are some examples:
- Transfers in a specific block
Endpoint: /block/{block_number_or_hash}/nft/transfers
Example: NFT Transfers in a Block on an EVM Chain - Transfers within a given timeframe
Endpoint: /nft/transfers
Example: NFT Transfers for a Given Time Frame on an EVM Chain
Bitquery Event API
Bitquery also offers an Event API to fetch event logs for smart contracts, similar to Moralis’ /erc20/{address}/allowance endpoint.
- Event logs for a smart contract
Endpoint: /{address}/logs
Example: Smart Contract Event Logs
Additional Bitquery Endpoints
Bitquery provides further APIs for more advanced analytics:
- Block transfer statistics
Endpoint: /block/{block_number_or_hash}/stats
Example: Block Transfer Stats - NFT statistics for a specific token
Endpoint: /nft/{address}/{token_id}/stats
Example: NFT Stats for a Token - Internal transactions for a given transaction hash
Endpoint: /transaction/{transaction_hash}/internal-transactions
Example: Internal Calls for a Transaction
Alternative to Moralis NFT API was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.
Leave a comment