Skip to content

DepositOptions

Defined in: packages/synapse-sdk/src/payments/service.ts:24

Options for deposit operation

amount: bigint

Defined in: packages/synapse-sdk/src/payments/service.ts:28

The amount to deposit


optional onAllowanceCheck: (current, required) => void

Defined in: packages/synapse-sdk/src/payments/service.ts:33

Called when checking current allowance

ParameterType
currentbigint
requiredbigint

void


optional onApprovalConfirmed: (receipt) => void

Defined in: packages/synapse-sdk/src/payments/service.ts:37

Called when approval is confirmed

ParameterType
receiptTransactionReceipt

void


optional onApprovalTransaction: (tx) => void

Defined in: packages/synapse-sdk/src/payments/service.ts:35

Called when approval transaction is sent

ParameterType
tx`0x${string}`

void


optional onDepositStarting: () => void

Defined in: packages/synapse-sdk/src/payments/service.ts:39

Called before deposit transaction is sent

void


optional to: `0x${string}`

Defined in: packages/synapse-sdk/src/payments/service.ts:26

Optional recipient address (defaults to wallet address if not provided)


optional token: string

Defined in: packages/synapse-sdk/src/payments/service.ts:31

The token to deposit (defaults to USDFC)