OptionsType
OptionsType =
object
Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:25
Properties
Section titled “Properties”address?
Section titled “address?”
optionaladdress?:Address
Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:31
The depositor address. If not provided, the client account address will be used.
amount
Section titled “amount”amount:
bigint
Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:27
The amount to deposit (in token base units). Must be greater than 0.
deadline?
Section titled “deadline?”
optionaldeadline?:bigint
Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:35
The permit deadline as a Unix timestamp (seconds). If not provided, defaults to now + 1 hour.
spender?
Section titled “spender?”
optionalspender?:Address
Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:33
The spender address for the permit. If not provided, the payments contract address will be used.
token?
Section titled “token?”
optionaltoken?:Address
Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:29
The address of the ERC20 token. If not provided, the USDFC token address will be used.