warda
Economic authority for autonomous agents on Kaspa L1. Never holds a key.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"warda": {
"command": "npx",
"args": [
"@warda_protocol/mcp"
]
}
}
}Paquetes ejecutables
0.4.2stdioPuntos de conexión remotos
https://mcp.wardaprotocol.com/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (11)
⚪warda_grant_authority(grant, daaScore)
The agent's spending power right now: budget left, epoch headroom, per-transaction cap, and the largest single payment currently permitted. This is what an agent wallet's spending limit would tell you, except that it is not a setting — the covenant enforces these whether or not you ask. Use it before planning a purchase. NOT a chain balance: this server never reads the chain. It reports what the grant you passed says, so a stale descriptor gives a confident wrong number.
Esquema de entrada
{
"type": "object",
"properties": {
"grant": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"daaScore": {
"type": "string",
"description": "Current DAA score of the chain."
}
},
"required": [
"grant",
"daaScore"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢warda_check_spend(grant, amountKas, recipient, daaScore)
Check a proposed payment against every rule the covenant enforces, and return the same verdict the chain would. Builds the recipient proof for you. ADVISORY: a 'permitted' answer is not permission — it means the covenant would accept this transaction. A 'refused' answer means no valid transaction exists, so broadcasting one would only waste a fee.
Esquema de entrada
{
"type": "object",
"properties": {
"grant": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"amountKas": {
"type": "string",
"description": "Amount to pay, in KAS."
},
"recipient": {
"type": "string",
"description": "Payee public key, 32 bytes of hex."
},
"daaScore": {
"type": "string"
}
},
"required": [
"grant",
"amountKas",
"recipient",
"daaScore"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢warda_check_delegation(parent, childBudgetKas, childMaxPerSpendKas, childEpochLimitKas, childAgentKey, ...)
Check whether a proposed child grant is a legal narrowing of this one. A child may only ever be more restrictive than its parent, and the parent must reserve exactly what the child receives — authority is subdivided, never created. Advisory.
Esquema de entrada
{
"type": "object",
"properties": {
"parent": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"childBudgetKas": {
"type": "string"
},
"childMaxPerSpendKas": {
"type": "string"
},
"childEpochLimitKas": {
"type": "string"
},
"childAgentKey": {
"type": "string"
},
"daaScore": {
"type": "string"
}
},
"required": [
"parent",
"childBudgetKas",
"childMaxPerSpendKas",
"childEpochLimitKas",
"childAgentKey",
"daaScore"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪warda_build_spend(grant, amountKas, recipient, daaScore, utxo, ...)
Assemble an unsigned Kaspa transaction that spends from this grant, and return the digest to sign. THIS SERVER NEVER SEES YOUR KEY and never signs: it hands back bytes, and you sign the digest wherever your key lives. It also returns the advisory verdict, but it builds the transaction either way — a local rule that is too strict must not be able to block a payment the chain would accept. If the verdict says refused, broadcasting will cost a fee and fail.
Esquema de entrada
{
"type": "object",
"properties": {
"grant": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"amountKas": {
"type": "string",
"description": "Amount to pay, in KAS."
},
"recipient": {
"type": "string",
"description": "Payee public key, 32 bytes of hex. Must be on the allowlist."
},
"daaScore": {
"type": "string",
"description": "Current DAA score of the chain."
},
"utxo": {
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"description": "The grant UTXO's transaction id."
},
"index": {
"type": "number"
},
"valueSompi": {
"type": "string",
"description": "The grant's whole balance, in sompi, as a string."
},
"blockDaaScore": {
"type": "string"
},
"isCoinbase": {
"type": "boolean"
},
"covenantId": {
"type": "string"
}
},
"required": [
"transactionId",
"index",
"valueSompi",
"blockDaaScore",
"isCoinbase",
"covenantId"
],
"additionalProperties": false,
"description": "The grant's CURRENT UTXO. Its address moves after every spend, so a stale one will not be found."
},
"feeSompi": {
"type": "string",
"description": "Defaults to 3000000. A covenant spend carries the whole redeem script in its signature script — about 7KB — so its mass is dominated by size and an ordinary transfer's fee is rejected as non-standard."
},
"computeBudget": {
"type": "number",
"description": "Defaults to 16. Charged as mass, so over-provisioning costs money and under-provisioning is rejected outright."
}
},
"required": [
"grant",
"amountKas",
"recipient",
"daaScore",
"utxo"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢warda_wallet(grant, daaScore, prefix)
The whole wallet view in one call: the grant's current address, its spending limits, the largest payment permitted right now, and every address it is allowed to pay. This is the agent-wallet shape — address, limits, spending power — with one difference worth knowing: the limits are not settings this server or your code applies. They are in the script that unlocks the coin, so a payment outside them is not refused, it is a transaction that does not exist. NO CHAIN READ: this server never connects to a node. Every figure comes from the grant descriptor you passed, so an on-chain balance is deliberately absent — reporting one from a stale record is the failure this whole protocol keeps meeting.
Esquema de entrada
{
"type": "object",
"properties": {
"grant": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"daaScore": {
"type": "string",
"description": "Current DAA score of the chain."
},
"prefix": {
"type": "string",
"description": "Address prefix: kaspa, kaspatest, kaspasim or kaspadev. Defaults to kaspatest."
}
},
"required": [
"grant",
"daaScore"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪warda_grant_address(grant, prefix)
Derive the on-chain address of a grant from its terms and current state. A grant's address is a HASH of its state, so it MOVES after every spend and every delegation — an address that worked yesterday holds nothing today. Use this to know which address to fund, watch, or look up.
Esquema de entrada
{
"type": "object",
"properties": {
"grant": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"prefix": {
"type": "string",
"description": "Address prefix: kaspa, kaspatest, kaspasim or kaspadev. Defaults to kaspatest."
}
},
"required": [
"grant"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🔴warda_recover_grant(transaction, redeemScriptHex, prefix)
Read a grant's full state back out of any transaction that spent it, and work out where it went. Use this when a grant's recorded state is stale, wrong, or lost and its address turns up empty. Kaspa's P2SH requires the covenant script to travel in the clear inside every spending transaction, and the grant's state is spliced into that script — so every spend publishes the grant it spent. Pass the transaction as wire JSON, or just the redeem script hex if that is all you have.
Esquema de entrada
{
"type": "object",
"properties": {
"transaction": {
"description": "A wire-format transaction that spent the grant."
},
"redeemScriptHex": {
"type": "string",
"description": "The covenant script alone, if you have only that."
},
"prefix": {
"type": "string",
"description": "Address prefix: kaspa, kaspatest, kaspasim or kaspadev. Defaults to kaspatest."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪warda_build_delegation(parent, childAgentKey, childBudgetKas, childMaxPerSpendKas, childEpochLimitKas, ...)
Assemble an unsigned transaction that subdivides this grant into a child for a sub-agent, and return the digest to sign with the PARENT's agent key. THIS SERVER NEVER SEES YOUR KEY. A child can only ever be more restrictive than its parent, and the parent reserves exactly what the child receives — authority is subdivided, never created. Narrowing the child's allowlist needs the parent's full member list, because the witness is a path through the parent's tree and a root alone cannot produce one.
Esquema de entrada
{
"type": "object",
"properties": {
"parent": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"childAgentKey": {
"type": "string",
"description": "The sub-agent's x-only public key, 32 bytes of hex."
},
"childBudgetKas": {
"type": "string"
},
"childMaxPerSpendKas": {
"type": "string"
},
"childEpochLimitKas": {
"type": "string"
},
"childDelegationDepth": {
"type": "number",
"description": "Strictly less than the parent's, or the tree could not terminate."
},
"childNotBefore": {
"type": "string",
"description": "Inherited from the parent when omitted."
},
"childExpiresAt": {
"type": "string",
"description": "A short window is the only attenuation that ends BY ITSELF, with nobody online to revoke."
},
"childRecipients": {
"type": "array",
"items": {
"type": "string"
},
"description": "A subset of the parent's allowlist. Omit to inherit all of it."
},
"parentRecipients": {
"type": "array",
"items": {
"type": "string"
},
"description": "The parent's FULL member list. Required only when childRecipients narrows it."
},
"utxo": {
"type": "object",
"properties": {
"transactionId": {
"type": "string"
},
"index": {
"type": "number"
},
"valueSompi": {
"type": "string",
"description": "The grant's whole balance, in sompi, as a string."
},
"blockDaaScore": {
"type": "string"
},
"isCoinbase": {
"type": "boolean"
},
"covenantId": {
"type": "string"
}
},
"required": [
"transactionId",
"index",
"valueSompi",
"blockDaaScore",
"isCoinbase",
"covenantId"
],
"additionalProperties": false,
"description": "The grant's CURRENT UTXO. Its address moves after every spend, so a stale one will not be found."
},
"feeSompi": {
"type": "string"
},
"computeBudget": {
"type": "number"
},
"prefix": {
"type": "string",
"description": "Address prefix: kaspa, kaspatest, kaspasim or kaspadev. Defaults to kaspatest."
}
},
"required": [
"parent",
"childAgentKey",
"childBudgetKas",
"childMaxPerSpendKas",
"childEpochLimitKas",
"childDelegationDepth",
"utxo"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪warda_build_settlement(parent, child, prevRoot, parentUtxo, childUtxo, ...)
Assemble an unsigned transaction that ends a child grant and returns its UNSPENT remainder to the parent's budget, charging the parent only what the child actually spent. This is the other half of delegation: letting a child expire instead returns the money to the PRINCIPAL — to the human — which is no use to an agent mid-task. Returns TWO digests: the parent's half is signed by the parent's agent key, the child's by the revocation key. THIS SERVER NEVER SEES EITHER. prevRoot is the parent's reserve root from before this child was pushed; warda_build_delegation returns it as parentReserveRootBefore. It cannot be derived from anything on chain — a hash chain pops by preimage.
Esquema de entrada
{
"type": "object",
"properties": {
"parent": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"child": {
"$ref": "#/properties/parent"
},
"prevRoot": {
"type": "string",
"description": "The parent's reserve root before this child was pushed."
},
"parentUtxo": {
"type": "object",
"properties": {
"transactionId": {
"type": "string"
},
"index": {
"type": "number"
},
"valueSompi": {
"type": "string",
"description": "The grant's whole balance, in sompi, as a string."
},
"blockDaaScore": {
"type": "string"
},
"isCoinbase": {
"type": "boolean"
},
"covenantId": {
"type": "string"
}
},
"required": [
"transactionId",
"index",
"valueSompi",
"blockDaaScore",
"isCoinbase",
"covenantId"
],
"additionalProperties": false,
"description": "The grant's CURRENT UTXO. Its address moves after every spend, so a stale one will not be found."
},
"childUtxo": {
"$ref": "#/properties/parentUtxo"
},
"feeSompi": {
"type": "string",
"description": "Defaults to 2000000 — two covenant inputs, so roughly twice a spend's mass."
},
"computeBudget": {
"type": "number"
},
"prefix": {
"type": "string",
"description": "Address prefix: kaspa, kaspatest, kaspasim or kaspadev. Defaults to kaspatest."
}
},
"required": [
"parent",
"child",
"prevRoot",
"parentUtxo",
"childUtxo"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪warda_build_exit(grant, kind, utxo, lockTime, feeSompi, ...)
Assemble an unsigned transaction that ENDS this grant and sweeps its balance to the principal. 'revoke' is the emergency stop, signed by the revocation key, effective the moment it confirms — the agent cannot stop it and cannot outrun it beyond the limits it already had. 'reclaim' is the same sweep after the window has closed, signed by the principal key; the covenant enforces the timing with a CLTV, so a reclaim built early simply will not run. THIS SERVER NEVER SEES A KEY. This is the tool a monitor calls when a grant is behaving badly and something has to act.
Esquema de entrada
{
"type": "object",
"properties": {
"grant": {
"type": "object",
"properties": {
"agentKey": {
"type": "string"
},
"principalKey": {
"type": "string"
},
"revocationKey": {
"type": "string"
},
"budgetKas": {
"type": "string"
},
"maxPerSpendKas": {
"type": "string"
},
"epochLimitKas": {
"type": "string"
},
"epochLength": {
"type": "string"
},
"recipients": {
"type": "array",
"items": {
"type": "string"
}
},
"notBefore": {
"type": "string"
},
"expiresAt": {
"type": "string"
},
"delegationDepth": {
"type": "number"
},
"nonce": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"spentTotalKas": {
"type": "string"
},
"reservedKas": {
"type": "string"
},
"epochIndex": {
"type": "string"
},
"epochSpentKas": {
"type": "string"
},
"reserveRoot": {
"type": "string",
"description": "The reserve root, for a grant with outstanding delegated children. It is part of the ADDRESS: omit it only if this grant has never delegated. warda_build_delegation returns it as parentReserveRootAfter."
}
},
"required": [
"spentTotalKas",
"reservedKas",
"epochIndex",
"epochSpentKas"
],
"additionalProperties": false
}
},
"required": [
"agentKey",
"principalKey",
"revocationKey",
"budgetKas",
"maxPerSpendKas",
"epochLimitKas",
"epochLength",
"recipients",
"notBefore",
"expiresAt",
"delegationDepth",
"nonce"
],
"additionalProperties": false,
"description": "The grant, as issued by the principal."
},
"kind": {
"type": "string",
"enum": [
"revoke",
"reclaim"
]
},
"utxo": {
"type": "object",
"properties": {
"transactionId": {
"type": "string"
},
"index": {
"type": "number"
},
"valueSompi": {
"type": "string",
"description": "The grant's whole balance, in sompi, as a string."
},
"blockDaaScore": {
"type": "string"
},
"isCoinbase": {
"type": "boolean"
},
"covenantId": {
"type": "string"
}
},
"required": [
"transactionId",
"index",
"valueSompi",
"blockDaaScore",
"isCoinbase",
"covenantId"
],
"additionalProperties": false,
"description": "The grant's CURRENT UTXO. Its address moves after every spend, so a stale one will not be found."
},
"lockTime": {
"type": "string",
"description": "Reclaim needs at least expiresAt, and still below the current DAA score. Revoke takes 0."
},
"feeSompi": {
"type": "string"
},
"computeBudget": {
"type": "number"
}
},
"required": [
"grant",
"kind",
"utxo"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢warda_find_service(capability, maxPrice, network, q)
Search the Warda service registry for endpoints an agent holding a grant can pay. Filters are a conjunction: a service must offer EVERY capability asked for and be at or under maxPrice. WHAT IS VERIFIED: that the operator controls the key the service is paid at, and that the listing was served from the same host as the endpoint it names. WHAT IS NOT: that the price is real, that the service works, or that it is worth paying — those are the operator's claims about themselves and arrive labelled as such. There is no ranking; do not read the order as one. NETWORK: unlike every other tool on this server, this one makes one outbound request, to the registry and to nothing else. It will not fetch a URL you give it. NOT REQUIRED: discovery is never in the payment path. A listing is a signed manifest at /.well-known/warda-service.json on the operator's own domain — if you already know an endpoint, read that directly and pay it without asking anyone.
Esquema de entrada
{
"type": "object",
"properties": {
"capability": {
"type": "array",
"items": {
"type": "string"
},
"description": "Capabilities the service must offer, ALL of them. e.g. ['weather.current']"
},
"maxPrice": {
"type": "string",
"description": "Most you will pay per unit, as a decimal string in the asset's own units, e.g. '0.05'."
},
"network": {
"type": "string",
"description": "e.g. 'kaspa:testnet-10'. Omit for any."
},
"q": {
"type": "string",
"description": "Plain substring over name and description. Crude on purpose."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Comunidad
Evidencia