npm.io
1.0.6 • Published 5 years ago

covalent-api

Licence
ISC
Version
1.0.6
Deps
1
Size
3 kB
Vulns
0
Weekly
0

about

A WORK-IN-PROGRESS, DOES NOT WORK YET.

An ES6 Node module for interacting with the Covalent API. Use it in your Angular or React projects

installation

npm i covalent-api --save

Usage:

  • import the module

  • create a config with your api_key

  • call functions with the corresponding parameters

  • import the module

  • create a config with your api_key

  • call functions with the corresponding parameters


import { Covalent } from 'covalent-api';

...

ngOnInit(): void {

    let config = { api_key: 'onemillionwallets' };
    let cov = new Covalent(config);

    cov.getTokenBalancesForAddress('1', '0x84ae5ee482a7a4470386555eed41645aaa62f574')
      .then((res) => console.log(res));

}