UseDepositAndApproveProps
Defined in: synapse-react/src/payments/use-deposit-and-approve.ts:11
Extends
Section titled “Extends”Omit<DepositAndApproveOptions,"amount">
Properties
Section titled “Properties”address?
Section titled “address?”
optionaladdress:`0x${string}`
Defined in: synapse-core/dist/src/pay/payments.d.ts:32
Inherited from
Section titled “Inherited from”Omit.address
deadline?
Section titled “deadline?”
optionaldeadline:bigint
Defined in: synapse-core/dist/src/pay/payments.d.ts:33
Inherited from
Section titled “Inherited from”Omit.deadline
mutation?
Section titled “mutation?”
optionalmutation:Omit<MutateOptions<TransactionReceipt,Error,UseDepositAndApproveVariables,unknown>,"mutationFn">
Defined in: synapse-react/src/payments/use-deposit-and-approve.ts:15
The mutation options.
onHash()?
Section titled “onHash()?”
optionalonHash: (hash) =>void
Defined in: synapse-react/src/payments/use-deposit-and-approve.ts:19
The callback to call when the hash is available.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
hash | string |
Returns
Section titled “Returns”void
operator?
Section titled “operator?”
optionaloperator:`0x${string}`
Defined in: synapse-core/dist/src/pay/payments.d.ts:29
Inherited from
Section titled “Inherited from”Omit.operator
spender?
Section titled “spender?”
optionalspender:`0x${string}`
Defined in: synapse-core/dist/src/pay/payments.d.ts:31
Inherited from
Section titled “Inherited from”Omit.spender
token?
Section titled “token?”
optionaltoken:`0x${string}`
Defined in: synapse-core/dist/src/pay/payments.d.ts:30
Inherited from
Section titled “Inherited from”Omit.token