2021-04-18 16:39:15 +00:00
|
|
|
package config
|
|
|
|
|
2021-06-29 17:02:21 +00:00
|
|
|
// DefaultConfigTemplate defines the configuration template for the EVM RPC configuration
|
|
|
|
const DefaultConfigTemplate = `
|
2021-04-18 16:39:15 +00:00
|
|
|
###############################################################################
|
|
|
|
### EVM RPC Configuration ###
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
[evm-rpc]
|
|
|
|
|
|
|
|
# Enable defines if the gRPC server should be enabled.
|
|
|
|
enable = {{ .EVMRPC.Enable }}
|
|
|
|
|
|
|
|
# Address defines the EVM RPC HTTP server address to bind to.
|
2021-05-10 16:34:00 +00:00
|
|
|
address = "{{ .EVMRPC.RPCAddress }}"
|
2021-04-18 16:39:15 +00:00
|
|
|
|
|
|
|
# Address defines the EVM WebSocket server address to bind to.
|
|
|
|
ws-address = "{{ .EVMRPC.WsAddress }}"
|
2021-07-28 09:47:29 +00:00
|
|
|
|
|
|
|
# API defines a list of JSON-RPC namespaces that should be enabled
|
|
|
|
api = "{{ .EVMRPC.API }}"
|
|
|
|
|
|
|
|
# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk)
|
|
|
|
enable-unsafe-cors = "{{ .EVMRPC.EnableUnsafeCORS }}"
|
2021-04-18 16:39:15 +00:00
|
|
|
`
|