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
| Parameter | Type | Description |
|---|---|---|
passportId | string | The 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.