Sybil Resistance
Create and evaluate a risk proof
import { NeusClient } from '@neus/sdk';
const client = new NeusClient();
export async function evaluateWalletRisk(walletAddress) {
const created = await client.verify({
verifier: 'wallet-risk',
data: { walletAddress },
wallet: window.ethereum
});
const qHash = created.qHash;
const final = await client.pollProofStatus(qHash, { interval: 3000, timeout: 60000 });
const verifier = (final.data?.verifiedVerifiers || []).find(
(v) => v.verifierId === 'wallet-risk' && v.verified === true
);
return verifier?.data || {};
}Combine with other gates
Reference
Last updated
Was this helpful?

