ContractRunner
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/contracts.d.ts:11
A ContractRunner is a generic interface which defines an object capable of interacting with a Contract on the network.
The more operations supported, the more utility it is capable of.
The most common ContractRunners are Providers which enable read-only access and Signers which enable write-access.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”call()?
Section titled “call()?”optional call: (tx) => Promise<string>;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/contracts.d.ts:26
Required for pure, view or static calls to contracts.
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
tx | TransactionRequest |
Returns
Section titled “Returns”Promise
<string
>
estimateGas()?
Section titled “estimateGas()?”optional estimateGas: (tx) => Promise<bigint>;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/contracts.d.ts:22
Required to estimate gas.
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
tx | TransactionRequest |
Returns
Section titled “Returns”Promise
<bigint
>
provider
Section titled “provider”provider: null | Provider;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/contracts.d.ts:18
The provider used for necessary state querying operations.
This can also point to the ContractRunner itself, in the case of an [[AbstractProvider]].
resolveName()?
Section titled “resolveName()?”optional resolveName: (name) => Promise<null | string>;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/contracts.d.ts:30
Required to support ENS names
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
name | string |
Returns
Section titled “Returns”Promise
<null
| string
>
sendTransaction()?
Section titled “sendTransaction()?”optional sendTransaction: (tx) => Promise<TransactionResponse>;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/contracts.d.ts:34
Required for state mutating calls
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
tx | TransactionRequest |