Aptos, founded in 2018 by former Google employees, is a Layer 1 blockchain that went live on its mainnet in October last year. Its mission is to construct a scalable, secure, trustworthy, and upgradable smart contract platform. It employs a BFT consensus mechanism and parallel computing to achieve enhanced performance. By improving leader rotation mechanisms, reduces the impact of single-node failures on the network, thus enhancing network security. Overall, Aptos has elevated blockchain scalability and security through technological innovation, making it a highly suitable public blockchain for various financial applications.
As of October 27th, Aptos’ NFT ecosystem is rapidly expanding, with NFTScan data revealing impressive statistics. Aptos has issued a cumulative total of 2,154,057 NFT assets, featuring 20,066 NFT collections and recording 4,987,961 transactions. There are 904,739 wallet addresses engaged in interactions, and the total transaction volume amounts to 2,157,925.97 APT.
Aptos NFTScan: https://aptos.nftscan.com
NFTScan not only supports 15 EVM-compatible chains but also accommodates four non-EVM blockchain networks: Bitcoin, TON, Solana, and Aptos. To track and analyze data across the entire Aptos ecosystem, NFTScan provides robust data support. Whether developers require insights into NFT liquidity, user interactions, and market trends, or wish to engage in complex data mining and visualization, NFTScan offers a rich set of tools and features to meet their data analysis needs. This assists developers in better understanding and optimizing the Aptos NFT ecosystem.
Accessing the NFTScan NFT API
Step 1: Create a NFTScan Developer Account
Before utilizing the NFTScan API, visit the NFTScan developer platform and create an account. Go to the official NFTScan website and click on the “Sign Up” button under NFTScan API.
NFTScan Developer: https://developer.nftscan.com/user/signup
Once logged in, find your unique API KEY on the Dashboard. Visit the API documentation and input your API KEY in the designated location. Follow the documentation’s instructions to start using the API services.
In the API documentation, developers can find multiple interface modes to choose from based on their requirements. Additionally, developers can monitor their API usage statistics in the Dashboard, which helps in keeping track of historical data. Furthermore, NFTScan offers each registered developer 1M CU of API calls, which can be used for requesting all NFT API interfaces, and these CU never expire.
Step 2: View Aptos API Documentation
After successfully registering a developer account and obtaining an API Key, you need to review the NFTScan API documentation. The API documentation contains all available API endpoints and parameters, as well as detailed information on how to build requests and handle responses. Please read the API documentation carefully and make sure you understand how to use the API to obtain the data you need. NFTScan API services are dedicated to helping developers improve their experience in obtaining NFT data analysis.
Currently, NFTScan has the largest and most comprehensive NFT Collection database on the web, supporting full NFT data for 19 blockchains including Ethereum, Solana, BNBChain, Bitcoin, TON, Polygon, zkSync, Aptos, Linea, Base, Avalanche, Arbitrum, Optimism, Scroll, Fantom, Moonbeam, PlatON, Cronos, and Gnosis. The covered NFT data is extensive and diverse, providing a complete set of interfaces to obtain ERC721 and ERC1155 assets as well as transaction, project, and market statistics information. NFTScan now supports more than 60 public interfaces for EVM-compatible chains and a group of equivalent interfaces for Solana, Aptos, Bitcoin, and TON, largely meeting developers’ needs for indexing various types of NFT data.
Aptos NFT API
The Aptos NFT API comprises three core interfaces, each of which provides insights and details about specific aspects of the NFT ecosystem on the Aptos blockchain.
Assets API: The Assets API is central to understanding digital assets within the NFT space. It provides unique identification and comprehensive lifecycle data for digital assets, including token ID, collection name, transaction hash, block number, mint price, and ownership information. This API allows developers to gain a deep understanding of NFT assets within the Aptos ecosystem.
Transactions API: The Transactions API represents complete transaction data for an NFT asset on the blockchain, offering insights into the asset’s entire lifecycle. This includes minting, transfers, sales, and other transaction activities. It helps developers gain a profound understanding of NFT asset flow within the Aptos ecosystem.
Collections API: The Collections API provides information related to NFT collections, including descriptions, social media links, and other fundamental data not present on-chain. This data is collected from popular NFT marketplaces on various blockchain networks, making it accessible to developers who wish to integrate such information into their applications.
Querying Related NFT APIs
- Get all NFTs by account: Endpoint: /apt/account/own/all/{account_address} Description: Retrieves all NFT assets owned by a specific wallet address, including asset names, IDs, contract addresses, ownership information, and other relevant NFT data.
Enter the search wallet address, click “try it”, and the returned data will be as follows:
- Get transactions by collection: Endpoint: /apt/transactions/collection/{collection} Description: Retrieves all transaction data related to a specific NFT collection on the Aptos network, including purchases, sales, and more.
The project being searched here is Aptos Monkeys. The resulting response data includes all key data related to NFT transactions under this project, such as transaction hash value, block information, From and To addresses, contract address, transaction timestamp, as well as characteristic information for NFT transactions such as Token ID, transaction amount, and currency.
- Collection Statistics: Endpoint: /apt/statistics/collection/{collection} Description: Provides an overview of a specific NFT collection on the Aptos network, including project name, logo, total items, total holders, 24-hour price data, and historical trading data. Refer to the Aptos NFTScan Collection:
https://aptos.nftscan.com/result/Aptos%20Monkeys
- Trade Ranking: Endpoint: /apt/statistics/ranking/trade Description: Offers a ranking of the most active and popular NFT projects on the Aptos network, including trading volume data, market trends, and more. Refer to the Aptos NFTScan Trading:
https://aptos.nftscan.com/ranking
Building Relevant API Requests
Developers can follow these general steps to create Python API request code based on the Aptos NFT API documentation:
- Import Necessary Libraries: Import required Python libraries, typically using the “requests” library for sending HTTP requests. If the API requires authentication, import libraries for handling authentication.
- Construct API Request: Build the HTTP request, including the API endpoint URL and any required parameters. Ensure that the request includes necessary headers, such as the API key or other authentication credentials if needed.
- Send the Request: Use the “requests” library to send the HTTP request, selecting the appropriate request method (GET, POST, etc.) as required by the API. Handle the response to obtain data returned by the API.
- Handle API Response: Extract and process the required data from the API response based on the API’s response format, typically in JSON.
- Exception Handling: Implement exception handling in the code to address potential network request errors or API response issues.
The provided Python example serves as a basic template for making calls to the Aptos API through NFTScan. Customize the code according to specific requirements and parameters outlined in the API documentation to meet your data retrieval needs.
NFTScan currently boasts the most comprehensive NFT Collection library on the entire network. It supports 19 different blockchain networks, covering a wide range of NFT data types, and offers a variety of interfaces to access ERC721 and ERC1155 assets, transactions, projects, market statistics, and more. With support for over 60 public interfaces for EVM-compatible chains and additional interfaces for Solana, Aptos, Bitcoin, and TON, NFTScan is a valuable resource for developers seeking diverse NFT data.
Explore the Aptos NFT ecosystem, track market dynamics, and enhance your NFT data analysis with NFTScan. With its wealth of data and versatile API capabilities
About NFTScan
NFTScan is the world’s largest NFT data infrastructure, including a professional NFT explorer and NFT developer platform, supporting the complete amount of NFT data for 19 blockchains including Ethereum, Solana, BNBChain, Arbitrum, Optimism, and other major networks, providing NFT API for developers on various blockchains.
Official Links:
NFTScan: https://nftscan.com
Developer: https://developer.nftscan.com
Twitter: https://twitter.com/nftscan_com
Discord: https://discord.gg/nftscan
Top comments (0)