@ankr.com/ankr-compound-sdk

1.1.0 • Public • Published

ankr-compound-sdk

Start with ankr-compound-sdk

const ankrCompound = require('@ankr.com/ankr-compound-sdk')
const {config, compound: {apiKey}} = ankrCompound

config.setConfig({
    endpoint: 'some endpoint',
    apiKey: 'some api key'
})

const main = async () => {
    console.log('-----------apikey list-------------')
    const apiKeys = await apiKey.list()
    console.log(apiKeys)

    console.log('-----------apikey get-------------')
    const _apiKeyGet = await apiKey.get(apiKeys[0]['apiKeyID'])
    console.log(_apiKeyGet)

    console.log('-----------apikey create-------------')
    const _apiKeyCreate = await apiKey.create()
    console.log(_apiKeyCreate)

    console.log('-----------apikey remove-------------')
    const ret = await apiKey.remove(_apiKeyCreate['apiKeyID'])
    console.log(ret)
}

main()

Package Sidebar

Install

npm i @ankr.com/ankr-compound-sdk

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

14.1 kB

Total Files

19

Last publish

Collaborators

  • intoskai
  • nwts0as
  • ankr_network