Skip to content

depositAndApprove

depositAndApprove(client, options): Promise<`0x${string}`>

Defined in: packages/synapse-core/src/pay/payments.ts:75

Deposit funds to the payments contract and approve an operator.

Parameter Type Description
client Client<Transport, Chain, Account> The client to use.
options DepositAndApproveOptions The options to use.

Promise<`0x${string}`>

The hash of the deposit transaction.

  • SimulateContractErrorType if the simulate contract fails.
  • WriteContractErrorType if the write contract fails.