DeCommas
Useful links and docs:
Recently, DeCommas team published a tutorial on how to Implement Balances features using DeCommas API with Linea Support, check on more here: Tutorial: Implementing Balances features using DeCommas Mission Control API with Linea Support
Other resources are available here:
Tutorial: Building a Feature to Track UserOps using DeCommas API
Tutorial: How to Use the New NFT Endpoints using DeCommas API
Tutorial: Implementing Balances features using DeCommas Mission Control API with Linea Support
Introducing DeCommas Price Service
Tutorial: How to Build a Top Token Holders Feature Using the DeСommas Mission Control API
Tutorial: Building Activity Feed Using DeCommas Mission Control API
Tutorial: Building a web3 Portfolio Tracker using Mission Control API
Tutorial for Accessing NFT Data Using Datalayer
DeCommas API
DeCommas API is a speedy, scalable and cost-effective web3 API. It puts indexed blockchain available data in arms reach, making development of web3 applications such as Portfolio Trackers, Wallets, Web3 search bars and Activity feeds a breeze. DeCommas API contains:
- Datalayer & Datalayer API: Scalable, speedy and cost-efficient indexed Blockchain, NFT and Protocol data accessible through a developer friendly API.
- Price Service API: provides a comprehensive overview of ERC-20 price calculations using on-chain data from multiple decentralized exchange pools.
Using the DeCommas API, you’ll get access to a develop toolbox that’s:
- Blazing fast - Accessing indexed blockchain data through the Datalayer API yields response times of under 300ms per request.
- Free to use in many scenarios - Just getting started or pushing a smaller feature? DeCommas API is, in many cases, completely free to use!
- Cost-efficient at scale - Highly competitive prices with the potential to decrease infrastructure cost by up to 40-80% (depending on the project's needs).
- Developer friendly - All of this is accessible through easy to use, flexible and well documented APIs and an SDK.
Among our clients are prominent projects like CoinsStats, reaching 20M+ monthly API calls. DeCommas API is currently available for the following networks:
- Mainnet
- Linea
- Arbitrum
- Arbitrum Nova
- Avalanche
- Optimism
- BSC
- Fantom
- Gnosis
- Polygon
- Polygon zkEVM
- Base
- opBNB
- Mantle
- Scroll
Get access to DeCommas API via https://build.decommas.io. More info on pricing is available at https://build.decommas.io/pricing
DeCommas Price Service
Along with DeCommas API, we have the Price Service that provides a comprehensive overview of ERC-20 price calculations using on-chain data from multiple decentralized exchange pools.
The Price Service API currently provides data from the following networks:
- Mainnet
- Polygon
- Linea (will be rolled out in the future)
Price Service Endpoints:
Getting access to DeCommas API
Gaining access to DeCommas API is simple: Head to https://build.decommas.io/
- Click “Get Started”
- Enter your email address
- Check your email and click the link to sing in
- You are now redirected to https://dashboard.decommas.io/, which contains your API keys Make sure you’ve got your API keys ready. Copy and paste them to a spot where you can easily find them, but keep them safe too.
Setting up DeCommas API in your environment
You can set up the DeCommas API in your environment using either of these two methods: one is via a raw HTTPS request, and the other is using a special toolkit if you’re into JavaScript.
If you choose the first option, the call will appear as follows:
https://datalayer.decommas.net/datalayer/api/v1/tokens/{address}?api-key={YOUR-API-KEY}
But if you’re more of a JavaScript whiz, we’ve got a kit for you called the DeCommas SDK. You can grab it from here: https://github.com/DeCommas/decommas-sdk.
Here’s how to start: Put the DeCommas API inside your Javascript environment by typing:
npm install @decommas/sdk
Once that’s done, just copy and paste the following code:
import { Decommas } from '@decommas/sdk';
const decommas = new Decommas();
const getVitalikERC20Balances = async () => {
const address = '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'; // any address
const tokens = await decommas.address.getTokens({ address });
console.log(tokens);
};
Now you’re all set to make full use of the DeCommas API!