Skip to content

depositAndApprove

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

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

Deposit funds to the payments contract and approve an operator.

ParameterTypeDescription
clientClient<Transport, Chain, Account>The client to use.
optionsDepositAndApproveOptionsThe options to use.

Promise<`0x${string}`>

The hash of the deposit transaction.

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