Tokenize an agent's income
hookr_build_agent_incomeBuilds, one stage per call, the unsigned calls that turn an ERC-8004 agent's payments into a Hookr revenue token from the agent's own wallet: the agent income door for the token's predicted address, then the mint with USDG listed and the door as its stream, then the link in the agent's record, each simulated from the wallet; pass the same terms on every call, send the stage's calls, call again for the next stage, and pay the door only once doorTakesPayments is true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"wallet": "<wallet>",
"agentId": "<agentId>"
},
"name": "hookr_build_agent_income"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The revenue token's name, the same on every call (default AGENT<id> Revenue). | |
| supply | No | The supply in whole revenue tokens, all minted to the wallet, the same on every call (default 1000000). | |
| symbol | No | The revenue token's ticker, the same on every call (default AGENT<id>r). | |
| wallet | Yes | The agent's own wallet on the ERC-8004 identity registry, which signs every call and becomes the token's creator. | |
| agentId | Yes | The agent's ERC-8004 id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| door | No | The agent income door's address, made by Hookr's factory for this agent; null where the token did not take it. | |
| next | No | What to do after these calls. | |
| calls | Yes | Unsigned calls for this stage, in the order to send them. | |
| stage | No | door, mint, link or done: what the chain is waiting for. | |
| terms | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| agentId | No | ||
| recordHeld | No | Why the agent's record is not written by this wallet. | |
| revenueToken | No | The revenue token's address, which follows from the wallet and the terms. | |
| doorTakesPayments | No | true once the token has taken the door: pay nothing to the door before. |