DepositOptions
Defined in: packages/synapse-sdk/src/payments/service.ts:18
Options for deposit operation
Properties
Section titled “Properties”onAllowanceCheck()?
Section titled “onAllowanceCheck()?”
optionalonAllowanceCheck: (current,required) =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:22
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:26
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:24
Called when approval transaction is sent
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
tx | TransactionResponse |
Returns
Section titled “Returns”void
onDepositStarting()?
Section titled “onDepositStarting()?”
optionalonDepositStarting: () =>void
Defined in: packages/synapse-sdk/src/payments/service.ts:28
Called before deposit transaction is sent
Returns
Section titled “Returns”void
optionalto:string
Defined in: packages/synapse-sdk/src/payments/service.ts:20
Optional recipient address (defaults to signer address if not provided)