Count
Count returns the number of capabilities issued.
Command
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/agents/capwallet/v0.Count()"
Result
Package capwallet issues narrow, bounded, revocable capabilities to agents — instead of handing an agent a wallet key and hoping its prompt stays safe.
The demo makes three ideas that are usually conflated stand apart:
A capability is the third thing: a least-privilege grant with a ceiling, an expiry, a use counter and a kill switch. Other realms consult Authorized() before honoring an agent action; the granter revokes with one call the instant something looks wrong.
Count returns the number of capabilities issued.
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/agents/capwallet/v0.Count()"