Provenance
The provenance field is a required metadata attribute that documents the origin or source of an entry in the Xmatter registry.
It answers a fundamental question: "Where did this data come from?"
What is Provenance?
Provenance is an audit trail that tracks the source of token metadata. It provides transparency and attribution, helping users understand whether an entry came from:
- An official upstream repository (e.g., Trust Wallet Assets, Optimism token list)
- A community contribution
- The original project maintainers
This attribution is critical for establishing trust and enabling users to verify the authenticity of token metadata.
Schema Definition
provenance: z.url().describe("Where did this entry come from?");
Common Provenance Values
Automated Agent Sources
When entries are automatically ingested by agents, the provenance points to the upstream repository:
provenance: "https://github.com/trustwallet/assets"
provenance: "https://github.com/ethereum-optimism/ethereum-optimism.github.io"
Manual Contributions
For manual contributions, set provenance to:
Your GitHub profile if you are the original author:
provenance: "https://github.com/your-username"
The project's official repository:
provenance: "https://github.com/project-org/project-repo"
The project's website if no public repository exists:
provenance: "https://example.com"
Display and Usage
On the Xmatter website, provenance appears as: A clickable link if it starts with https://
The display extracts the domain name and path for compact presentation while preserving the full URL for navigation.
Best Practices
DO:
- ✅ Use the official upstream repository URL when available
- ✅ Use your GitHub profile if you are the original maintainer
- ✅ Use the project's official website if no repository exists
- ✅ Be consistent across related entries
DO NOT:
- ❌ Leave provenance blank (it's required)
- ❌ Use generic URLs like
https://github.com - ❌ Use shortened URLs or redirects
- ❌ Claim provenance from a source you don't control
Why Provenance Matters
- Transparency — Users can trace where data originated
- Verification — Projects can confirm their entries link back to official sources
- Attribution — Contributors get proper credit for their work
- Trust — Clear sourcing helps establish data authenticity
- Debugging — When metadata conflicts arise, provenance helps resolve disputes
Related
- Contributing guide — How to add entries with provenance
- API Reference — How provenance appears in API responses
- README.md standard — Full frontmatter schema