@wooy/api-runner
v1.0.7
Published
Executes heavy-lifting API code in a regular node enviroment (ie. not `wrangler`) for better debugging, etc
Downloads
4
Maintainers
Keywords
Readme
Wooy 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)