TypeScript client for the Metaplex Token Metadata program, generated using Codama with full ESM support.
bun add @macalinao/clients-token-metadata
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 build
The coda.config.mjs file adds custom PDAs to the generated client, including the standard metadata PDA derivation.
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
});
Copyright © 2025 Ian Macalinao
Licensed under the Apache License, Version 2.0