package
12.2.4
Repository: https://github.com/servprotocolorg/serv.git
Documentation: pkg.go.dev

# Functions

AppConfig helps to override default appConfig template and configs.
DefaultConfig returns server's default configuration.
DefaultEVMConfig returns the default EVM configuration.
DefaultJSONRPCConfig returns an EVM config with the JSON-RPC API enabled by default.
DefaultTLSConfig returns the default TLS configuration.
GetAPINamespaces returns the all the available JSON-RPC API namespaces.
GetConfig returns a fully parsed Config object.
GetDefaultAPINamespaces returns the default list of JSON-RPC namespaces that should be enabled.
ParseConfig retrieves the default environment configuration for the application.

# Constants

DefaultAllowUnprotectedTxs value is false.
DefaultBlockRangeCap is the default cap of block range allowed for 'eth_getLogs' query.
DefaultConfigTemplate defines the configuration template for the EVM RPC configuration.
DefaultEVMTimeout is the default timeout for eth_call.
DefaultEVMTracer is the default vm.Tracer type.
DefaultFeeHistoryCap is the default cap for total number of blocks that can be fetched.
DefaultFilterCap is the default cap for total number of filters that can be created.
DefaultFixRevertGasRefundHeight is the default height at which to overwrite gas refund.
DefaultGasCap is the default cap on gas that can be used in eth_call/estimateGas.
DefaultGRPCAddress is the default address the gRPC server binds to.
DefaultHTTPIdleTimeout is the default idle timeout of the http json-rpc server.
DefaultHTTPTimeout is the default read/write timeout of the http json-rpc server.
DefaultJSONRPCAddress is the default address the JSON-RPC server binds to.
DefaultJsonRPCMetricsAddress is the default address the JSON-RPC Metrics server binds to.
DefaultJSONRPCWsAddress is the default address the JSON-RPC WebSocket server binds to.
DefaultLogsCap is the default cap of results returned from single 'eth_getLogs' query.
DefaultMaxOpenConnections represents the amount of open connections (unlimited = 0).
DefaultMaxTxGasWanted is the default gas wanted for each eth tx returned in ante handler in check tx mode.
DefaultTxFeeCap is the default tx-fee cap for sending a transaction.

# Structs

Config defines the server's top level configuration.
EVMConfig defines the application configuration values for the EVM.
JSONRPCConfig defines configuration for the EVM RPC server.
TLSConfig defines the certificate and matching private key for the server.