currencyPriceForListing

Retrieves the currency price for a listing.

Example

import { currencyPriceForListing } from "thirdweb/extensions/marketplace";
const price = await currencyPriceForListing({
contract,
listingId: 1n,
currency: "0x...",
});

Parameters

Returns

A promise that resolves to the currency price as a bigint.