@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.
43 lines (42 loc) • 1.13 kB
TypeScript
export interface DecodedMintAccount {
supply: string;
decimals: number;
isInitialized: boolean;
mintAuthority: {
option: number;
address: string;
base58: string;
};
freezeAuthority: {
option: number;
address: string;
base58: string;
};
raw: string;
metadata?: {
name?: string;
symbol?: string;
uri?: string;
updateAuthority?: string;
creators?: Array<{
address: string;
verified: boolean;
share: number;
}>;
sellerFeeBasisPoints?: number;
collection?: {
verified: boolean;
key: string;
};
uses?: any;
editionNonce?: number;
};
}
/**
* Decodes a Mint account buffer according to the SPL Token program spec.
* Returns a deeply nested, descriptive object for frontend and explorer use.
* Also parses Metaplex Token Metadata extension if present.
*/
export declare function decodeMintAccount(input: Uint8Array | string, opts?: {
encoding?: 'base64' | 'base58' | 'hex';
}): DecodedMintAccount;