Skip to content

setOperatorApproval

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

Defined in: packages/synapse-core/src/pay/operators.ts:96

Set the operator approval for the payments contract.

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

Promise<`0x${string}`>

The hash of the approve transaction.

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