Legacy Client API

For non-React environments or advanced contract interaction.

createClient

Create a client instance:

import { createClient } from '@untraced/sdk';

const client = createClient({
  chainId: 5003,
  registryAddress: "0xA5f2af132B0163f9333c67f5EfD4C35f037BbA60",
  rpcUrl: "https://rpc.sepolia.mantle.xyz",
  apiUrl: "/api/attest",
});

Client Methods

hasAttribute

Check if user has valid attestation:

const hasEmail = await client.hasAttribute(
  userAddress,
  ZK_EMAIL
);

getAttestation

Get full attestation details:

submitAttestation

Submit attestation to blockchain:

revokeAttestation

Revoke your own attestation:

Last updated