Display wallet verification history
Read a wallet's stored Trust Score and verification timestamp for display.
The Entros Anchor stores a wallet's Trust Score, verification count, and last verification timestamp. Use this lookup for a badge, account view, or verification history display. It does not authorize a protected action.
Install
npm install @entros/pulse-sdk @solana/web3.js @coral-xyz/anchorRead the stored state
import { Connection } from "@solana/web3.js";
import { fetchIdentityState } from "@entros/pulse-sdk";
const connection = new Connection("https://api.devnet.solana.com", "confirmed");
export async function readVerificationHistory(walletPubkey: string) {
const identity = await fetchIdentityState(walletPubkey, connection);
if (!identity) return null;
return {
trustScore: identity.trustScore,
verificationCount: identity.verificationCount,
lastVerifiedAt: identity.lastVerificationTimestamp,
};
}A null result can mean missing state or a failed lookup. Do not label every null result as a wallet that never verified.
The returned score describes stored wallet history. It does not establish unique personhood or trusted sensor provenance.
RPC providers can apply their own pricing and request limits. Entros does not charge an integrator fee for reading on-chain state.
Protect an action
For a claim, vote, or protected server operation, authenticate a signed action request and evaluate current evidence where the action executes. Use the strict reader and policy evaluator described in Read verification evidence.
The protected-action example demonstrates action binding, current evidence checks, and one-use nonces with synthetic fixtures. A client-side badge or route guard cannot replace those checks.