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
- Fork the public-data repository
- Create a new directory:
data/assets/{your_asset_hash}/ - Create
info.jsonwith the following structure: - Optionally add
image.png(valid PNG file) - Submit a pull request to the
masterbranch
Directory Structure
data/assets/{asset_hash}/
├── info.json # Required
└── image.png # Optional
info.json Schema
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.