1.10.8 • Published 2 years ago
@djaciel/api-runner v1.10.8
Pooltogether API - Runner
This library allows you to run the API locally for debugging via the node.js node
enviroment, as well as be included in other packages (such as the Cloudflare Worker api-entrypoint
).
Development
setInfuraId(INFURA_ID)
orsetQuicknodeId(QUICKNODE_ID)
setFetch(fetch)
getPools(1)
Local Testing
node
const { getPools, setInfuraId } = require( './dist/index')
setInfuraId(YOUR_INFURA_ID)
getPools(chainId)