@macalinao/clients-token-metadata
v0.5.1
Published
TypeScript client for the Metaplex Token Metadata program
Maintainers
Readme
@macalinao/clients-token-metadata
TypeScript client for the Metaplex Token Metadata program, generated using Codama with full ESM support.
Installation
bun add @macalinao/clients-token-metadataDevelopment
This client is generated from the Token Metadata IDL using Coda CLI:
# Generate the client from idls/token_metadata.json
bun run codegen
# Build the TypeScript
bun run buildConfiguration
The coda.config.ts file adds custom PDAs to the generated client, including the standard metadata PDA derivation.
Usage
import {
getCreateMetadataAccountInstruction,
fetchMetadata,
} from "@macalinao/clients-token-metadata";
// Fetch metadata account
const metadata = await fetchMetadata(rpc, metadataAddress);
// Create metadata account instruction
const instruction = getCreateMetadataAccountInstruction({
// ... instruction parameters
});License
Copyright © 2025 Ian Macalinao
Licensed under the Apache License, Version 2.0
