Vocabulary
General terms used throughout the program and SDK.
Marketplace Authority
Item Id
import {toItemId} from "@raresloth/carbon-sdk";
type MyItem = {
id: string; // unique id in game's ecosystem
mint?: string; // mint address of the item if already minted
}
function getCarbonId(item: MyItem): number[] {
return item.mint ?
Array.from(new PublicKey(item.mint).toBuffer()) :
toItemId(item.id)
}Custody
Last updated