tuweni / org.apache.tuweni.ethclient / EthereumClientConfig

EthereumClientConfig

class EthereumClientConfig (source)

Configuration of EthereumClient. Can be provided via file or over the wire.

Constructors

<init>

Configuration of EthereumClient. Can be provided via file or over the wire.

EthereumClientConfig(config: Configuration = Configuration.empty(createSchema()))

Functions

dataStores

fun dataStores(): List<DataStoreConfiguration>

dnsClients

fun dnsClients(): List<DNSConfiguration>

genesisFiles

fun genesisFiles(): List<GenesisFileConfiguration>

metricsGrpcPushEnabled

fun metricsGrpcPushEnabled(): Boolean

metricsNetworkInterface

fun metricsNetworkInterface(): String

metricsPort

fun metricsPort(): Int

metricsPrometheusEnabled

fun metricsPrometheusEnabled(): Boolean

peerRepositories

fun peerRepositories(): List<PeerRepositoryConfiguration>

rlpxServices

fun rlpxServices(): List<RLPxServiceConfiguration>

staticPeers

fun staticPeers(): List<StaticPeersConfiguration>

toToml

fun toToml(): String!

Companion Object Functions

createSchema

fun createSchema(): Schema

empty

fun empty(): EthereumClientConfig

fromFile

fun fromFile(path: Path?): EthereumClientConfig

fromString

fun fromString(config: String): EthereumClientConfig