Cointime

Download App
iOS & Android

🎉 Exciting News! NFTScan Officially Launches ERC-6551 NFT API Data Service

Validated Project

Recently, the NFTScan team officially launched the ERC-6551 NFT API data service, dedicated to providing concise and efficient NFT data search and query services for NFT developers and users in the Web3 ecosystem. With a streamlined API design, developers can easily access and integrate ERC-6551 standard NFT data, greatly enhancing the efficiency of developing innovative applications based on the new standard.

ERC-6551 is a groundbreaking new token standard released by the Future Primitive team on May 23, 2022. It introduces the innovative concept of Token-Bound Accounts (TBA), giving each NFT full Ethereum account functionality, realizing the concept of “NFT as a wallet”. This not only enhances security and permission control but also opens up infinite application possibilities for NFTs, breaking free from the limitations of being merely static assets. It injects new momentum into the long-term development of the NFT ecosystem and is seen as a milestone innovation in the NFT field.

NFTScan’s ERC-6551 NFT API is an interface service designed for ERC-6551 data search and query. It helps developers quickly and accurately access NFT data, significantly improving the efficiency of Web3 application development. The API provides various query functions, including precise retrieval based on parameters such as TBA account address and contract address, ensuring that developers can efficiently handle large amounts of data. It provides developers with an all-in-one NFT data solution, greatly simplifying the process of accessing and processing NFT data and improving development efficiency.

Before using the NFTScan API, you need to visit the developer website and create an account. Visit the NFTScan official website and click on the “Sign Up” button for NFTScan API registration.

https://developer.nftscan.com/user/signup

Sign up

Once logged in, find your unique API KEY on the Dashboard. Visit the API documentation, enter your API KEY in the appropriate place as instructed in the documentation, and you can start using the API service. In the API documentation, developers can find various interface modes to choose from based on their needs.

In the Dashboard, developers can also view statistics on their API usage, helping to track historical usage data. Additionally, NFTScan provides each registered developer with 1M CU of API call services for requesting all NFT API interfaces, and the CU never expires until used up!

After successfully registering for a developer account and obtaining an API Key, it is necessary to review the NFTScan API documentation. The API documentation contains all available API endpoints and parameters, as well as detailed information on how to construct requests and handle responses. Please read the API documentation carefully and make sure you understand how to use the API to retrieve the data you need. The NFTScan API service is dedicated to helping developers improve their NFT data analysis experience.

NFTScan currently has the largest and most comprehensive NFT Collection library on the entire network, supporting full NFT data for 24 different blockchains including Ethereum, Solana, BNBChain, Bitcoin, and Mint, covering a wide range of NFT data types. It provides a complete set of interfaces to access ERC721, ERC1155, ERC404, and ERC6551 assets, as well as transaction, project, and market statistics. It currently supports over 60 public interfaces for EVM-compatible chains, as well as a batch of similar interfaces for Solana, Aptos, Bitcoin, and TON, meeting the needs of developers to index multiple types of NFT data to a large extent.

Endpoint: /v2/erc6551/filters

This API is used to retrieve all ERC-6551 NFT data. (Note: Currently, only Ethereum is supported.)

Clicking Try it reveals a total of 16348 data, including:“contract”: Contract address“token_id”: Token ID“account”: TBA account address

Endpoint: /v2/erc6551/asset/{account_address}

This endpoint is used to retrieve the NFT data returned by the ERC-6551 Token Binding Account (TBA). Here we retrieve the NFT-related information for the TBA address 0x5416e5dc14caa0950b2a24ede1eb0e97c360bcf5. Click Try it to return the details of the NFT.

Endpoint: /v2/erc6551/tbas/{contract_address}/{token_id}

This endpoint retrieves a list of TBA addresses associated with the NFT contract address. Here, we retrieve the TBA account information bound to the NFT contract address 0xd022977a22f9a681df8f3c51ed9ad144bdc5bb38 by selecting token id 0x000000000000000000000000000000000000000000000000000000000000011b. The data is returned as follows:

Building NFT data requests with NFTScan is very simple and convenient. Developers just need to find the required API endpoint in the documentation and review the endpoint URL, request method, request parameters, and other details. Then, they can choose their preferred programming language according to their needs and quickly integrate the API to obtain the ERC6551 NFT data.

For example, we can use Python to request NFT-related information for the address 0x5416e5dc14caa0950b2a24ede1eb0e97c360bcf5 from TBA by using the API endpoint “/v2/erc6551/asset/{account_address}”. This request can be constructed as follows:

import requests# Define the request URL and addressbase_url = "https://api.nftscan.com/v2/erc6551/asset/"account_address = "0x5416e5dc14caa0950b2a24ede1eb0e97c360bcf5"url = f"{base_url}{account_address}"# Set up the request headers, assuming an API key is requiredheaders = { "Authorization": "Bearer YOUR_API_KEY", # Replace with your actual API key "Content-Type": "application/json"}# Send the GET requestresponse = requests.get(url, headers=headers)# Check if the request was successfulif response.status_code == 200: nft_data = response.json() # Parse the JSON response print(nft_data)else: print(f"Request failed, status code: {response.status_code}")print(response.text)

In this code snippet, you need to:

  • Replace YOUR_API_KEY with your actual API key.
  • Ensure the request URL and headers are set correctly according to the API documentation’s provided endpoint and parameter descriptions.

