@telaro/verxio
v0.1.0
Published
Issue Verxio Protocol loyalty/reputation NFTs that mirror a Telaro agent's score tier. Auto-upgrades the badge as the agent earns reputation. Bridges the Metaplex Core soulbound AgentID with consumer-facing loyalty UX.
Maintainers
Readme
@telaro/verxio
Issue Verxio Protocol loyalty/reputation NFTs that mirror a Telaro agent's score tier. Auto-upgrades the badge as the agent earns reputation. Bridges the Metaplex Core soulbound AgentID with consumer-facing loyalty UX.
Install
npm install @telaro/verxioWhy mint a Verxio badge?
The AgentID (mpl-core, soulbound) is the on-chain proof. The Verxio badge is the shareable consumer artifact — Phantom Collectibles, Tensor profiles, Twitter PFPs. Builders want both. This adapter keeps them in lock-step:
| Score tier | Verxio tier | Auto-upgrade trigger | |---|---|---| | 0–499 | bronze | (initial mint) | | 500–699 | silver | score ≥ 500 for 24h | | 700–849 | gold | score ≥ 700 for 24h | | 850+ | diamond | score ≥ 850 for 24h |
Usage
import { mintVerxioBadge, syncBadgeTier } from "@telaro/verxio";
import { Connection, Keypair } from "@solana/web3.js";
const connection = new Connection(/* ... */);
const builder = Keypair.fromSecretKey(/* ... */);
// One-time, after registering your Telaro agent:
const { asset } = await mintVerxioBadge({
connection,
signer: builder,
agentPubkey,
});
// Periodic — re-run as the score moves; only mints a new tier when
// the current score has been above the threshold for ≥24h.
await syncBadgeTier({ connection, signer: builder, agentPubkey, asset });The web at /api/verxio/badge/{pubkey} serves the Metaplex JSON metadata
that auto-renders the current tier. No extra server needed.
