DepositOptions
Defined in: packages/synapse-sdk/src/payments/service.ts:22
Options for deposit operation
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/synapse-sdk/src/payments/service.ts:26
The amount to deposit
onAllowanceCheck?
Section titled “onAllowanceCheck?”
optionalonAllowanceCheck?: (current,required) =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:30
Called when checking current allowance
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
current | bigint |
required | bigint |
Returns
Section titled “Returns”void
onApprovalConfirmed?
Section titled “onApprovalConfirmed?”
optionalonApprovalConfirmed?: (receipt) =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:34
Called when approval is confirmed
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
receipt | TransactionReceipt |
Returns
Section titled “Returns”void
onApprovalTransaction?
Section titled “onApprovalTransaction?”
optionalonApprovalTransaction?: (tx) =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:32
Called when approval transaction is sent
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
tx | `0x${string}` |
Returns
Section titled “Returns”void
onDepositStarting?
Section titled “onDepositStarting?”
optionalonDepositStarting?: () =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:36
Called before deposit transaction is sent
Returns
Section titled “Returns”void
optionalto?:`0x${string}`
Defined in: packages/synapse-sdk/src/payments/service.ts:24
Optional recipient address (defaults to wallet address if not provided)
token?
Section titled “token?”
optionaltoken?:string
Defined in: packages/synapse-sdk/src/payments/service.ts:28
The token to deposit (defaults to USDFC)