MCPcopy Create free account
hub / github.com/cowprotocol/services / web3

Function web3

crates/shared/src/web3.rs:72–75  ·  view source on GitHub ↗

Create a Web3 instance with a label for observability.

(args: &Arguments, url: &Url, name: impl ToString)

Source from the content-addressed store, hash-verified

70
71/// Create a Web3 instance with a label for observability.
72pub fn web3(args: &Arguments, url: &Url, name: impl ToString) -> Web3 {
73 let label = name.to_string();
74 ethrpc::web3(args.ethrpc(), url, Some(&label))
75}

Calls 2

to_stringMethod · 0.80
ethrpcMethod · 0.80