• Beta

    Get a listing

    Parameters

    • contract: RequiredParam<Marketplace>

      an instance of a marketplace contract

    • listingId: RequiredParam<BigNumberish>

      the listing id to check

    Returns UseQueryResult

    a response object that includes the desired listing

    Example

    const listingId = 0; // the listing id to check
    const { data: listing, isLoading, error } = useListing(contract, listingId);

    See

    Documentation

Generated using TypeDoc