issueSigil
Creates a new Sigil PDA for the given agent. The client’s wallet acts as the principal and pays for rent.IssueSigilArgs
Example
updateSigil
Updates spend limits and expiry on an existing Sigil. Only the original principal can call this.UpdateSigilArgs
updateSigil cannot change capabilities. To change what an agent is permitted to do, revoke the existing Sigil and issue a new one.revokeSigil
Permanently marks a Sigil as revoked. The account is not closed. The credential fails all future verifications immediately.getSigil
Fetches and decodes the on-chain Sigil account for a given agent and principal.SigilAccount
getSigilsByPrincipal
Returns all Sigil accounts issued by a given principal. Uses an on-chainmemcmp filter — only fetches matching accounts.
verifySigil
Returnstrue if the agent has a valid Sigil that satisfies the given options. Does not record any spend.
false (never throws) when the account does not exist.
VerifySigilOptions
recordSpend
Records a spend against the agent’s daily limit on-chain.This is called automatically by the x402 middleware. You do not need to call it directly unless you are building custom middleware.
amount > spendLimitPerTxspentToday + amount > spendLimitPerDay(after daily reset if applicable)