Usage

import { usePayProductsConfig } from "@slicekit/react"
import { useAccount } from "wagmi"

const { address } = useAccount()

const { data: payProductsConfig } = usePayProductsConfig(config, {
  account: address
})

Parameters

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

PayProductsConfigParams

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.