An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 13, 2022 06:28 pm GMT
Original Link: https://dev.to/sort_xyz/a-simple-api-for-web3-data-1i42
A Simple API for Web3 Data
It should be easy to query Web3 data, all of it, anything on the blockchain. Despite the blockchain's openness, it's still extremely hard to decode and use blockchain data.
Introducing a Simple API for Web3 Data
Today we're releasing the Alpha version of a new API for accessing data on the Ethereum blockchain.
- Access a fully decoded transaction including logs and function information
GET https://api.sort.xyz/v0/transaction/0x4a4101abb79d0e6d8d09dac5f1d2312ef713f20b1101eefcd395a040985eda28
- Access the latest transactions for a contract address
POST https://api.sort.xyz/v0/transaction/{ "contract_address" : "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", "limit": 10}
- Access NFT data for a contract
POST https://api.sort.xyz/v0/transaction/{ "nft_address" : "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", "nft_event" : "sale", "limit": 10}
- Aggregate coin sales data to power a real-time sales chart
POST https://api.sort.xyz/v0/transaction/{ "contract_address" : "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f", "coin_buy" : "0x0ab87046fBb341D058F17CBC4c1133F25a20a52f", "aggregate" : { "op" : "sum", "by" : "hour", "field" : "coin_transaction.from.amount_shifted" }, "limit" : 24, "timestamp" : "gte:2021-03-22"}
An Open API
The Sort Analytics API is free, rate limits and other information are listed here.
As of April 13, 2022, the API is considered version 0 (Public Alpha), we are still finding and fixing occasional bugs. Please relay any feedback to the team via our public discord.
Powering Dashboards, Applications, Charts, and More
Use the API to power anything in your application that needs Web3 data. Since the API is open and doesn't require API keys, no server side code is needed, all API calls can be made directly by the client.
Continue by
- Exploring the API Docs (docs.sort.xyz)
- View a tutorial on building a CryptoPunks V1 analytics dashboard
Original Link: https://dev.to/sort_xyz/a-simple-api-for-web3-data-1i42
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To