0.0.5 • Published 2 years ago

@sekmet/covalentjs v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

covalentjs

node.js bindings for covalenthq.com

usage

Get covalent api key from https://www.covalenthq.com

Set environment variable API_KEY. Set DEBUG=covalentjs environment variable to debug requests.

import covalentJs from '@sekmet/covalentjs';

const covalentjs = require('@sekmet/covalentjs');

// you can use classA, classB or pricing APIs
// format covalentjs.<API class>.api
// Example:
const result = await covalentjs.classA.getTokenBalancesForAddress(1, '0x4004AFc68dd8B5483bBaB82C84b81181fCB545B1', { nft: true });

API refrence

Go to https://www.covalenthq.com/docs/api/