Get Collectible

Get Collectible by Collection ID and token ID

Overview

This section explains how to retrieve detailed information about a specific collectible asset using the Asset API. Collectibles are digital assets stored on the blockchain, and this functionality allows you to fetch comprehensive data about individual assets within a collection.

Properties

collectionId

Collection ID for the asset.

e.g. 7672:root:303204

tokenId

Token ID for the asset.

eg. 232

import React from 'react'
import { useGetAsset } from '@futureverse/asset-register-react'

const collectionId = "7672:root:303204"
const tokenId = "232"

export const AssetList = () => {
  const {
    asset
  } = useGetAsset(
    { collectionId, tokenId},
    {
      enabled: !!address,
      refetchOnWindowFocus: false,
    },
  )
  if (!asset) {
    return null
  }

  return (
    <Asset asset={asset}>
  )
}

Last updated

Feedback

Docs

© 2023 -> ♾️