Skip to main content
SigilClient wraps both the Credential and Registry Anchor programs. Construct one client per wallet and reuse it across calls.

Constructor

SigilClientConfig

The wallet field expects an object implementing:
This matches the AnchorProvider["wallet"] interface. Wallet adapters from @solana/wallet-adapter-react satisfy it directly.

PDA helpers

Use these to derive addresses without making RPC calls.

sigilPda

Returns [pda, bump] for the Sigil credential issued by a principal to a given agent. Derived from ["sigil", principalPubkey, agentPubkey] on the credential program.

listingPda

Returns [pda, bump] for the Registry listing of a given Sigil PDA. Derived from ["listing", sigilPda] on the registry program.

Example setup