networks.yml is the YAML file you use to configure
connections to Ethereum JSON-RPC providers and nodes. Some templates may
provide some pre-configured connections.
This is the default
networks.yml provided by the
.. literalinclude:: ../solidbyte/templates/templates/bare/networks.yml :language: yaml
Each root-level node is the network name you will use to reference the configuration. For instance using the above file, if you want to connect to your local go-ethereum IPC endpoint: sb console geth
The available connection types are:
auto- Setting the connection to auto will allow web3.py to automagically try common configurations for a connection.
websocket- Connect to a Web socket JSON-RPC provider
http- Connect to a plain HTTP(or HTTPS) JSON-RPC provider
ipc- Use the local IPC socket to connect to a local node
eth_tester- A virtual ephemeral chain to test against. Very useful for running unit tests. NOTE: eth_tester is in alpha and has been known to show bugs.
The URL endpoint to connect to. Only available for
The IPC socket to connect to. Only available for type
This is a per-network setting that allows Solidbyte to automatically deploy your contracts if it
needs to use this network. This is great for test backends, but use at your own risk on public
networks. This defaults to
This allows the network to use the account set as default for deployment and testing. This defaults
false for safety.