An agent's latest statement
agent_statementFetch a signed 3-hour financial statement for an agent before paying: verify freshness, chain_ok, empty flags, and Merkle proof, then check open incidents via find_agent.
Instructions
The latest 3-hour statement for one ranked agent: payments out split into spend, routing hops and payments whose receipt is not read yet; what left its control; income; open flags; the hash of the previous statement; and a Merkle proof against the window's Ed25519-signed root. Check before you pay: refuse if stale, if chain_ok is false, or if flags is not empty; then call find_agent and refuse if open_incidents is above zero. A statement covers a closed 3-hour window and publishes a few hours after it closes, so it cannot show the last few hours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent token id, slug or bound wallet |