Skip to content

brinktrade/node-anvil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-anvil

Node.js utility for Foundry's anvil process

Use

Install

npm install --save-dev @brinkninja/node-anvil

Import startAnvil

import { startAnvil } from '@brinkninja/node-anvil'

Use startAnvil to start and kill the anvil process. Provide any anvil command line args as camelCase.

  const anvil = await startAnvil({ forkUrl: '<MY_RPC_URL>', port: 8546 })

  anvil.kill()

Build and Test

  1. Install Docker Desktop for your system (Mac, Linux)
  2. Create a .env file with RPC_URL set to a mainnet (chainId=1) RPC URL.
  3. Run npm run docker to test

About

Node.js utility for Foundry's anvil process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published