Git Product home page Git Product logo

covalenthq-api's Introduction

CovalentHQ API

Created as part of a SF ETHGlobal hackathon project.

Introduction

The Covalent Unified API can be used to pull balances, positions and historical granular transaction data from dozens of blockchain networks. This data enables hundreds of end-user use-cases like wallets, investor dashboards, taxation tools and as-of-yet unknown use-cases.

One Unified API. One Billion Possibilities.

Read more about this API on covalenthq.com.

Developer Resources

API Docs - Use the Covalent API directly from the browser with our API docs Knowledge Base - check out our developer support resources and details on every supported blockchain network.

Installation

npm i covalenthq-api

Example usage

https://api.covalenthq.com/v1/1/address/demo.eth/balances_v2/?quote-currency=USD&format=JSON&nft=false&no-nft-fetch=false&key=ckey_a1857bea207c449a95f55fcd188

import * as CovalentHQ from 'covalenthq-api';

(async () => {
  const covalentHQ = CovalentHQ.createAPI(API_KEY);

  // Get token balances for address
  const balances = await covalentHQ.getTokenBalancesForAddress(address, 1);

  console.log(balances);
})();

TODO

  • Add full suite of APIs, Class B
  • Add more examples
  • Add tests, test other chains
  • More documentation

© 2022, @winzeler

covalenthq-api's People

Contributors

winzeler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.