pub struct Builder { /* private fields */ }Expand description
A builder for NetworkEthereumAttributes.
Implementations§
source§impl Builder
impl Builder
sourcepub fn chain_id(self, input: impl Into<String>) -> Self
pub fn chain_id(self, input: impl Into<String>) -> Self
The Ethereum CHAIN_ID associated with the Ethereum network. Chain IDs are as follows:
-
mainnet =
1 -
goerli =
5 -
rinkeby =
4 -
ropsten =
3
sourcepub fn set_chain_id(self, input: Option<String>) -> Self
pub fn set_chain_id(self, input: Option<String>) -> Self
The Ethereum CHAIN_ID associated with the Ethereum network. Chain IDs are as follows:
-
mainnet =
1 -
goerli =
5 -
rinkeby =
4 -
ropsten =
3
sourcepub fn build(self) -> NetworkEthereumAttributes
pub fn build(self) -> NetworkEthereumAttributes
Consumes the builder and constructs a NetworkEthereumAttributes.