Skip to content

deposit

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

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

Deposit funds to the payments contract.

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

Promise<`0x${string}`>

The hash of the deposit transaction.

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