@doublevkay/immunefi-sdk
v0.7.0
Published
Immunefi toolkit
Downloads
17
Readme
immunefi-sdk
Installation
npm install @doublevkay/immunefi-sdk
Usage
import { ProgramManager, Program } from "@doublevkay/immunefi-sdk"
async function main() {
const programManager = new ProgramManager()
await programManager.init() // fetch from local cache or a light API
await programManager.fetchAllProgramDetails() // fetch all program details
const program: Program | undefined = programManager.getProgram("makerdao")
console.log(program)
}
main()
or
const { ProgramManager } = require("@doublevkay/immunefi-sdk")
async function main() {
const programManager = new ProgramManager()
await programManager.init() // fetch from local cache or a light API
await programManager.fetchAllProgramDetails() // fetch all program details
const program = programManager.getProgram("makerdao")
console.log(program)
}
main()