Vestige API
Vestige publishes read-only reputation data for Hyperliquid traders: performance and risk metrics,
transparent reputation scores, and EIP-712 signed credentials that anyone can verify, online or offline.
This page covers everything an integrator needs: authentication, rate limits, every /api/v1 endpoint,
the credential format, offline verification, webhooks, embeds and the SDKs.
External applications make their own decisions; a Vestige score is one input, never a guarantee of suitability. Reputation describes observed trading history only. It says nothing about future profitability, honesty or creditworthiness. See Integrator responsibilities.
Contents
- Overview
- Authentication and API keys
- Rate limits and headers
- Responses and errors
- Endpoints
- Credential document format
- Offline verification
- Webhooks
- Embeds and widgets
- SDK quick starts
- Integrator responsibilities
1. Overview
| Base URL (local development) | http://localhost:8780 |
| Base URL (production) | the origin where your Vestige deployment is served |
| Versioned prefix | /api/v1 |
| Format | JSON over HTTPS (HTTP locally) |
| OpenAPI 3.1 description | GET /api/v1/openapi.json |
| Interactive playground | /app/developers in the Vestige app |
| CORS | Access-Control-Allow-Origin: *; allowed headers content-type, x-api-key, authorization; methods GET, POST, OPTIONS |
These are Vestige's own routes, not Hyperliquid endpoints. Vestige indexes public Hyperliquid data, computes metrics with published methodologies and signs credentials; the API exposes the results.
Identifiers. Every {address} parameter accepts a wallet address (0xa312114b5795dff9b8db50474dd57701aa78ad1e),
a Vestige ID (VST-000007) or a trader's claimed alias. Addresses are returned lowercase.
Numbers. Monetary values, returns and ratios are decimal strings ("0.39986141") so that no
floating-point rounding enters stored or signed values. Percentages and ratios are fractions
("0.433714" = 43.37 %). Counts are integers.
Time. API timestamps are milliseconds since the Unix epoch (issuedAtMs, lastUpdatedMs). Inside signed
credential documents, timestamps are seconds (issuedAt, observationStart), because the EIP-712 types use uint64.
Coverage. Hyperliquid only serves the most recent fills for an account, so trade-level metrics can cover a
shorter window than account-value metrics. Every analytics response carries coverage (per-stream earliest
and latest timestamps, truncation flags, reconciliation and known gaps), and every metric carries its own
status, window and sample. Read them before relying on a number.
2. Authentication and API keys
API keys are optional. Every endpoint works anonymously; a key raises your rate limit and lets you see your usage per route and per day.
Send a key in either header:
x-api-key: vst_live_…
Authorization: Bearer vst_live_…
- Create keys at /app/developers after signing in with a wallet (a Sign-In with Ethereum signature; no transaction, no fee, no trading permission).
- The full key (
vst_live_+ 32 random characters) is shown exactly once. Vestige stores only its SHA-256 hash and the first 13 characters (vst_live_XXXX) so you can recognise it in the console. - Up to 10 active keys per account. Names are up to 48 characters.
- Revoking a key takes effect immediately.
- A request with an invalid or revoked key is rejected with
401 invalid_api_key. It does not fall back to anonymous access. - Keys are secrets. Use them from servers, not from browser code; anonymous access is the right choice for client-side reads.
3. Rate limits and headers
| Tier | Limit | Bucket |
|---|---|---|
| Anonymous | 60 requests per minute | per client IP |
| API key | 300 requests per minute | per key |
Every /api/v1 response (except openapi.json) includes:
| Header | Meaning |
|---|---|
x-ratelimit-limit |
requests allowed in the current one-minute window |
x-ratelimit-remaining |
requests left in the window |
x-ratelimit-reset |
seconds until the window resets |
retry-after |
on 429 only: seconds to wait before retrying |
When you exceed the limit you receive:
HTTP/1.1 429 Too Many Requests
x-ratelimit-limit: 60
x-ratelimit-remaining: 0
retry-after: 41
{"error":{"code":"rate_limited","message":"Rate limit of 60 requests per minute exceeded."}}
Wait retry-after seconds before retrying. Both SDKs do this automatically (up to two retries by default).
4. Responses and errors
Successful responses use one envelope:
{
"data": { … },
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064052431 }
}
meta.methodologyVersion is the methodology the data was computed with; meta.lastUpdatedMs is when the
underlying data was last computed or issued (null when not applicable).
Errors use:
{ "error": { "code": "not_indexed", "message": "Wallet not indexed." } }
| Status | code |
When |
|---|---|---|
| 400 | bad_request |
Malformed body, e.g. POST /credentials/verify without credentialId, passportId or document |
| 400 | invalid_category |
Unknown leaderboard category |
| 400 | invalid_period |
Leaderboard period is not 7d, 30d, 90d or all |
| 401 | invalid_api_key |
The key is unknown or revoked |
| 404 | not_found |
No trader, passport or credential matches the identifier |
| 404 | not_indexed |
A well-formed address that Vestige has not indexed |
| 404 | not_analyzed |
Indexed, but analytics or a reputation score are not available yet |
| 429 | rate_limited |
See rate limits |
| 500 | internal_error |
Something went wrong on Vestige's side; safe to retry later |
The public API is read-only. Wallets are indexed on demand when someone looks them up in the Vestige app;
a not_indexed wallet may appear later.
5. Endpoints
All examples use a real, publicly indexed wallet: 0xa312114b5795dff9b8db50474dd57701aa78ad1e (VST-000007).
Responses are trimmed; … marks elided content. Values are real at the time of writing and change as the
indexer runs.
5.1 GET /api/v1/traders/{address}
Identity, sync status, reputation brief, headline metrics and data coverage.
curl -s http://localhost:8780/api/v1/traders/0xa312114b5795dff9b8db50474dd57701aa78ad1e
{
"data": {
"address": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"vestigeId": "VST-000007",
"alias": null,
"avatarUrl": null,
"bio": null,
"ownership": "indexed",
"credentialVerified": true,
"accountRole": "user",
"isVault": false,
"sync": { "status": "ready", "lastSyncedMs": 1796064050436, "lastAnalyzedMs": 1796064052431, "error": null, "job": { … } },
"reputation": {
"rated": true,
"score": 68.9,
"classification": "Consistent",
"confidence": "medium",
"confidenceValue": 0.671,
"methodologyVersion": "vrs-1.0.0",
"dimensions": { "riskDiscipline": 68.4, "performanceQuality": 60.3, "consistency": 64.9, "experience": 91.2, "dataIntegrity": 66.7 }
},
"headline": {
"accountValue": "17087.824942",
"twrAll": "36.85837946",
"twr30d": "-0.07639138",
"maxDrawdown": "0.39986141",
"sharpe": "2.2285",
"sortino": "4.4028",
"winRate": "0.433714",
"tradeCount": 7890,
"activeDays": 109,
"experienceDays": 752,
…
},
"coverage": { … },
"credentialCount": 12,
"topMarkets": ["xyz:SKHY", "ZEC", "@107", "NEAR", "TAO"],
"sparkline": [1, 1.039358, 1.00294, …],
"links": { "profile": "/trader/0xa312114b5795dff9b8db50474dd57701aa78ad1e", "passport": "/passport/VST-000007" }
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064052431 }
}
ownership is indexed (public data only) or ownership_verified (the wallet's owner signed in and
claimed it). credentialVerified means at least one valid signed credential exists. These are separate
facts; never conflate them. sync.status is one of pending, syncing, ready, error, not_found.
5.2 GET /api/v1/traders/{address}/performance
Profitability, return, cost, flow, behaviour and experience metrics, each with its published definition,
plus coverage, insights, integrity indicators and the data commitment. Add ?series=true for the equity,
TWR index, drawdown and PnL series.
| Query | Type | Default | |
|---|---|---|---|
series |
boolean | false |
include series (equity, index, drawdown, pnlCum, realizedCum, monthly, fundingDaily, feesDaily, sparkline) |
curl -s "http://localhost:8780/api/v1/traders/VST-000007/performance"
{
"data": {
"address": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"computedAtMs": 1796064051440,
"methodologyVersion": "vrs-1.0.0",
"observation": { "startMs": 1731051152371, "endMs": 1796063904640 },
"coverage": {
"fills": { "count": 23448, "firstMs": 1789000857356, "lastMs": 1795008443833, "truncated": true, "sourceLimit": 10000 },
"equity": { "count": 156, "firstMs": 1731540480056, "lastMs": 1796063904640, "truncated": false, "medianGapHours": 23.999998055555555, "maxGapHours": 337.46664 },
"reconciliation": { "intervals": 63, "matched": 56, "rate": 0.8888888888888888 },
"fillCoverageRatio": 0.10864095177474696,
"gaps": [{ "stream": "fills", "fromMs": 1731051152371, "toMs": 1789000857356, "reason": "Older executions are no longer retrievable from Hyperliquid's API (it retains only the most recent fills)." }, …],
…
},
"metrics": [
{
"key": "return_lifetime",
"value": "36.85837946",
"status": "ok",
"sample": 155,
"window": { "startMs": 1731540480056, "endMs": 1796063904640 },
"label": "Lifetime observed return",
"unit": "pct",
"category": "returns",
"description": "Time-weighted return across all observed account history.",
"method": "Final TWR index − 1.",
"source": "Hyperliquid portfolio history (account value + cumulative PnL), merged across day/week/month/allTime windows"
},
{
"key": "win_rate",
"value": "0.433714",
"status": "ok",
"sample": 7890,
"label": "Win rate",
"unit": "pct",
"category": "behavior",
"description": "Share of decided realized trades with positive net PnL (closed PnL minus fees on the closing order).",
"method": "winners ÷ (winners + losers); trades within ±$0.01 are excluded.",
"source": "Hyperliquid userFillsByTime (most recent 10,000 fills are retrievable)"
},
…
],
"series": null,
"trades": { "closed": …, "byMarket": [ … ], "holdingBuckets": [ … ], … },
"insights": [
{
"key": "holding_asymmetry",
"tone": "neutral",
"title": "Losing trades were held longer than winners",
"detail": "Median holding time was 324.8 h for losing trades and 128.4 h for winning trades.",
"supporting": [{ "key": "loser_hold", "label": "Median hold (losers)", "value": "324.8 h" }, …]
}
],
"integrity": [
{
"key": "fill_history_truncated",
"severity": "notice",
"title": "Fill history is truncated at the source",
"detail": "Hyperliquid's API only returns the most recent fills, and this account traded before the earliest retrievable fill. …",
"evidence": { "fills": 23448, "firstFill": 1789000857356, "accountFirstSeen": 1731051152371 }
},
…
],
"dataCommitment": "0x9f33a8e83d1cbf5e6bbe495f4496637f9813827cdba89514de1d50607bdfab78"
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064051440 }
}
A metric's status is ok, estimated, unavailable or insufficient; value is null unless the
data supports it, and note explains why. Returns 404 not_analyzed before the first analysis completes.
5.3 GET /api/v1/traders/{address}/reputation
The Vestige Reputation Score with its five dimensions, every component and weight, shrinkage, confidence, eligibility requirements and score history.
curl -s http://localhost:8780/api/v1/traders/VST-000007/reputation
{
"data": {
"address": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"result": {
"methodologyVersion": "vrs-1.0.0",
"asOfMs": 1796064050708,
"rated": true,
"score": 68.9,
"classification": "Consistent",
"confidence": { "level": "medium", "value": 0.671, "reasons": ["fill coverage below 80% target"] },
"cap": { "applied": false, "max": null, "reason": null },
"dimensions": {
"riskDiscipline": {
"key": "riskDiscipline",
"label": "Risk discipline",
"weight": 0.3,
"raw": 68.4,
"score": 68.4,
"shrinkage": 1,
"components": [
{ "key": "max_drawdown", "label": "Maximum drawdown", "value": "40.0%", "points": 39, "weight": 0.35 },
{ "key": "downside_deviation", "label": "Downside volatility", "value": "40.3%", "points": 54.7, "weight": 0.2 },
{ "key": "leverage", "label": "Median effective leverage", "value": "1.9×", "points": 100, "weight": 0.2 },
{ "key": "liquidations", "label": "Liquidations", "value": "0", "points": 100, "weight": 0.15 },
{ "key": "concentration", "label": "Exposure concentration (HHI)", "value": "0.27", "points": 88.2, "weight": 0.1 }
]
},
"performanceQuality": { "weight": 0.25, "raw": 60.4, "score": 60.3, "shrinkage": 0.992, … },
"consistency": { "weight": 0.2, "score": 64.9, … },
"experience": { "weight": 0.15, "score": 91.2, … },
"dataIntegrity": { "weight": 0.1, "score": 66.7, … }
},
"requirements": [
{ "key": "history_days", "label": "Observed history (days)", "required": 30, "actual": 752, "met": true },
{ "key": "closed_trades", "label": "Realized trades observed", "required": 20, "actual": 7890, "met": true },
{ "key": "return_observations", "label": "Equity return observations", "required": 20, "actual": 155, "met": true }
]
},
"history": [
{ "asOfMs": 1764547200000, "score": null, "classification": "Unrated", "confidence": "insufficient", "backfill": true },
…,
{ "asOfMs": 1796064050708, "score": 68.9, "classification": "Consistent", "confidence": "medium", "backfill": false }
],
"methodology": { "version": "vrs-1.0.0", "contentHash": "0x97d0f5ba899375fe608622320803e4878ce3ce3b61128d1779352fa80b42b87d", "document": "/docs/methodology" },
"disclaimer": "Describes observed historical characteristics only — not future profitability, honesty or creditworthiness."
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064050708 }
}
Classifications: Unrated, Emerging, Established, Consistent, Distinguished, Exceptional.
Confidence levels: insufficient, low, medium, high. An unrated wallet has rated: false and
score: null; use requirements to see what is missing. history entries with backfill: true were
computed retroactively from data indexed later.
5.4 GET /api/v1/traders/{address}/credentials
Credentials issued to a wallet: the latest of each type, or every version with ?history=true.
| Query | Type | Default | |
|---|---|---|---|
history |
boolean | false |
include superseded credentials |
curl -s http://localhost:8780/api/v1/traders/VST-000007/credentials
{
"data": {
"credentials": [
{
"id": "0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7",
"digest": "0x97b8d157c1c5dc21eaf5c09154bb8bddb850b7b75efbfe5b3fc45c6b67804a25",
"type": "consistency.positive_months_6",
"category": "consistency",
"title": "Six Positive Observed Months",
"description": "At least 6 fully observed calendar months with a positive time-weighted return.",
"subject": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"subjectVestigeId": "VST-000007",
"issuer": { "id": "vestige-dev-issuer-1", "address": "0xbdb5a212c6e58797f9e96ac94cc164b53126a58f", "name": "Vestige Development Issuer" },
"metrics": [{ "key": "positive_months", "unit": "count", "value": "7" }, { "key": "covered_months", "unit": "count", "value": "9" }],
"observation": { "startMs": 1731540480056, "endMs": 1796063904640 },
"methodologyVersion": "vcr-1.0.0",
"dataCommitment": "0x9f33a8e83d1cbf5e6bbe495f4496637f9813827cdba89514de1d50607bdfab78",
"issuedAtMs": 1796064052422,
"expiresAtMs": null,
"revoked": null,
"status": "valid",
"anchor": null,
"links": {
"verify": "/verify?credential=0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7",
"json": "/api/v1/credentials/0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7",
"evidence": "/api/credentials/0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7/evidence"
}
},
…
]
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064052423 }
}
status is valid, expired or revoked. category is one of experience, performance, risk,
market, consistency, reputation. The reputation.score type is the signed reputation attestation
sealed on the trader's passport.
Privacy. Owners of a claimed wallet can hide credential types from their public passport; hidden types are omitted from this list. Hiding never deletes a credential: anyone who already has a credential's ID can still fetch and verify it, and hiding does not make public blockchain records private.
5.5 GET /api/v1/traders/{address}/risk
Drawdowns, volatility, risk-adjusted ratios, leverage, concentration and integrity indicators.
curl -s http://localhost:8780/api/v1/traders/VST-000007/risk
{
"data": {
"address": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"observation": { "startMs": 1731051152371, "endMs": 1796063904640 },
"coverage": { … },
"metrics": [
{
"key": "max_drawdown",
"value": "0.39986141",
"status": "ok",
"sample": 155,
"label": "Maximum drawdown",
"unit": "pct",
"category": "risk",
"description": "Largest peak-to-trough decline of the cash-flow-neutral equity index. Withdrawals do not count as drawdowns.",
"method": "max(1 − index / running peak) over equity observations; intra-observation dips are not visible.",
"source": "Hyperliquid portfolio history (account value + cumulative PnL), merged across day/week/month/allTime windows"
},
{
"key": "sharpe",
"value": "2.2285",
"status": "ok",
"sample": 155,
"label": "Sharpe ratio",
"unit": "ratio",
"description": "Annualized return per unit of volatility (risk-free rate 0). Needs ≥ 20 observations over ≥ 30 days.",
…
},
…
],
"integrity": [ { "key": "fill_history_truncated", … }, { "key": "large_flows", … }, { "key": "reconciliation_mismatch", … }, { "key": "flow_dominated", … } ],
"dataCommitment": "0x9f33a8e83d1cbf5e6bbe495f4496637f9813827cdba89514de1d50607bdfab78"
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064051440 }
}
Risk metric keys: max_drawdown, avg_drawdown, longest_drawdown_days, recovery_days, volatility,
downside_deviation, sharpe, sortino, calmar, leverage_median, leverage_p95, current_leverage,
liquidations, top_market_share, exposure_concentration.
5.6 GET /api/v1/passports/{id}
The trader passport by Vestige ID (or by address or alias, which resolves to the wallet's passport).
curl -s http://localhost:8780/api/v1/passports/VST-000007
{
"data": {
"vestigeId": "VST-000007",
"serial": "VSTP-2026-000007-BDAA",
"address": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"alias": null,
"avatarUrl": null,
"ownershipVerified": false,
"credentialVerified": true,
"issuedAtMs": 1796064052407,
"updatedAtMs": 1796064052430,
"network": "Hyperliquid mainnet",
"reputation": { "rated": true, "score": 68.9, "classification": "Consistent", "confidence": "medium", "confidenceValue": 0.671, "methodologyVersion": "vrs-1.0.0", "dimensions": { … } },
"stats": {
"netReturn": "36.85837946",
"maxDrawdown": "0.39986141",
"sharpe": "2.2285",
"winRate": "0.433714",
"trades": 7890,
"activeDays": 109,
"experienceDays": 752,
"preferredMarkets": ["xyz:SKHY", "ZEC", "@107"]
},
"credentials": [
{ "id": "0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7", "type": "consistency.positive_months_6", "category": "consistency", "title": "Six Positive Observed Months", "issuedAtMs": 1796064052422, "expiresAtMs": null, "status": "valid" },
…
],
"verification": {
"level": "credential_verified",
"reputationCredentialId": "0x62e3ad33b466fcc9dd5a224af1528d3a95194ba3fd0d377d135534013f4e7ec0",
"verifiedAtMs": 1796064052423,
"anchored": false,
"verifyUrl": "/verify?passport=VST-000007"
},
"coverage": { "startMs": 1731051152371, "endMs": 1796063904640, "fillsTruncated": true },
"onchain": null
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064052430 }
}
verification.level is credential_verified, ownership_verified or indexed. The passport respects the
owner's privacy settings (hidden avatar, hidden credential types).
onchain describes the soulbound VestigePassport on Elysium, which is minted only when the passport's owner asks
for it: null until then, otherwise { status: "requested" | "submitted" | "confirmed" | "failed", tokenId, chainId, contract, txHash, error }. The token id is the Vestige sequence number, and a minted token's ERC-721 metadata is at
GET /api/nft/passport/{tokenId} (404 for tokens that were never minted).
5.7 GET /api/v1/credentials/{id}
One credential's public view plus its complete signed EIP-712 document. {id} is the credential ID or its
EIP-712 digest. The document can be verified offline; see §6 and §7.
curl -s http://localhost:8780/api/v1/credentials/0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7
{
"data": {
"credential": { "id": "0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7", "type": "consistency.positive_months_6", "status": "valid", … },
"document": {
"id": "0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7",
"digest": "0x97b8d157c1c5dc21eaf5c09154bb8bddb850b7b75efbfe5b3fc45c6b67804a25",
"payload": {
"domain": { "name": "Vestige Credentials", "version": "1" },
"types": { "Metric": [ … ], "TradingCredential": [ … ] },
"primaryType": "TradingCredential",
"message": {
"id": "0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7",
"credentialType": "consistency.positive_months_6",
"subject": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"issuer": "0xbDb5A212C6E58797F9E96aC94Cc164b53126A58f",
"metrics": [{ "key": "positive_months", "unit": "count", "value": "7" }, { "key": "covered_months", "unit": "count", "value": "9" }],
"observationStart": 1731540480,
"observationEnd": 1796063904,
"methodologyVersion": "vcr-1.0.0",
"dataCommitment": "0x9f33a8e83d1cbf5e6bbe495f4496637f9813827cdba89514de1d50607bdfab78",
"issuedAt": 1796064052,
"expiresAt": 0,
"revocationRef": "vestige:offchain-status"
}
},
"signature": "0x67912fb0fb202babfb7e2a15e8c6b3a400cb66e330b7912e618a82de3c1f3c62224e0dbe6d6f7f1057f38828c363f9c6d9d6d2827ce190f4ffe1e3b35ef537881b"
}
},
"meta": { "methodologyVersion": "vcr-1.0.0", "lastUpdatedMs": 1796064052422 }
}
5.8 POST /api/v1/credentials/verify
Runs Vestige's full verification: format, integrity, signature, issuer authorization (including the issuer key's validity window and compromise status), revocation, expiry, methodology, the optional onchain anchor and, unless disabled, the supporting evidence. No wallet and no API key needed.
Body, exactly one of:
{ "credentialId": "0x…" } // credential ID or digest
{ "passportId": "VST-000007" } // verifies the passport's reputation attestation
{ "document": { "payload": { … }, "signature": "0x…", "digest": "0x…" } } // a full document; digest optional
plus an optional "evidence": false to skip the supporting-data check (default true).
curl -s -X POST http://localhost:8780/api/v1/credentials/verify \
-H 'content-type: application/json' \
-d '{"credentialId":"0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7"}'
{
"data": {
"status": "valid",
"checkedAtMs": 1796064294619,
"credentialId": "0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7",
"digest": "0x97b8d157c1c5dc21eaf5c09154bb8bddb850b7b75efbfe5b3fc45c6b67804a25",
"issuer": { "id": "vestige-dev-issuer-1", "address": "0xbdb5a212c6e58797f9e96ac94cc164b53126a58f", "name": "Vestige Development Issuer", "status": "active" },
"subject": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"checks": [
{ "key": "format", "label": "Credential format", "status": "pass", "detail": "EIP-712 TradingCredential v1" },
{ "key": "integrity", "label": "Payload integrity", "status": "pass", "detail": "EIP-712 digest 0x97b8d157c1c5dc21eaf5c09154bb8bddb850b7b75efbfe5b3fc45c6b67804a25" },
{ "key": "signature", "label": "Issuer signature", "status": "pass", "detail": "Signed by 0xbdb5a212c6e58797f9e96ac94cc164b53126a58f" },
{ "key": "issuer", "label": "Issuer authorization", "status": "pass", "detail": "Vestige Development Issuer (active) was authorized at issuance" },
{ "key": "revocation", "label": "Revocation status", "status": "pass", "detail": "Not revoked" },
{ "key": "expiration", "label": "Expiration", "status": "pass", "detail": "Does not expire" },
{ "key": "methodology", "label": "Methodology", "status": "pass", "detail": "vcr-1.0.0 published (hash 0xba87cab683aa3a7e…)" },
{ "key": "anchor", "label": "Elysium commitment", "status": "skip", "detail": "Not anchored onchain (optional). The registry has not been deployed." },
{ "key": "evidence", "label": "Supporting data", "status": "pass", "detail": "Stored source records reproduce the signed data commitment" }
],
"note": "A valid signature proves that an authorized Vestige issuer attested to this claim and that it was not altered. It does not by itself prove the claim is correct — the published methodology and the committed evidence do."
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": null }
}
status |
Meaning |
|---|---|
valid |
Every required check passed |
expired |
Authentic, but past expiresAt |
revoked |
Authentic, but revoked by the issuer (or in the onchain registry) |
invalid_signature |
The document was modified, or the signature does not match the stated issuer |
unknown_issuer |
The signer is not a registered Vestige issuer, or signed outside its validity window |
insufficient_supporting_data |
Stored source records no longer reproduce the data commitment |
unavailable |
Not a Vestige credential, or the passport has no reputation attestation yet |
Each check has status pass, fail, warn or skip. Unknown IDs return 404 not_found.
5.9 GET /api/v1/leaderboards
| Query | Values | Default |
|---|---|---|
category |
overall, risk_adjusted, consistency, drawdown_control, experienced, emerging, market_specialists |
overall |
period |
7d, 30d, 90d, all |
all |
limit |
1–500 | 50 |
Results are cached for 30 seconds.
curl -s "http://localhost:8780/api/v1/leaderboards?category=overall&period=all&limit=2"
{
"data": {
"category": "overall",
"period": "all",
"title": "Overall reputation",
"metricLabel": "Reputation score",
"computedAtMs": 1796064296899,
"methodologyVersion": "vrs-1.0.0",
"population": 9,
"eligible": 7,
"eligibility": ["Rated: ≥ 30 days of history, ≥ 20 realized trades, ≥ 20 return observations", "Listed publicly"],
"methodology": "Ranked by the Vestige Reputation Score (risk discipline 30%, performance quality 25%, consistency 20%, experience 15%, data integrity 10%).",
"rows": [
{
"rank": 1,
"prevRank": null,
"address": "0xa312114b5795dff9b8db50474dd57701aa78ad1e",
"vestigeId": "VST-000007",
"alias": null,
"value": 68.9,
"display": "68.9",
"score": 68.9,
"classification": "Consistent",
"confidence": "medium",
"ownershipVerified": false,
"percentile": 100,
"sparkline": [ … ]
},
…
]
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796064296899 }
}
percentile is the share of eligible traders ranked below (0–100). Rows in market_specialists include a
market. Traders who chose not to be listed publicly are excluded.
5.10 GET /api/v1/methodologies
Every published methodology with its version, parameters and content hash. The params of the
credentials methodology include the full credential catalog (types, titles, requirements, validity).
curl -s http://localhost:8780/api/v1/methodologies
{
"data": {
"methodologies": [
{
"version": "vcr-1.0.0",
"kind": "credentials",
"publishedAtMs": 1796063661613,
"contentHash": "0xba87cab683aa3a7ea4e55ba5088be1ea0fa9a058342065553737f49ff486afcb",
"status": "active",
"documentUrl": "http://localhost:8780/docs/credentials",
"params": { "version": "vcr-1.0.0", "definitions": [{ "type": "experience.trades_100", "title": "First 100 Trades", "category": "experience", … }, …] }
},
{
"version": "vrs-1.0.0",
"kind": "reputation",
"publishedAtMs": 1796063661611,
"contentHash": "0x97d0f5ba899375fe608622320803e4878ce3ce3b61128d1779352fa80b42b87d",
"status": "active",
"documentUrl": "http://localhost:8780/docs/methodology",
"params": { … }
}
]
},
"meta": { "methodologyVersion": "vrs-1.0.0", "lastUpdatedMs": 1796063661613 }
}
5.11 GET /api/v1/openapi.json
The OpenAPI 3.1 description of the endpoints above (not wrapped in the envelope). Import it into your
tooling, or try requests interactively in the playground at /app/developers.
curl -s http://localhost:8780/api/v1/openapi.json
6. Credential document format
A Vestige credential is an EIP-712 typed-data document signed by a Vestige issuer key. The signed typed data is the canonical credential; nothing outside it is attested.
{
"id": "0x…", // credential ID (bytes32), same as payload.message.id
"digest": "0x…", // EIP-712 hash of payload (hashTypedData)
"payload": { "domain": { … }, "types": { … }, "primaryType": "TradingCredential", "message": { … } },
"signature": "0x…" // 65-byte secp256k1 signature by the issuer over the digest
}
Domain
{ "name": "Vestige Credentials", "version": "1" }
The domain deliberately omits chainId and verifyingContract: credentials are chain-independent offchain
documents, verifiable without any RPC. Optional onchain anchoring (a registry on Elysium) references the
credential's digest, but a credential does not depend on it.
Types
{
"Metric": [
{ "name": "key", "type": "string" },
{ "name": "value", "type": "string" },
{ "name": "unit", "type": "string" }
],
"TradingCredential": [
{ "name": "id", "type": "bytes32" },
{ "name": "credentialType", "type": "string" },
{ "name": "subject", "type": "address" },
{ "name": "issuer", "type": "address" },
{ "name": "metrics", "type": "Metric[]" },
{ "name": "observationStart", "type": "uint64" },
{ "name": "observationEnd", "type": "uint64" },
{ "name": "methodologyVersion", "type": "string" },
{ "name": "dataCommitment", "type": "bytes32" },
{ "name": "issuedAt", "type": "uint64" },
{ "name": "expiresAt", "type": "uint64" },
{ "name": "revocationRef", "type": "string" }
]
}
| Field | Meaning |
|---|---|
id |
Random 32-byte credential ID. Also the ID used by the API. |
credentialType |
Catalog type, e.g. consistency.positive_months_6, experience.trades_100, reputation.score. The catalog is published in GET /api/v1/methodologies. |
subject |
The Hyperliquid wallet the claim is about. |
issuer |
Address of the issuer key that signed the credential. |
metrics |
The measured values supporting the claim: {key, value, unit}, values as decimal strings. |
observationStart, observationEnd |
The observed data window, in Unix seconds. |
methodologyVersion |
The published methodology used, e.g. vcr-1.0.0 (credentials) or vrs-1.0.0 (reputation attestation). |
dataCommitment |
A 32-byte commitment to the source records the claim was computed from. Vestige can reproduce it from stored records (the evidence check). |
issuedAt |
Issuance time, Unix seconds. |
expiresAt |
Expiry, Unix seconds. 0 means the credential does not expire. |
revocationRef |
Where revocation status is published. Currently vestige:offchain-status: check it with POST /api/v1/credentials/verify. |
Digest. digest = hashTypedData(payload), i.e. keccak256(0x19 ‖ 0x01 ‖ domainSeparator ‖ hashStruct(message)).
It is the key used for onchain anchoring and is accepted anywhere a credential ID is.
JSON key order. Documents are stored as JSON and key order inside objects is not significant: EIP-712
hashing follows the order of the types definitions, not the order of message keys. Compare types by
field lists, not by serialised strings. Address case does not affect the digest.
7. Offline verification
Anyone holding a document can verify it without calling Vestige:
- Format.
primaryTypeisTradingCredential, the domain is{name: "Vestige Credentials", version: "1"}andtypesequals the definition above. - Integrity. Recompute the EIP-712 digest. If the document states a
digest, it must match; a mismatch means the document was modified. - Signature. Recover the signer from
signatureover the digest. It must equalmessage.issuer. - Trusted issuer. The signer must be an issuer address you trust. Pin issuer addresses in your
configuration; take them from verification reports you have checked yourself (the
issuerobject returned byPOST /api/v1/credentials/verify). The current development issuer is0xbdb5a212c6e58797f9e96ac94cc164b53126a58f("Vestige Development Issuer"); production deployments use their own managed keys. - Expiry. Reject when
expiresAt > 0and now is later thanexpiresAt(seconds).
What offline verification cannot see: revocations, an issuer key later reported compromised or retired,
and whether the supporting evidence still reproduces the data commitment. When those matter, also call
POST /api/v1/credentials/verify.
TypeScript (@vestige/sdk)
import { VestigeClient, verifyCredentialOffline } from "@vestige/sdk";
const vestige = new VestigeClient({ baseUrl: "http://localhost:8780" });
const { document } = await vestige.getCredential("0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7");
const result = await verifyCredentialOffline(document, {
trustedIssuers: ["0xbdb5a212c6e58797f9e96ac94cc164b53126a58f"], // pin your own list
});
// { valid, status, issuer, subject, digest, expiresAtMs, checks, revocationChecked: false }
if (!result.valid) throw new Error(`credential rejected: ${result.status}`);
TypeScript (viem only, no SDK)
import { hashTypedData, recoverTypedDataAddress } from "viem";
const { payload, signature, digest } = document;
const typed = { domain: payload.domain, types: payload.types, primaryType: payload.primaryType, message: payload.message };
const recomputed = hashTypedData(typed);
if (digest && digest.toLowerCase() !== recomputed.toLowerCase()) throw new Error("document was modified");
const signer = await recoverTypedDataAddress({ ...typed, signature });
const trusted = signer.toLowerCase() === String(payload.message.issuer).toLowerCase() && TRUSTED_ISSUERS.has(signer.toLowerCase());
const expired = Number(payload.message.expiresAt) > 0 && Date.now() / 1000 > Number(payload.message.expiresAt);
Python (vestige-sdk[verify])
from vestige import VestigeClient, verify_credential_offline
client = VestigeClient("http://localhost:8780")
full = client.get_credential("0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7")
result = verify_credential_offline(full["document"], ["0xbdb5a212c6e58797f9e96ac94cc164b53126a58f"])
print(result.status) # "valid" | "expired" | "invalid_signature" | "untrusted_issuer" | "malformed"
for check in result.checks:
print(check["key"], check["status"], check["detail"])
8. Webhooks
Webhooks notify your server when something changes for the wallets you care about.
Endpoints
Manage endpoints at /app/developers (requires a signed-in session):
- The URL must be
https, must not contain credentials, and must resolve to public IP addresses. Private, loopback and link-local hosts are rejected at registration and again before every delivery. - Choose one or more events.
- Optionally restrict deliveries to specific subject wallets (a list of addresses). Without a filter you receive the chosen events for every wallet.
- The signing secret (
whsec_…) is shown once, when the endpoint is created. Store it like a password. - Deleting an endpoint stops its deliveries. The console lists recent deliveries with status, attempt count, last HTTP status and error.
Events
| Event | Sent when | data fields |
|---|---|---|
credential.issued |
a new credential is issued to a wallet | credentialId, digest, type, title, subject, vestigeId |
credential.expired |
a credential passes its expiresAt |
credentialId, type, title, subject |
credential.revoked |
an operator revokes a credential (data correction, methodology defect, issuer-key compromise) | credentialId, digest, type, reasonCode, reason |
score.updated |
a wallet's reputation score moves by ≥ 1 point | subject, vestigeId, previousScore, score, classification, confidence, methodologyVersion |
Treat webhook payloads as notifications, not as the source of truth: when you act on an event, fetch the
current state (GET /api/v1/credentials/{id}, GET /api/v1/traders/{address}/reputation). New fields may be
added to data at any time.
Request
POST /your/webhook/path HTTP/1.1
content-type: application/json
user-agent: Vestige-Webhooks/1.0
vestige-event: credential.issued
vestige-delivery: <delivery id>
vestige-signature: t=<unix seconds>,v1=<64 hex characters>
{"id":"<event uuid>","type":"credential.issued","createdAt":"<ISO 8601 time>","data":{"credentialId":"0xa5af1380e4263bdeead1242f9ae0b9d89aaa2ed95781345aa269fc3d822b93c7","digest":"0x97b8d157c1c5dc21eaf5c09154bb8bddb850b7b75efbfe5b3fc45c6b67804a25","type":"consistency.positive_months_6","title":"Six Positive Observed Months","subject":"0xa312114b5795dff9b8db50474dd57701aa78ad1e","vestigeId":"VST-000007"}}
The body is always { "id", "type", "createdAt", "data" }. id is a UUID unique to the event (and stable
across retries), so use it to deduplicate. vestige-delivery identifies the delivery record shown in the
console. The data values above come from a real credential; the angle-bracket values are placeholders.
Signature
vestige-signature: t=<unix seconds>,v1=<hex(hmac_sha256(secret, "<t>.<raw body>"))>
To verify:
- Read the raw request body bytes. Do not parse and re-serialise the JSON first.
- Split the header on
,intotandv1. - Compute
HMAC-SHA256(secret, t + "." + rawBody)as lowercase hex. - Compare it with
v1in constant time. - Reject if
|now − t|is more than 300 seconds, to limit replays.
Node.js (Express)
import crypto from "node:crypto";
import express from "express";
const app = express();
const SECRET = process.env.VESTIGE_WEBHOOK_SECRET; // whsec_…
function verifyVestigeSignature(secret, header, rawBody, toleranceSec = 300) {
const parts = Object.fromEntries(String(header ?? "").split(",").map((p) => p.trim().split("=")));
const t = Number(parts.t);
if (!parts.t || !parts.v1 || !Number.isInteger(t)) return false;
if (Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
const a = Buffer.from(expected, "utf8");
const b = Buffer.from(parts.v1, "utf8");
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
app.post("/vestige/webhooks", express.raw({ type: "application/json" }), (req, res) => {
if (!verifyVestigeSignature(SECRET, req.get("vestige-signature"), req.body.toString("utf8"))) {
return res.status(400).send("invalid signature");
}
const event = JSON.parse(req.body.toString("utf8"));
// queue event for processing; deduplicate on event.id
res.sendStatus(204);
});
With the SDK: verifyWebhookSignature(secret, header, rawBody, 300) from @vestige/sdk returns a boolean.
Python (Flask)
import hashlib, hmac, os, time
from flask import Flask, request
app = Flask(__name__)
SECRET = os.environ["VESTIGE_WEBHOOK_SECRET"].encode()
def verify_vestige_signature(header: str, raw_body: bytes, tolerance_sec: int = 300) -> bool:
parts = dict(p.strip().split("=", 1) for p in (header or "").split(",") if "=" in p)
t, v1 = parts.get("t", ""), parts.get("v1", "")
if not t.isdigit() or not v1 or abs(time.time() - int(t)) > tolerance_sec:
return False
expected = hmac.new(SECRET, t.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, v1)
@app.post("/vestige/webhooks")
def vestige_webhook():
if not verify_vestige_signature(request.headers.get("vestige-signature"), request.get_data()):
return "invalid signature", 400
event = request.get_json() # {"id", "type", "createdAt", "data"}
return "", 204
With the SDK: from vestige import verify_webhook_signature, then
verify_webhook_signature(secret, header, raw_body, tolerance_sec=300).
Delivery and retries
- Each delivery is a
POSTwith a 10 second timeout. Redirects are not followed. - Any
2xxresponse marks the delivery as delivered. Anything else (another status, a redirect, a timeout, a DNS or connection error) counts as a failure. - Failed deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours. After the seventh failed attempt the delivery is marked dead and not retried again.
- Delivery is at-least-once and ordering is not guaranteed. Deduplicate on the event
id, respond quickly with2xx, and do slow work asynchronously.
9. Embeds and widgets
Show a trader's public Vestige badge on your site with the script widget:
<script src="{origin}/widget.js" async></script>
<div data-vestige-badge="0xa312114b5795dff9b8db50474dd57701aa78ad1e" data-theme="dark"></div>
Replace {origin} with the origin of the Vestige deployment (http://localhost:8780 locally).
data-vestige-badge takes a wallet address; data-theme selects the badge theme (for example dark).
Iframe routes are available for sites that prefer not to load a script:
| Route | Shows |
|---|---|
/embed/badge/{address} |
compact reputation badge |
/embed/passport/{vestigeId} |
the trader passport, e.g. /embed/passport/VST-000007 |
/embed/performance/{address} |
performance summary |
/embed/credential/{id} |
a single credential with its verification status |
<iframe src="{origin}/embed/passport/VST-000007" width="420" height="260" style="border:0" loading="lazy" title="Vestige passport"></iframe>
Embeds display public data only and respect the trader's privacy choices. Size the frame to your layout.
10. SDK quick starts
TypeScript
npm install @vestige/sdk viem # viem is an optional peer dependency, needed only for offline verification
import { VestigeClient, VestigeError, verifyCredentialOffline, verifyWebhookSignature } from "@vestige/sdk";
const vestige = new VestigeClient({ baseUrl: "http://localhost:8780", apiKey: process.env.VESTIGE_API_KEY });
const trader = await vestige.getTrader("0xa312114b5795dff9b8db50474dd57701aa78ad1e");
const reputation = await vestige.getReputation("VST-000007");
const performance = await vestige.getPerformance("VST-000007", { series: true });
const risk = await vestige.getRisk("VST-000007");
const { credentials } = await vestige.getCredentials("VST-000007", { history: false });
const passport = await vestige.getPassport("VST-000007");
const { credential, document } = await vestige.getCredential(credentials[0].id);
const report = await vestige.verifyCredential({ credentialId: credential.id }); // or { passportId } / { document }
const board = await vestige.getLeaderboard({ category: "risk_adjusted", period: "30d", limit: 25 });
const { methodologies } = await vestige.getMethodologies();
try {
await vestige.getTrader("0x0000000000000000000000000000000000000001");
} catch (e) {
if (e instanceof VestigeError) console.log(e.status, e.code); // 404 "not_indexed"; e.retryAfterSec is set on 429
}
Methods return the unwrapped data object. On 429 the client waits for retry-after and retries.
VestigeError carries status, code and, for rate limits, retryAfterSec.
verifyCredentialOffline(document, { trustedIssuers }) and verifyWebhookSignature(secret, header, rawBody, toleranceSec = 300)
are described in §7 and §8.
Python
pip install vestige-sdk # client + webhook signatures, standard library only
pip install "vestige-sdk[verify]" # + offline credential verification (eth-account)
from vestige import VestigeClient, VestigeError, verify_credential_offline, verify_webhook_signature
client = VestigeClient("http://localhost:8780", api_key=None)
trader = client.get_trader("0xa312114b5795dff9b8db50474dd57701aa78ad1e")
reputation = client.get_reputation("VST-000007")
performance = client.get_performance("VST-000007", series=True)
risk = client.get_risk("VST-000007")
credentials = client.get_credentials("VST-000007", history=False)["credentials"]
passport = client.get_passport("VST-000007")
full = client.get_credential(credentials[0]["id"])
report = client.verify_credential(credential_id=credentials[0]["id"]) # or passport_id= / document=
board = client.get_leaderboard(category="risk_adjusted", period="30d", limit=25)
methodologies = client.get_methodologies()["methodologies"]
try:
client.get_trader("0x0000000000000000000000000000000000000001")
except VestigeError as e:
print(e.status, e.code, e.retry_after) # 404 not_indexed None
print(client.last_rate_limit) # {"limit": 60, "remaining": 52, "reset": 31}
11. Integrator responsibilities
External applications make their own decisions; a Vestige score is one input, never a guarantee of suitability.
- Reputation describes observed history only. It is not a prediction of future profitability, honesty or creditworthiness, and it is not investment advice.
- Wallet ownership is not identity.
ownership_verifiedmeans someone proved control of a wallet with a signature; it says nothing about who they are. Vestige never asks for seed phrases, private keys or trading permissions, and your application should not either. - Check
rated,confidence,coverageand each metric'sstatusbefore relying on a value. Coverage can be partial because Hyperliquid retains only recent fills. - A valid signature proves an authorized issuer attested to a claim and that it was not altered. Correctness
rests on the published methodology (
GET /api/v1/methodologies) and the committed evidence. - Respect traders' privacy choices: do not republish credentials or profile details a trader has hidden. Hiding information in Vestige does not make public blockchain records private, and hidden credentials stay verifiable by anyone who already has their ID.