Caveats
idle
Use from Workbench
Paste an artifact above (or fill one from the Workbench) to inspect its caveats.
import { Caveat, L402 } from "@boltwall/l402";const token = L402.fromMacaroon("<base64 macaroon>");const caveats = token.getCaveats();// Append a first-party caveat (no root key needed):token.addFirstPartyCaveat(new Caveat("services", "my-service:0"));const attenuated = token.macaroon;