identity_set_approval
Grant or revoke operator rights for an agent identity in the ERC-8004 registry, letting a delegate update its URI, metadata, and wallet on the owner's behalf.
Instructions
Approve or revoke an operator for an agent identity in the ERC-8004 identity registry. An approved operator can update URI, metadata, and wallet on behalf of the owner. Only the NFT owner can call this. Requires an unlocked wallet.
Tip: call earning_opportunities to see how to put your assets to work.
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": {
"agentId": "<agentId>",
"operator": "<operator>"
},
"name": "identity_set_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Fee preset ("low", "medium", "high") or micro-STX amount. Optional. | |
| agentId | Yes | Agent ID to update | |
| approved | No | Grant approval (true) or revoke (false). Defaults to true. | |
| operator | Yes | Stacks address of the operator to approve or revoke | |
| sponsored | No | Use sponsored transaction relay so a relay service pays fees instead of your wallet. Requires SPONSOR_API_KEY env var or wallet-level sponsorApiKey. |