chain: "ethereum" | "solana" as the first argument and return chain-neutral types.
Types
CreateSchemaParams
IssueAttestationParams
PsrExpiryInput
Schema lifecycle
createSchema(chain, params)
Register a new schema. Returns tx hash and derived schemaId.
getMySchemas(chain)
List schemas where this wallet is authority or delegate.
deprecateSchema(chain, schemaId)
Authority-only. Irreversibly blocks new attestations.
addSchemaDelegate(chain, schemaId, delegate)
Authorize another address to issue under this schema (max 10).
removeSchemaDelegate(chain, schemaId, delegate)
Revoke delegate issuance rights.
Attestations
issueAttestation(chain, params)
Issue a schema-bound V2 attestation to a stealth identity. Resolves the recipient,
encodes fields, submits attest, and optionally announces with V2 0xB2 metadata so
the recipient can discover it with discoverTraitsV2.
getMyIssuedAttestations(chain)
List attestations issued by this wallet.
Legacy V1 issuer helpers
encodeReputationMetadata(viewTag, attestationId)
Encode legacy V1 PSR metadata bytes for announce (viewTag || 0xA7 || attestationId).
New schema-bound attestations issued by issueAttestation use V2 metadata instead.