Skip to main content

Covalent

Introduction

Covalent provides a unified API to bring full transparency and visibility to assets across all blockchains including Aurora's Mainnet and Testnet.

To get started, sign up for an API Key.

JSON supportCSV support
Developer ModeAnalyst Mode

The Covalent API is RESTful and offers the following out-of-the-box for Aurora:

Covalent API
Response formatsJSON and CSV
Real time response2 blocks
Batch response30 minutes
Request volume limitNone
Request rate limit5 requests per second
Base URLhttps://api.covalenthq.com/v1/
Networks & chain_idMainnet - 1313161554
Testnet: - 1313161556
Supported EndpointsClass A Universal
Balances

Try the supported endpoints directly in your browser from our API Reference or use the following code examples. The JSON response format is the same for all endpoints:


"data": ...,
"error": false,
"error_message": null,
"error_code": null

Curl

curl -X GET "https://api.covalenthq.com/v1/{chain_id}/address/{address}/balances_v2/?key={YOUR API KEY}" -H "Accept: application/json"

JavaScript

const APIKEY = 'YOUR API KEY';
const baseURL = 'https://api.covalenthq.com/v1'
const auroraChainId = '1313161554'
const demoAddress = '0xb0bD02F6a392aF548bDf1CfAeE5dFa0EefcC8EaB'

async function getWalletBalance(chainId, address) {
const url = new URL(`${baseURL}/${chainId}/address/${address}/balances_v2/?key=${APIKEY}`);
const response = await fetch(url);
const result = await response.json();
const data = result.data;
console.log(data)
return data;
}

// Example address request
getWalletBalance(auroraChainId, demoAddress);

Python

import requests

API_KEY = 'YOUR API KEY'
base_url = 'https://api.covalenthq.com/v1'
aurora_chain_id = '1313161554'
demo_address = '0xb0bD02F6a392aF548bDf1CfAeE5dFa0EefcC8EaB'

def get_wallet_balance(chain_id, address):
endpoint = f'/{chain_id}/address/{address}/balances_v2/?key={API_KEY}'
url = base_url + endpoint
result = requests.get(url).json()
data = result["data"]
print(data)
return(data)


# Example address request
get_wallet_balance(aurora_chain_id, demo_address)

Use Cases

The Covalent API supports a broad range of Web3 data use cases including:

GamingDeFiKYCNFT
GamingDeFi TaxesKYCNFTs
WalletsDashboardsOn-Chain ForensicsDAO
WalletsDashboardsOn-Chain ForensicsDAO Data
TradingPredictionsGovernancePricing
DEXs & TradingPredictive AnalyticsGovernancePricing

Check out our collection of ready-to-ship Code Templates you can use immediately to build Web3 data-powered dApps.

Resources

Here are some additional resources to help you get started with the Covalent API:

About Covalent

Covalent provides the industry-leading Unified API bringing visibility to billions of Web3 data points. Developers use Covalent to build exciting multi-chain applications like crypto wallets, NFT galleries, and investor dashboard tools utilizing data from most major blockchains. Covalent is trusted by a community of 25,000+ developers and powers data for thousands of applications including 0x, Zerion, Rainbow Wallet, Rotki, Bitski and others.

Website | Discord | Telegram | Twitter | YouTube