go-anvil provides an easy way to use Anvil nodes from Go.
Note
go-anvil requires the foundy binary to be installed. See the foundry repository for installation instructions.
go get github.com/sprintertech/go-anvil
cli := anvil.New(
anvil.WithPort(8545),
)
err := cli.Run()
if err != nil {
print(err)
} Warning
This package is pre-1.0. There might be breaking changes between minor versions.