DepositOptions
Defined in: packages/synapse-sdk/src/payments/service.ts:24
Options for deposit operation
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: packages/synapse-sdk/src/payments/service.ts:28
The amount to deposit
onAllowanceCheck()?
Section titled “onAllowanceCheck()?”
optionalonAllowanceCheck: (current,required) =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:33
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:37
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:35
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:39
Called before deposit transaction is sent
Returns
Section titled “Returns”void
optionalto:`0x${string}`
Defined in: packages/synapse-sdk/src/payments/service.ts:26
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:31
The token to deposit (defaults to USDFC)