Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Ankr-network/ankr-compound-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published