currencyPriceForListing

Retrieves the currency price for a listing.

Example

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

Parameters

The options for retrieving the currency price.

Type

Returns

let returnType: Promise<bigint>;

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