# Keyring Agent Swap-Token Execution Fee

> Keyring Agent Swap-Token Execution Fee is a paid API for AI agents from keyring-agent.blockchhub.link, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Pays the execution fee required to authorize and settle a token-for-token swap operation on-chain

## Facts

- Endpoint: GET https://keyring-agent.blockchhub.link/api/swap-token
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/keyring-agent-swap-token-execution-fee-d512994c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2o9Vck_4sx_jcDFCgZAVB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability keyring-agent-swap-token-execution-fee-d512994c
```

Example prompt: Pay the swap-token execution fee so I can proceed with my token-for-token swap — it costs 0.001 USDC via the x402 protocol.

## When to prefer this

Use this endpoint specifically when an AI agent or automated workflow needs to pay the execution fee for a token-for-token swap operation (not ERC-20 transfers, NFT transfers, or liquidity provision). Choose this over sibling endpoints when the intended on-chain action is a token swap rather than a native coin transfer, NFT transfer, or lending market supply.

## Known failure modes

- Payment insufficient — fee not covered, status not returned as 'ok'
- x402 payment protocol failure — handshake or authorization rejected
- Endpoint unreachable — network or DNS issue with blockchhub.link domain
- Timeout — fee settlement takes too long and request expires
- Duplicate payment attempt — idempotency not guaranteed, may result in double charge

## How this service works

Pay the swap-token execution fee (token-for-token swap)

## Output

Returns a JSON object with a status field set to 'ok' once the swap-token execution fee has been successfully settled, confirming the swap operation is authorized to proceed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "status"
     ],
     "properties": {
      "status": {
       "enum": [
        "ok"
       ],
       "type": "string",
       "description": "ok once the execution fee is settled"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/keyring-agent-swap-token-execution-fee-d512994c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from keyring-agent.blockchhub.link](https://www.zero.xyz/host/keyring-agent.blockchhub.link/llms.txt)
