Skip to main content

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.

Metadata JSON

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"
}

Create Or Update Metadata

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:
  1. Initialize strategies
  2. Verify the token on Jupiter if needed