# depositCall

> **depositCall**(`options`): [`OutputType`](/reference/filoz/synapse-core/pay/namespaces/depositcall/type-aliases/outputtype/)

Defined in: [packages/synapse-core/src/pay/deposit.ts:209](https://github.com/FilOzone/synapse-sdk/blob/7fdc04df4e3c52366a9f0cd55da4c05e20b2ed82/packages/synapse-core/src/pay/deposit.ts#L209)

Create a call to the deposit function

This function is used to create a call to the deposit function for use with
sendCalls, sendTransaction, multicall, estimateContractGas, or simulateContract.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | \{ `amount`: `bigint`; `chain`: `Chain`; `contractAddress?`: `` `0x${string}` ``; `to`: `` `0x${string}` ``; `token?`: `` `0x${string}` ``; \} | [depositCall.OptionsType](/reference/filoz/synapse-core/pay/namespaces/depositcall/type-aliases/optionstype/) |
| `options.amount` | `bigint` | The amount to deposit (in token base units). Must be greater than 0. |
| `options.chain` | `Chain` | The chain to use to make the call. |
| `options.contractAddress?` | `` `0x${string}` `` | Payments contract address. If not provided, the default is the payments contract address for the chain. |
| `options.to` | `` `0x${string}` `` | The recipient address for the deposit. If not provided, the sender's address will be used. |
| `options.token?` | `` `0x${string}` `` | The address of the ERC20 token to deposit. If not provided, the USDFC token address will be used. |

## Returns

[`OutputType`](/reference/filoz/synapse-core/pay/namespaces/depositcall/type-aliases/outputtype/)

The call to the deposit function [depositCall.OutputType](/reference/filoz/synapse-core/pay/namespaces/depositcall/type-aliases/outputtype/)

## Throws

Errors [depositCall.ErrorType](/reference/filoz/synapse-core/pay/namespaces/depositcall/type-aliases/errortype/)

## Example

```ts
import { depositCall } from '@filoz/synapse-core/pay'
import { createWalletClient, http, parseUnits } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'
import { simulateContract } from 'viem/actions'
import { calibration } from '@filoz/synapse-core/chains'

const account = privateKeyToAccount('0x...')
const client = createWalletClient({
  account,
  chain: calibration,
  transport: http(),
})

// Use with simulateContract
const { request } = await simulateContract(client, depositCall({
  chain: calibration,
  to: account.address,
  amount: parseUnits('100', 18),
}))

console.log(request)
```