Skip to main content

SwapAndCreateDealWithETHParams

The SwapAndCreateDealWithETHParams interface defines the parameters required to swap ETH to MEDIA and create a deal.

Properties

  • marketplaceId: bigint | number | string The ID of the marketplace.

  • resourceId: bigint | number | string The ID of the resource.

  • offerId: bigint | number | string The ID of the offer.

  • sharedKeyCopy: string A copy of the shared key for accessing the deal.

  • minMediaAmountOut: bigint | number | string The minimum media amount expected out of the swap.

  • amount: bigint The amount of WETH to use.

  • poolFee: FeeAmount (optional) The fee amount for the Uniswap pair.