@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()
Dependencies (2)
Dev Dependencies (2)
Package Sidebar
Install
npm i @ankr.com/ankr-compound-sdk
Weekly Downloads