Vault Token Metadata

When users deposit into your vault, they receive LP tokens. By default, these tokens have no metadata — wallets will display them as "Unknown Token." Setting up metadata ensures a proper user experience.

Why Metadata Matters

  • Wallets (Phantom, Solflare, etc.) display the token name, symbol, and image

  • Jupiter and other aggregators use metadata for token identification

Metadata JSON Format

Host a JSON file with the following structure at a publicly accessible URL:

{
  "name": "My Vault LP",
  "symbol": "mvLP",
  "description": "LP token for My Vault on Voltr",
  "image": "https://your-domain.com/vault-logo.png"
}

Hosting Options

Option
Pros
Cons

GitHub repository

Free, version controlled, reliable

Public repo required

Arweave/IPFS

Permanent, decentralized

Small cost, immutable (can't update)

Your own domain

Full control

Requires hosting

circle-info

Recommended: Host your metadata JSON and logo image in a GitHub repository. See github.com/ranger-finance/assetsarrow-up-right for an example of how to structure your assets.

Create or Update Metadata via SDK

Use the createCreateLpMetadataIx instruction to attach metadata to your vault's LP token:

circle-exclamation

Next Steps

After setting up metadata:

  1. Initialize strategies to connect your vault to DeFi protocols

  2. Consider verifying your token on Jupiter to avoid wallet warnings

Last updated