注意: 此页面尚未翻译成中文。以下内容为英文原版。A Fallback or Receive function on a Contract.
Parameters
Parameter | Type | Description |
---|---|---|
overrides ? | Omit <TransactionRequest , "to" > | The transaction overrides. |
Returns
Promise
<ContractTransactionResponse
>
A promise resolving to the transaction response.
Source
contract/types.ts:271Methods
estimateGas()
data
may be overridden.
Parameters
Parameter | Type | Description |
---|---|---|
overrides ? | Omit <TransactionRequest , "to" > | The transaction overrides. |
Returns
Promise
<bigint
>
A promise resolving to the estimated gas.
Source
contract/types.ts:311populateTransaction()
data
may be overridden.
Parameters
Parameter | Type | Description |
---|---|---|
overrides ? | Omit <TransactionRequest , "to" > | The transaction overrides. |
Returns
Promise
<ContractTransaction
>
A promise resolving to the populated transaction.
Source
contract/types.ts:281send()
data
may be overridden.
Parameters
Parameter | Type | Description |
---|---|---|
overrides ? | Omit <TransactionRequest , "to" > | The transaction overrides. |
Returns
Promise
<ContractTransactionResponse
>
A promise resolving to the transaction response.
Source
contract/types.ts:301staticCall()
data
may be overridden.
Parameters
Parameter | Type | Description |
---|---|---|
overrides ? | Omit <TransactionRequest , "to" > | The transaction overrides. |
Returns
Promise
<string
>
A promise resolving to the result of the call.