Link a wallet to its agent id
hookr_build_agent_linkBuilds the Agent gate's link of a wallet to its ERC-8004 agent id, so the agent's score counts on agents-only pools: an unsigned call, simulated from the wallet, which the gate takes only from the agent's wallet or its owner on the identity registry, on the gate a poolId names. Where that gate asks a wallet with code for a proof, pass proof to build linkWithProof, or sign the digest returned with a refused status as a message (a Safe) and send link; with unlink it builds the call that removes the link, and its status is ok (send the call), or refused or unknown (no calls, with the reason).
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>"
},
"name": "hookr_build_agent_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proof | No | For a wallet with code: the signature its isValidSignature approves for the link digest. Builds linkWithProof. | |
| poolId | No | An agents-only pool's PoolId: the link goes to the gate the pool names. Without it, to the gate launches bind. | |
| unlink | No | Build the unlink instead, which removes the wallet's link. | |
| wallet | Yes | The wallet that signs and links. | |
| agentId | No | The agent's ERC-8004 id, a whole number. Needed to link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | Yes | Unsigned calls, in the order to send them. | |
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown. | |
| linkDigest | No | For a wallet with code: the digest its isValidSignature must approve. | |
| simulation | No |