package backends
import "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
Index ¶
Types ¶
type SimulatedBackend ¶
SimulatedBackend is a simulated blockchain. Deprecated: use package github.com/ethereum/go-ethereum/ethclient/simulated instead.
func NewSimulatedBackend ¶
func NewSimulatedBackend(alloc types.GenesisAlloc, gasLimit uint64) *SimulatedBackend
NewSimulatedBackend creates a new binding backend using a simulated blockchain for testing purposes.
A simulated backend always uses chainID 1337.
Deprecated: please use simulated.Backend from package github.com/ethereum/go-ethereum/ethclient/simulated instead.
func (*SimulatedBackend) Fork ¶
Fork sets the head to a new block, which is based on the provided parentHash.
Source Files ¶
- Version
- v1.16.1 (latest)
- Published
- Jul 2, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 days ago –
Tools for package owners.