A versatile card component for displaying collectibles in marketplace and shop contexts
Parameter | Type | Description |
---|---|---|
collectibleId | string | Unique identifier for the collectible |
chainId | number | The blockchain network ID |
collectionAddress | Address | The smart contract address of the collection |
collectionType | ContractType | Optional. The type of contract (ERC721 or ERC1155) |
assetSrcPrefixUrl | string | Optional URL prefix for asset sources |
cardLoading | boolean | Optional flag to show loading state |
marketplaceType | MarketplaceType | Optional. Type of marketplace (‘market’ or ‘shop’) |
isTradable | boolean | Optional flag indicating if the item can be traded |
marketplaceType="shop"
):
Parameter | Type | Description |
---|---|---|
salesContractAddress | Address | The address of the sales contract |
tokenMetadata | TokenMetadata | Metadata for the token including name, description, image |
salePrice | object | Optional. Price information including amount and currency |
saleStartsAt | string | Optional. Sale start timestamp |
saleEndsAt | string | Optional. Sale end timestamp |
quantityDecimals | number | Optional. Number of decimals for quantity |
quantityInitial | string | Optional. Initial supply amount |
quantityRemaining | string | Optional. Remaining supply amount |
unlimitedSupply | boolean | Optional. Whether the supply is unlimited |
marketplaceType="market"
):
Parameter | Type | Description |
---|---|---|
orderbookKind | OrderbookKind | Optional. Type of orderbook |
collectible | CollectibleOrder | Optional. Collectible order information |
onCollectibleClick | function | Optional. Handler for collectible click events |
onOfferClick | function | Optional. Handler for offer click events |
balance | string | Optional. User’s balance of this collectible |
balanceIsLoading | boolean | Whether the balance is currently loading |
onCannotPerformAction | function | Optional. Handler for unauthorized actions |
prioritizeOwnerActions | boolean | Optional. Whether to prioritize owner actions in UI |
MarketplaceCollectibleCard
component is designed to handle various marketplace scenarios with:
enabled
prop when necessaryonCannotPerformAction
callback to handle unauthorized actions