The ERC6551 API can help developers easily obtain NFT data related to a specific Token Bound Account (TBA). Through simple API requests, developers can quickly retrieve detailed data, greatly simplifying the data retrieval process, improving development efficiency, and supporting multiple programming languages.

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 20+ 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

Join the NFTScan Connect Program

Comments

All Comments

Recommended for you

  • Putin: Russia "supports" Harris, calls her smile "contagious"

    According to foreign media such as TASS and Russia's Sputnik News, Jinse Finance reported that on the afternoon of September 5th local time, Russian President Putin said at the plenary session of the Eastern Economic Forum 2024 that Russia will "support" the US Democratic Party presidential candidate and vice president Harris as recommended by the US President Biden in the upcoming US presidential election. When asked how he viewed the 2024 US election, Putin said it was the choice of the American people. The new US president will be elected by the American people, and Russia will respect the choice of the American people. Putin also said that just as Biden suggested his supporters to support Harris, "we will do the same, we will support her." The report said that Putin also joked that Harris' laughter is "expressive and infectious," which shows that "she is doing everything well." He added that this may mean that she will avoid further sanctions against Russia.

  • An ETH whale repurchased 5,153 ETH with 12.23 million USDT 20 minutes ago

    A certain high-frequency trading ETH whale monitored by on-chain analyst Yu Jin bought 5,153 ETH with 12.23 million USDT 20 minutes ago.

  • CFTC: Uniswap Labs has actively cooperated with the investigation and only needs to pay a fine of US$175,000

    The CFTC has filed a lawsuit against Uniswap Labs and reached a settlement. It was found that Uniswap Labs illegally provided leveraged or margined retail commodity transactions of digital assets through a decentralized digital asset trading protocol. Uniswap Labs was required to pay a civil penalty of $175,000 and cease violations of the Commodity Exchange Act (CEA). The CFTC acknowledged that Uniswap Labs actively cooperated with law enforcement agencies in the investigation and reduced the civil penalty.

  • Federal Reserve Beige Book: Respondents generally expect economic activity to remain stable or improve

    The Federal Reserve's Beige Book pointed out that economic activity in three regions has slightly increased, while the number of regions reporting flat or declining economic activity has increased from five in the previous quarter to nine in this quarter. Overall employment levels remain stable, although some reports indicate that companies are only filling necessary positions, reducing working hours and shifts, or reducing overall employment levels through natural attrition. However, reports of layoffs are still rare. Generally speaking, wage growth is moderate, and the growth rate of labor input costs and sales prices ranges from slight to moderate. Consumer spending has declined in most regions, while in the previous reporting period, consumer spending remained stable overall.

  • Puffpaw Completes $6 Million Seed Round with Lemniscap Ventures as Participant

    Puffpaw has announced the completion of a $6 million seed round of financing, with participation from Lemniscap Ventures. The Puffpaw project plans to launch a blockchain-enabled electronic cigarette aimed at helping users reduce nicotine intake through token incentives. The project encourages users to quit smoking by recording their smoking habits and rewarding them with tokens. Puffpaw's token economics aims to cover 30% of the cost of users' first month of using their product and provide social rewards. The project also considers possible system abuse, but the issue of users potentially reporting smoking habits dishonestly is not yet clear.

  • Affected by Ethervista and others, Ethereum Gas temporarily rose to 33gwei

    According to Etherscan, due to the influence of contracts such as Ethervista, Ethereum Gas has temporarily risen to 33gwei, with the top three being EthervistaRouter, UniswapRouter, and BananaGun.

  • The probability of the Fed cutting interest rates by 25 basis points in September is 55%.

    The probability of the Federal Reserve cutting interest rates by 25 basis points in September is 55.0%, while the probability of a 50 basis point cut is 45.0%. The probability of the Federal Reserve cutting interest rates by a cumulative 50 basis points by November is 32.1%, by 75 basis points is 49.2%, and by 100 basis points is 18.8%.

  • Nvidia: No subpoena received from the US Department of Justice

    Nvidia (NVDA.O) stated that it has not received a subpoena from the US Department of Justice.

  • US SEC again postpones decision on environmentally friendly Bitcoin ETF listing application

    The US Securities and Exchange Commission (SEC) has once again postponed its final decision on the New York Stock Exchange (NYSE) Arca's application for a carbon offset Bitcoin ETF. According to a document dated September 4th, the decision has been extended to November 21st. The ETF aims to provide a Bitcoin investment exposure in an environmentally friendly way by offsetting carbon emissions, tracking an investment portfolio composed of 80% Bitcoin and 20% carbon credit futures. Tidal Investments submitted the fund registration application in December 2023, while NYSE Arca submitted the initial application in March. Concerns have been raised about the environmental impact of Bitcoin mining, with the International Monetary Fund (IMF) reporting that cryptocurrency mining accounts for 1% of global greenhouse gas emissions. The delay in this decision also includes the postponement of approval for the Nasdaq One-Stop Cryptocurrency Investment Portfolio ETF.

  • Pudgy Penguins CEO:何为消费级加密货币应用

    加密货币行业中的一些 builder 努力地重复造轮。如今,一些突破性的消费级产品,若是能基于区块链打造并利用好加密货币的激励机制,其规模可能是现在的 10 倍。与其试图重新创建一种模式,不如利用现有的模式进行加密化改造。我认为,许多尚未面世的消费级加密货币应用在 Web2 中都有对应的产品,它们正等待着通过加密货币释放巨大的增长潜力。