WrappedFallback
A Fallback or Receive function on a Contract.
Call the fallback method.
Parameters
Parameter | Type | Description |
---|---|---|
overrides ? | Omit <TransactionRequest , "to" > | The transaction overrides. |
Returns
Promise
<ContractTransactionResponse
>
A promise resolving to the transaction response.
Source
Methods
estimateGas()
Estimate the gas to send a transaction to the contract fallback.
For non-receive fallback, 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
populateTransaction()
Returns a populated transaction that can be used to perform the fallback method.
For non-receive fallback, 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
send()
Send a transaction to the contract fallback.
For non-receive fallback, 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
staticCall()
Call the contract fallback and return the result.
For non-receive fallback, 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.
Source
Was this page helpful?