참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.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 |