Socket
Book a DemoInstallSign in
Socket

@pooltogether/api-runner

Package Overview
Dependencies
Maintainers
6
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pooltogether/api-runner

Executes heavy-lifting API code in a regular node enviroment (ie. not `wrangler`) for better debugging, etc

latest
Source
npmnpm
Version
1.11.0
Version published
Maintainers
6
Created
Source

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) or setQuicknodeId(QUICKNODE_ID)
  • setFetch(fetch)
  • getPools(1)

Local Testing

  • node
  • const { getPools, setInfuraId } = require( './dist/index')
  • setInfuraId(YOUR_INFURA_ID)
  • getPools(chainId)

FAQs

Package last updated on 05 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts