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()
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Ankr-network/ankr-compound-sdk
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published