pub struct Builder { /* private fields */ }Expand description
A builder for NodeEthereumAttributes.
Implementations§
source§impl Builder
impl Builder
sourcepub fn http_endpoint(self, input: impl Into<String>) -> Self
pub fn http_endpoint(self, input: impl Into<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum API methods over HTTP connections from a client. Use this endpoint in client code for smart contracts when using an HTTP connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn set_http_endpoint(self, input: Option<String>) -> Self
pub fn set_http_endpoint(self, input: Option<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum API methods over HTTP connections from a client. Use this endpoint in client code for smart contracts when using an HTTP connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn web_socket_endpoint(self, input: impl Into<String>) -> Self
pub fn web_socket_endpoint(self, input: impl Into<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods over WebSocket connections from a client. Use this endpoint in client code for smart contracts when using a WebSocket connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn set_web_socket_endpoint(self, input: Option<String>) -> Self
pub fn set_web_socket_endpoint(self, input: Option<String>) -> Self
The endpoint on which the Ethereum node listens to run Ethereum JSON-RPC methods over WebSocket connections from a client. Use this endpoint in client code for smart contracts when using a WebSocket connection. Connections to this endpoint are authenticated using Signature Version 4.
sourcepub fn build(self) -> NodeEthereumAttributes
pub fn build(self) -> NodeEthereumAttributes
Consumes the builder and constructs a NodeEthereumAttributes.