1.1.0 • Published 2 years ago

@ankr.com/ankr-compound-sdk v1.1.0

Weekly downloads
7
License
ISC
Repository
github
Last release
2 years ago

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()
1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago