Documentation Index
Fetch the complete documentation index at: https://docs.voltr.xyz/llms.txt
Use this file to discover all available pages before exploring further.
LP token metadata improves wallet display, token verification, and general UX.
Host a JSON file like:
{
"name": "My Vault LP",
"symbol": "mvLP",
"description": "LP token for My Vault on Voltr",
"image": "https://your-domain.com/vault-logo.png"
}
import fs from "fs";
import { createKeyPairSignerFromBytes } from "@solana/kit";
import {
findLpMetadataPda,
getCreateLpMetadataInstructionAsync,
} from "@voltr/vault-sdk";
const adminSigner = await createKeyPairSignerFromBytes(
Uint8Array.from(JSON.parse(fs.readFileSync("/path/to/admin.json", "utf-8")))
);
const vault = "YOUR_VAULT_ADDRESS" as const;
const [metadataAccount] = await findLpMetadataPda({ vault });
const metadataIx = await getCreateLpMetadataInstructionAsync({
payer: adminSigner,
admin: adminSigner,
vault,
metadataAccount,
name: "My Vault LP",
symbol: "mvLP",
uri: "https://your-domain.com/metadata.json",
});
Only the admin can create or update LP metadata.
Next Steps
After metadata is set:
- Initialize strategies
- Verify the token on Jupiter if needed