DOCS

useListing

Get a listing

Example

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

Parameters

Returns

a response object that includes the desired listing