LogoLogo
  • Gather Fundamentals
    • INTRODUCTION TO GATHER
    • GTH
    • TOKEN STANDARDS
      • CREATE YOUR FIRST GRC-20 TOKEN
      • CREATE YOUR FIRST GRC-721 TOKEN
    • NETWORKS
    • CONSENSUS
      • PROOF-OF-WORK (POW) & GTHASH
    • BLOCK EXPLORER
    • BRIDGE
    • MULTI-SEND
  • GATHER DEVELOPEMENT STACK
    • WALLET SETUPS
      • GATHER WEB WALLET
      • METAMASK MAINNET CONFIGURATION
      • METAMASK TESTNET CONFIGURATION
    • SMART CONTRACTS & DAPPs
      • DEPLOYING YOUR FIRST SMART CONTRACT
      • HARDHAT CONFIGURATION AND DEPLOYMENT
      • TRUFFLE CONFIGURATION AND DEPLOYMENT
      • BUILDING AN ESCROW SMART CONTRACT
      • BUILDING AN E-COMMERCE SHOPPING SMART CONTRACT
      • DEPLOYING NFT MARKETPLACE DAPP
      • DEPLOYING DE-FI BANK DAPP
      • DEPLOYING DECENTRALIZED TWITTER
    • TESTNET FAUCET
    • COVALENT
    • THIRDWEB
    • VERIFY SMART CONTRACTS
      • VERIFY CONTRACTS ON SOURCIFY VIA REMIX IDE
      • VERIFY CONTRACTS USING HARDHAT
Powered by GitBook
On this page
  • Covalent
  • Use Cases
  • Resources
  • About Covalent
  1. GATHER DEVELOPEMENT STACK

COVALENT

PreviousTESTNET FAUCETNextTHIRDWEB

Last updated 2 years ago

Covalent

provides a unified API to bring full transparency and visibility to assets across all blockchain networks including Gather.

To get started, sign up for an .

Developer Mode (JSON)

Analyst Mode (CSV)

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

Covalent API

Response formats

JSON and CSV

Real time response

2 blocks

Batch response

30 minutes

Request volume limit

None

Request rate limit

5 requests per second

Base URL

https://api.covalenthq.com/v1/

Networks & chain_id

Mainnet - 192837465 Testnet - 356256156

Supported Endpoints

Try the supported endpoints directly in your browser from our 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/192837465/address/0xFEC4f9D5B322Aa834056E85946A32c35A3f5aDD8/balances_v2/?key={YOUR API KEY}" -H "Accept: application/json"
  

JavaScript


  const APIKEY = 'YOUR API KEY';
  const baseURL = 'https://api.covalenthq.com/v1'
  const blockchainId = 192837465
  const demoAddress = '0xFEC4f9D5B322Aa834056E85946A32c35A3f5aDD8'
  
  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(blockchainId, demoAddress);

Python


  import requests
  API_KEY = 'YOUR API KEY'
  base_url = 'https://api.covalenthq.com/v1'
  blockchain_id = 192837465
  demo_address = '0xFEC4f9D5B322Aa834056E85946A32c35A3f5aDD8'
  
  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(blockchain_id, demo_address)
  

Use Cases

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

Gaming

DeFi Taxes

KYC

NFTs

Wallets

Dashboards

On-Chain Forensics

DAO Data

DEXs & Trading

Predictive Analytics

Governance

Pricing

Resources

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

About Covalent

Class A - - - - - -

Check out our collection of ready-to-ship that you can use to build your Web3 data-powered dApps.

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 , , and utilizing data from . Covalent is trusted by a community of 35,000+ developers and powers data for 3000+ applications including 0x, Zerion, Rainbow Wallet, Rotki, Bitski and many others.

| | | |

Covalent
API Key
API Reference
Code Templates
Gather Network Details
Project Showcase
Covalent API Reference
API FAQs
Discord Support
crypto wallets
NFT galleries
investor dashboard tools
40+ blockchains
Website
Discord
Telegram
Twitter
Youtube
Balances
Transactions
Transfers
Token Holders
Log Events (Contract Address)
Log Events (Topic Hash)
NFT
KYC
Developer Mode
DeFi
Analyst Mode
Gaming
On-Chain Forensics
Dashboards
DAO
Trading
Wallets
Predictions
Governance
Pricing