Usage

import { payProducts } from "@slicekit/core"
import { useAccount } from "wagmi"

const { address } = useAccount()

const hash = await payProducts(config, {
  account: address,
  cart
})

Parameters

config
Config
required
Wagmi Config to use.
params
PayProductsConfigParams
PayProductsConfigParams type.

PayProductsParams

account
`0x${string}`
required
Account address executing the transaction. Typically corresponds with buyer.
buyer
`0x${string}`
Buyer address for the transaction. Defaults to account.
referrer
`0x${string}`
Referrer address for the transaction.
extraCosts
ExtraCost[]
default:[]
Additional costs to be added to the transaction.

Return Type

hash
`0x${string}`
Transaction hash.