Skip to content

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.

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.

ParameterType
txTransactionRequest

Promise<string>


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.

ParameterType
txTransactionRequest

Promise<bigint>


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]].


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

ParameterType
namestring

Promise<null | string>


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

ParameterType
txTransactionRequest

Promise<TransactionResponse>