Skip to main content
A Fallback or Receive function on a Contract.
Call the fallback method.

Parameters

Returns

Promise<ContractTransactionResponse> A promise resolving to the transaction response.

Source

contract/types.ts:271

Methods

estimateGas()

Estimate the gas to send a transaction to the contract fallback. For non-receive fallback, data may be overridden.

Parameters

Returns

Promise<bigint> A promise resolving to the estimated gas.

Source

contract/types.ts:311

populateTransaction()

Returns a populated transaction that can be used to perform the fallback method. For non-receive fallback, data may be overridden.

Parameters

Returns

Promise<ContractTransaction> A promise resolving to the populated transaction.

Source

contract/types.ts:281

send()

Send a transaction to the contract fallback. For non-receive fallback, data may be overridden.

Parameters

Returns

Promise<ContractTransactionResponse> A promise resolving to the transaction response.

Source

contract/types.ts:301

staticCall()

Call the contract fallback and return the result. For non-receive fallback, data may be overridden.

Parameters

Returns

Promise<string> A promise resolving to the result of the call.

Source

contract/types.ts:291