Documentation Index Fetch the complete documentation index at: https://sequence-0fb8d9e6-unreal-quickstart-with-marketplace.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
useMarketplaceConfig
The useMarketplaceConfig hook retrieves your Marketplace’s configuration, including collections, social links, title, and other settings from Builder.
import { useMarketplaceConfig } from "@0xsequence/marketplace-sdk/react" ;
## Into your React component :
const data = useMarketplaceConfig ();
Unique identifier of the marketplace publisher.
The title of the marketplace.
A brief description of the marketplace.
Social media links associated with the marketplace.
URL of the marketplace’s favicon.
URL of the Marketplace banner for landing page
Array of collections from the marketplace.
Configuration options for wallet integrations.
Layout configuration for the marketplace’s landing page.
URL of the marketplace’s logo.
URL of the marketplace’s banner.
URL of the custom font used in the marketplace.
Custom CSS styles for the marketplace.
URL of the marketplace manifest file.
useListCollectibles
The useListCollectibles hook retrieves the current listings and offers in a collection from your Marketplace. Useful for accessing and managing listings and offers efficiently.
import { OrderSide } from '@0xsequence/marketplace-sdk' ;
import { useListCollectibles } from '@0xsequence/marketplace-sdk/react' ;
## Into your React component :
const {
data : collectibles ,
isLoading : collectiblesLoading ,
fetchNextPage : fetchNextCollectibles ,
} = useListCollectibles ({
chainId ,
collectionAddress ,
filter: {
// # Optional filters
includeEmpty ,
searchText ,
properties ,
},
side: OrderSide . listing ,
});
const collectiblesFlat =
collectibles ?. pages . flatMap (( p ) => p . collectibles ) ?? [];
return (
< div >
{ collectiblesFlat ?. map (( collectible ) => (
// Your Collectibles component
))}
</ div >
);
interface UseListCollectiblesArgs {
chainId : string ;
side : OrderSide ;
collectionAddress : `0x ${ string } ` ;
page ?: {
page : number ;
pageSize : number ;
sort ?: {
order : SortOrder$1 ;
column : string ;
}[];
more ?: boolean ;
};
filter ?: {
includeEmpty : boolean ;
searchText ?: string ;
properties ?: {
type : PropertyType ;
name : string ;
values ?: any [];
max ?: number ;
min ?: number ;
}[];
marketplaces ?: MarketplaceKind [];
inAccounts ?: string [];
notInAccounts ?: string [];
ordersCreatedBy ?: string [];
ordersNotCreatedBy ?: string [];
};
query ?: {
enabled ?: boolean ;
};
}
Contains the paginated collectible orders data.
List of collectible orders returned in pages.
Indicates whether the data is currently loading.
fetchNextPage
(options?: FetchNextPageOptions) => Promise<UseInfiniteQueryResult>
This function allows you to fetch the next “page” of results.
useListCollectiblesPaginated
The useListCollectiblesPaginated hook efficiently retrieves and manages current listings and offers from your Marketplace, making it ideal for displaying paginated NFTs within a collection.
import { OrderSide } from '@0xsequence/marketplace-sdk' ;
import { useListCollectiblesPaginated } from '@0xsequence/marketplace-sdk/react' ;
const chainId = 137 ;
const searchText = "" ;
const enabled = true ;
const includeEmpty = true ;
const properties = [];
const pageSize = 30 ;
const currentPage = 1 ;
const collectionAddress = "0x0e5566a108e617baedbebb44e3fcc7bf03e3a839" ;
## Into your React component :
const {
data : collectiblesResponse ,
isLoading : collectiblesLoading ,
} = useListCollectiblesPaginated ({
chainId: String ( chainId ),
collectionAddress ,
side: OrderSide . listing ,
filter: {
// # Optional filters
includeEmpty ,
searchText ,
properties ,
},
page: {
page: currentPage ,
pageSize ,
},
query: {
page: currentPage ,
pageSize ,
enabled ,
},
});
const collectiblesList = collectiblesResponse ?. collectibles ?? [];
return (
< div >
{ collectiblesList ?. map (( collectible ) => (
// Your Collectibles component
))}
</ div >
);
useListCollectiblesPaginated details
interface UseListCollectiblesPaginatedArgs {
chainId : string ;
side : OrderSide ;
collectionAddress : `0x ${ string } ` ;
page ?: {
page : number ;
pageSize : number ;
sort ?: {
order : SortOrder$1 ;
column : string ;
}[];
more ?: boolean ;
};
filter ?: {
includeEmpty : boolean ;
searchText ?: string ;
properties ?: {
type : PropertyType ;
name : string ;
values ?: any [];
max ?: number ;
min ?: number ;
}[];
marketplaces ?: MarketplaceKind [];
inAccounts ?: string [];
notInAccounts ?: string [];
ordersCreatedBy ?: string [];
ordersNotCreatedBy ?: string [];
};
query : {
page : number ;
pageSize : number ;
enabled ?: boolean ;
};
}
Contains the collectible orders data.
List of collectible orders.
Indicates whether the data is currently loading.
useCountOfCollectables
The useCountOfCollectables hook returns the number of NFTs in a collection.
import { OrderSide } from '@0xsequence/marketplace-sdk' ;
import { useCountOfCollectables } from '@0xsequence/marketplace-sdk/react' ;
const countOfCollectables = useCountOfCollectables ({
chainId: String ( chainId ),
collectionAddress: collectionId ,
side: OrderSide . listing ,
filter: {
searchText: text ,
includeEmpty ,
properties ,
},
});
useCountOfCollectables details
interface UseCountOfCollectables {
chainId : ChainId ;
collectionAddress : CollectionAddress ;
query ?: { enabled ?: boolean };
filter ?: {
includeEmpty : boolean ;
searchText ?: string ;
properties ?: {
name : string ;
type : PropertyType ;
min ?: number ;
max ?: number ;
values ?: any [];
}[];
marketplaces ?: MarketplaceKind [];
inAccounts ?: string [];
notInAccounts ?: string [];
ordersCreatedBy ?: string [];
ordersNotCreatedBy ?: string [];
};
side ?: OrderSide ;
}
Indicates whether the data is currently loading.