Check a credential
Three ways to ask whether a wallet holds a valid accreditoken, from simplest to most independent. All read live chain state; expiry and revocation apply the moment they happen. Rely only on ok.
Network and contracts
- Network
- Base Sepolia (84532)
- Accreditoken
0x8D59273e79a5E532Df1CCCaC87Df0e621Fd5008C- Identity resolver
0x8C0644592cDe7D376aF52162AC4Eadc75A7372A2- EAS
0x4200000000000000000000000000000000000021- Credential schema
0x6f8f4141b35ca48fe38cd71e33648f4be9151a102f2d686106ed3b36f4b8c283
1 · One HTTP call
CORS is open; no key needed. Rate-limited per IP; contact us for higher limits.
curl "https://auth.accreditoken.com/v1/check?wallet=0xINVESTOR&attribute=accredited"
{
"ok": true, // valid right now: not revoked, not expired
"attributes": { "accredited": true },
"basis": "income", // income | net_worth | licensed | entity | other
"jurisdiction": "US",
"verified_at": "2026-11-03T15:04:05.000Z",
"expires_at": "2027-11-03T15:04:05.000Z",
"revoked": false, "expired": false,
"token_id": "314", "holder": "0x…", "attestation_uid": "0x…",
"chain_id": 84532,
"source": "chain" // "index" only if the RPC was unavailable
}Other lookups on the same endpoint:
GET /v1/check?token=314 GET /v1/check?wallet=0x…&attribute=verified_person # tier 0 identity (any source) GET /v1/check?wallet=0x…&attribute=verified_org&source=x_verified_org GET /v1/check?agent=0xAGENT_KEY&attribute=accredited # what a bot can prove for its owner
Keep a record: signed receipts
Add &receipt=1 (and &audience=yourdomain.com) to get a signed receipt of the check: who was checked, the full answer, the block it was read at, and when. Store it with the investor's file. Anyone can verify it later with our public key, offline, without trusting your database or ours.
curl "https://auth.accreditoken.com/v1/check?wallet=0xINVESTOR&attribute=accredited&receipt=1&audience=yourdomain.com"
# -> { ...same fields..., "receipt": "eyJhbGciOiJFUzI1NiIs..." }// verify offline (Node, Deno, browsers) with jose
import { createRemoteJWKSet, jwtVerify } from "jose";
const jwks = createRemoteJWKSet(new URL("https://auth.accreditoken.com/.well-known/jwks.json"));
const { payload } = await jwtVerify(receipt, jwks, {
issuer: "https://auth.accreditoken.com",
typ: "accreditoken-receipt+jwt",
});
// payload.sub = wallet, payload.iat = when, payload.block, payload.result.okOr online: GET https://auth.accreditoken.com/v1/receipts/verify?receipt=…
2 · One on-chain read (no dependency on us)
import { createPublicClient, http, parseAbi } from "viem";
import { baseSepolia } from "viem/chains";
const client = createPublicClient({ chain: baseSepolia, transport: http() });
const [valid, tokenId] = await client.readContract({
address: "0x8D59273e79a5E532Df1CCCaC87Df0e621Fd5008C",
abi: parseAbi(["function isValidHolder(address) view returns (bool valid, uint256 tokenId)"]),
functionName: "isValidHolder",
args: ["0xINVESTOR"],
});Gate a contract on it:
interface IAccreditoken {
function isValidHolder(address) external view returns (bool valid, uint256 tokenId);
}
function subscribe() external {
(bool ok,) = IAccreditoken(0x8D59273e79a5E532Df1CCCaC87Df0e621Fd5008C).isValidHolder(msg.sender);
require(ok, "accredited investors only");
// ...
}3 · Read the EAS attestation
Every accreditoken has an EAS attestation, created in the same transaction. Call EAS.getAttestation(uid) and require: schema = the credential schema above, attester = the Accreditoken contract, revocationTime == 0 and expirationTime > now.
Don't use EAS.isAttestationValid
It only checks that an attestation exists. It returns true for revoked and expired ones.
What a credential is and isn't
- Proves: InvestReady verified the holder of this wallet as a US accredited investor under Rule 501(a), on the basis shown, valid until the expiry date.
- Doesn't prove: who is presenting the wallet right now. If that matters, have the investor sign a message with it.
- Carries no name, email, documents or financial figures, on-chain or here.