{
  "what_this_is": "The spending authority delegated to this agent, read live from the Altana KeyStore on-chain. Not a description of our configuration — the same view calls a stranger would make.",
  "why_it_exists": "An agent that can spend needs limits somebody else can verify. An Altana session carries an allowlist of contracts, a rolling spend cap per token and an expiry; the account contract enforces them at validation, so a call outside the scope reverts rather than being caught by our code.",
  "agent_wallet": "0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3",
  "chains": [
    {
      "chainId": 56,
      "chain": "BNB Smart Chain",
      "wallet": "0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3",
      "keystore": "0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
      "registered_keys": 5,
      "keys": [
        {
          "keyId": "0xc11b9dc3a76225954ff040294daae83c7b902af060da656d9c72c9eb9939a6e8",
          "valid": true,
          "keystore_entry": "https://bscscan.com/address/0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
          "role": "admin",
          "role_note": "the admin (root) key — it grants and revokes sessions and cannot itself be revoked"
        },
        {
          "keyId": "0x123b8810b9b5265bdecf5d75314c16ab93286821dd492767a4c06c1de3ceac2e",
          "valid": false,
          "keystore_entry": "https://bscscan.com/address/0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
          "role": "session",
          "role_note": "a session key — limited by allowlist, cap and expiry; revocable"
        },
        {
          "keyId": "0x86fabbfa5b59af42a0d025bd77a6c826cad52389447f012422c918f58f017e99",
          "valid": false,
          "keystore_entry": "https://bscscan.com/address/0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
          "role": "session",
          "role_note": "a session key — limited by allowlist, cap and expiry; revocable"
        },
        {
          "keyId": "0x12dbe67ce9852b4191593d87168df28db9042b2af66577a643a6f414259b067f",
          "valid": false,
          "keystore_entry": "https://bscscan.com/address/0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
          "role": "session",
          "role_note": "a session key — limited by allowlist, cap and expiry; revocable"
        },
        {
          "keyId": "0x9f5ea20d6108dd1d2e1491da53353b6419fe3ab22f74b7e1f9a1179edf058cb0",
          "valid": true,
          "keystore_entry": "https://bscscan.com/address/0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
          "role": "session",
          "role_note": "a session key — limited by allowlist, cap and expiry; revocable"
        }
      ],
      "state": "2 of 5 registered keys are currently valid",
      "verify_it_yourself": {
        "contract": "0x6572427ED530BadcF7375Cf9A4709D8d2b0E7E0a",
        "call": "getKeys(0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3) then isValidKey(0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3, keyId)",
        "note": "Both are view calls against the KeyStore. Nothing here comes from our own state."
      }
    },
    {
      "chainId": 97,
      "chain": "BNB Smart Chain Testnet",
      "wallet": "0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3",
      "keystore": "0x6b8361C29d05D498b1a12B54A37310f94171E94A",
      "registered_keys": 0,
      "keys": [],
      "state": "no session key registered for this wallet",
      "verify_it_yourself": {
        "contract": "0x6b8361C29d05D498b1a12B54A37310f94171E94A",
        "call": "getKeys(0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3) then isValidKey(0xC5A17B5295Fc50BAdB1F9f9C09b412fE5e84F7d3, keyId)",
        "note": "Both are view calls against the KeyStore. Nothing here comes from our own state."
      }
    }
  ],
  "revocation": {
    "how": "The wallet's admin key revokes; the effect is immediate and the KeyStore entry stops validating.",
    "from_the_product": "POST /session/revoke with the operator token (see GET /session/revoke). The admin key is a secret on this worker; without the token nothing is signed, so a stranger cannot switch the agent off.",
    "command": "node scripts/altana-session.mjs --mainnet --revoke --confirm (the same call from the operator machine)"
  },
  "measured_at": "2026-10-13T23:33:50.294Z",
  "revocations": [
    {
      "at": "2026-09-07T18:13:58.025Z",
      "keyId": "0x5b339759986afcd8c8f60f63d57d262a93a2298dfdf6f0ee13136ef2fbdcba84",
      "chainId": 56,
      "status": "CONFIRMED",
      "transactionHash": "0x054ea9a00dee6f2126f266e859242d23dbca6d276455800c7957e094725c5939",
      "explorer": "https://bscscan.com/tx/0x054ea9a00dee6f2126f266e859242d23dbca6d276455800c7957e094725c5939"
    }
  ],
  "revoke": {
    "how": "POST /session/revoke with the operator token — see GET /session/revoke",
    "public": false
  }
}