注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。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.
Property | Type | Description |
---|---|---|
call? | (tx : QuaiTransactionRequest ) => Promise <string > | Required for pure, view or static calls to contracts. |
createAccessList? | (tx : QuaiTransactionRequest ) => Promise <AccessList > | Required for populating access lists for state mutating calls |
estimateGas? | (tx : TransactionRequest ) => Promise <bigint > | Required to estimate gas. |
provider | null | Provider | The provider used for necessary state querying operations. This can also point to the ContractRunner itself, in the case of an AbstractProvider. |
sendTransaction? | (tx : TransactionRequest ) => Promise <TransactionResponse > | Required for state mutating calls |