@gorbchain-xyz/chaindecode
Version:
GorbchainSDK V1.3+ - Complete Solana development toolkit with advanced cryptography, messaging, and collaboration features. Build secure applications with blockchain, DeFi, and end-to-end encryption.
24 lines (23 loc) • 627 B
TypeScript
export interface DecodedNFTMetadata {
name: string;
symbol: string;
uri: string;
sellerFeeBasisPoints: number;
creators?: Array<{
address: string;
verified: boolean;
share: number;
}>;
collection?: {
verified: boolean;
key: string;
};
uses?: any;
editionNonce?: number;
updateAuthority?: string;
}
/**
* Decode a Metaplex Metadata account buffer (raw data)
* This is a minimal implementation for demonstration. For full support, use BufferLayout or Beet.
*/
export declare function decodeNFT(data: Buffer | Uint8Array): DecodedNFTMetadata;