MCPcopy Create free account
hub / github.com/Bot80926/ethers-scripts / constructor

Method constructor

utils/provider.js:4–10  ·  view source on GitHub ↗
(props = {})

Source from the content-addressed store, hash-verified

2
3class Provider {
4 constructor(props = {}) {
5 this.props = props;
6 this.chain = props.chain;
7 this.chainId = props.chainId;
8 this.fullnode = props.fullnode;
9 this.provider = new Ethers.providers.JsonRpcProvider(this.fullnode, this.chainId);
10 }
11
12 getProvider() {
13 return this.provider;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected