Registering Asset Metadata

Warthog stores asset metadata off-chain in the public-data repository. This allows anyone to register information about assets on the Warthog chain.

Prerequisites

  • You must have an asset hash from the Warthog blockchain
  • Contact the team on Discord to have your asset hash registered

Adding Your Asset

  1. Fork the public-data repository
  2. Create a new directory: data/assets/{your_asset_hash}/
  3. Create info.json with the following structure:
  4. Optionally add image.png (valid PNG file)
  5. Submit a pull request to the master branch

Directory Structure

data/assets/{asset_hash}/
├── info.json      # Required
└── image.png      # Optional

info.json Schema

Field Required Description
name Yes Long name of the asset (e.g., "Warthog")
ticker Yes Short ticker symbol (max 5 characters, e.g., "WART")
description Yes Description of the asset
url No Website URL

Example info.json

{
    "name": "Warthog",
    "ticker": "WART",
    "description": "WART is the native token in the Warthog ecosystem...",
    "url": "https://warthog.network"
}

API Endpoints

Once your asset is merged and deployed:

Need Help?

Join the Warthog community on Discord for assistance.