Skip to main content

Function.useKeybanPassportEvents

function useKeybanPassportEvents(passportId: string): UsePromiseResult<{
createdAt: string;
id: string;
type: "create" | "update" | "publish" | "claim" | "scan" | "transfer";
}[]>;

Retrieves the certified ownership-chain events of a passport.

Owner-only: the backend resolves the caller's account from the SDK session and returns the custody events only when the passport was minted to that account. Render the result inside an owner guard.

Parameters

ParameterTypeDescription
passportIdstringThe identifier of the passport

Returns

UsePromiseResult<{ createdAt: string; id: string; type: "create" | "update" | "publish" | "claim" | "scan" | "transfer"; }[]>

  • The result containing the ownership events (oldest first) or an error.