> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# WrappedFallback

A Fallback or Receive function on a Contract.

```ts theme={null}
interface WrappedFallback(overrides?): Promise<ContractTransactionResponse>
```

Call the fallback method.

## Parameters

| Parameter    | Type                                                                                  | Description                |
| :----------- | :------------------------------------------------------------------------------------ | :------------------------- |
| `overrides`? | `Omit`\<[`TransactionRequest`](/sdk/content/type-aliases/TransactionRequest), `"to"`> | The transaction overrides. |

## Returns

`Promise`\<[`ContractTransactionResponse`](/sdk/content/classes/ContractTransactionResponse)>

A promise resolving to the transaction response.

## Source

[contract/types.ts:271](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/types.ts#L271)

## Methods

### estimateGas()

```ts theme={null}
estimateGas(overrides?): Promise<bigint>
```

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`](/sdk/content/type-aliases/TransactionRequest), `"to"`> | The transaction overrides. |

#### Returns

`Promise`\<`bigint`>

A promise resolving to the estimated gas.

#### Source

[contract/types.ts:311](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/types.ts#L311)

***

### populateTransaction()

```ts theme={null}
populateTransaction(overrides?): Promise<ContractTransaction>
```

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`](/sdk/content/type-aliases/TransactionRequest), `"to"`> | The transaction overrides. |

#### Returns

`Promise`\<[`ContractTransaction`](/sdk/content/interfaces/ContractTransaction)>

A promise resolving to the populated transaction.

#### Source

[contract/types.ts:281](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/types.ts#L281)

***

### send()

```ts theme={null}
send(overrides?): Promise<ContractTransactionResponse>
```

Send a transaction to the contract fallback.

For non-receive fallback, `data` may be overridden.

#### Parameters

| Parameter    | Type                                                                                  | Description                |
| :----------- | :------------------------------------------------------------------------------------ | :------------------------- |
| `overrides`? | `Omit`\<[`TransactionRequest`](/sdk/content/type-aliases/TransactionRequest), `"to"`> | The transaction overrides. |

#### Returns

`Promise`\<[`ContractTransactionResponse`](/sdk/content/classes/ContractTransactionResponse)>

A promise resolving to the transaction response.

#### Source

[contract/types.ts:301](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/types.ts#L301)

***

### staticCall()

```ts theme={null}
staticCall(overrides?): Promise<string>
```

Call the contract fallback and return the result.

For non-receive fallback, `data` may be overridden.

#### Parameters

| Parameter    | Type                                                                                  | Description                |
| :----------- | :------------------------------------------------------------------------------------ | :------------------------- |
| `overrides`? | `Omit`\<[`TransactionRequest`](/sdk/content/type-aliases/TransactionRequest), `"to"`> | The transaction overrides. |

#### Returns

`Promise`\<`string`>

A promise resolving to the result of the call.

#### Source

[contract/types.ts:291](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/contract/types.ts#L291)
