{
  "x402Version": 2,
  "serviceName": "Wallet Doctor x402",
  "description": "Solana wallet & token checks: balance, txtrace, approvals, token-safety, drain triage. Pay per call in USDC on Solana or Base via PayAI.",
  "tags": [
    "wallet forensics",
    "solana security",
    "agent tools",
    "x402 v2",
    "wallet-doctor"
  ],
  "payTo": "0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC",
  "acceptsNetworks": [
    "eip155:8453",
    "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
  ],
  "mimeType": "application/json",
  "erc8004": {
    "agentId": 59354,
    "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
  },
  "items": [
    {
      "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/balance",
      "type": "http",
      "x402Version": 2,
      "serviceName": "Wallet Doctor x402",
      "description": "Solana wallet balance: SOL and USDC (Solana public RPC)",
      "tags": [
        "wallet-doctor",
        "solana",
        "x402 v2"
      ],
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/balance",
          "description": "Solana wallet balance: SOL and USDC (Solana public RPC) (Base USDC)",
          "mimeType": "application/json",
          "payTo": "0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC",
          "maxTimeoutSeconds": 60,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "100",
          "maxAmountRequired": "100",
          "extra": {
            "name": "USD Coin",
            "version": "2"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "wallet": {
                  "type": "string",
                  "description": "Solana wallet address (base58 public key)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "wallet": {
                  "type": "string"
                },
                "sol": {
                  "type": "number",
                  "description": "SOL balance"
                },
                "usdc": {
                  "type": "number",
                  "description": "USDC balance (all USDC token accounts)"
                },
                "slot": {
                  "type": "integer"
                },
                "network": {
                  "type": "string"
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        },
        {
          "scheme": "exact",
          "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/balance",
          "description": "Solana wallet balance: SOL and USDC (Solana public RPC)",
          "mimeType": "application/json",
          "payTo": "5ukK2Z4qF2MwNSCQpnBDCXuuiFatAC9wn9cWz41famqg",
          "maxTimeoutSeconds": 60,
          "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "amount": "100",
          "maxAmountRequired": "100",
          "extra": {
            "feePayer": "CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "wallet": {
                  "type": "string",
                  "description": "Solana wallet address (base58 public key)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "wallet": {
                  "type": "string"
                },
                "sol": {
                  "type": "number",
                  "description": "SOL balance"
                },
                "usdc": {
                  "type": "number",
                  "description": "USDC balance (all USDC token accounts)"
                },
                "slot": {
                  "type": "integer"
                },
                "network": {
                  "type": "string"
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        }
      ],
      "discoverable": true,
      "erc8004": {
        "agentId": 59354,
        "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
      },
      "bazaar": {
        "discoverable": true,
        "category": "wallet-forensics"
      },
      "extensions": {
        "bazaar": {
          "discoverable": true,
          "category": "wallet-forensics",
          "info": {
            "input": {
              "type": "http",
              "method": "GET",
              "queryParams": {
                "wallet": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "ok": true,
                "wallet": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                "sol": 0.0123,
                "usdc": 1.5,
                "slot": 468573834,
                "network": "solana-mainnet",
                "source": "solana-rpc"
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET"
                    ]
                  },
                  "queryParams": {
                    "type": "object",
                    "properties": {
                      "wallet": {
                        "type": "string",
                        "description": "Solana wallet address (base58 public key)",
                        "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                        "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
                      }
                    },
                    "required": [
                      "wallet"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "queryParams"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "wallet": {
                        "type": "string"
                      },
                      "sol": {
                        "type": "number",
                        "description": "SOL balance"
                      },
                      "usdc": {
                        "type": "number",
                        "description": "USDC balance (all USDC token accounts)"
                      },
                      "slot": {
                        "type": "integer"
                      },
                      "network": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "ok"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/txtrace",
      "type": "http",
      "x402Version": 2,
      "serviceName": "Wallet Doctor x402",
      "description": "Solana transaction trace: status, slot, fee, SOL balance changes, first 20 log lines",
      "tags": [
        "wallet-doctor",
        "solana",
        "x402 v2"
      ],
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/txtrace",
          "description": "Solana transaction trace: status, slot, fee, SOL balance changes, first 20 log lines (Base USDC)",
          "mimeType": "application/json",
          "payTo": "0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC",
          "maxTimeoutSeconds": 60,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "500",
          "maxAmountRequired": "500",
          "extra": {
            "name": "USD Coin",
            "version": "2"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "signature": {
                  "type": "string",
                  "description": "Solana transaction signature (base58)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,90}$",
                  "example": "2b96kfbbxdTUSVLFeRWVGoUmHR1rkgni4zR2rjxzBKo929CBP8kTSP3ns9iDk58Dncnt9Fqarq68UcYFGgBwEANY",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "signature": {
                  "type": "string"
                },
                "slot": {
                  "type": "integer"
                },
                "blockTime": {
                  "type": "integer"
                },
                "fee_sol": {
                  "type": "number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "err"
                  ]
                },
                "sol_balance_changes": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "logs_first_20": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        },
        {
          "scheme": "exact",
          "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/txtrace",
          "description": "Solana transaction trace: status, slot, fee, SOL balance changes, first 20 log lines",
          "mimeType": "application/json",
          "payTo": "5ukK2Z4qF2MwNSCQpnBDCXuuiFatAC9wn9cWz41famqg",
          "maxTimeoutSeconds": 60,
          "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "amount": "500",
          "maxAmountRequired": "500",
          "extra": {
            "feePayer": "CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "signature": {
                  "type": "string",
                  "description": "Solana transaction signature (base58)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,90}$",
                  "example": "2b96kfbbxdTUSVLFeRWVGoUmHR1rkgni4zR2rjxzBKo929CBP8kTSP3ns9iDk58Dncnt9Fqarq68UcYFGgBwEANY",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "signature": {
                  "type": "string"
                },
                "slot": {
                  "type": "integer"
                },
                "blockTime": {
                  "type": "integer"
                },
                "fee_sol": {
                  "type": "number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "err"
                  ]
                },
                "sol_balance_changes": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "logs_first_20": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        }
      ],
      "discoverable": true,
      "erc8004": {
        "agentId": 59354,
        "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
      },
      "bazaar": {
        "discoverable": true,
        "category": "wallet-forensics"
      },
      "extensions": {
        "bazaar": {
          "discoverable": true,
          "category": "wallet-forensics",
          "info": {
            "input": {
              "type": "http",
              "method": "GET",
              "queryParams": {
                "signature": "2b96kfbbxdTUSVLFeRWVGoUmHR1rkgni4zR2rjxzBKo929CBP8kTSP3ns9iDk58Dncnt9Fqarq68UcYFGgBwEANY"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "ok": true,
                "signature": "2b96kfbbxdTUSVLFeRWVGoUmHR1rkgni4zR2rjxzBKo929CBP8kTSP3ns9iDk58Dncnt9Fqarq68UcYFGgBwEANY",
                "slot": 468573834,
                "blockTime": 1794496949,
                "fee_sol": 0.000005,
                "status": "ok",
                "err": null,
                "sol_balance_changes": [
                  {
                    "account": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                    "delta_sol": -0.000005
                  }
                ],
                "logs_first_20": [
                  "Program 11111111111111111111111111111111 invoke [1]"
                ]
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET"
                    ]
                  },
                  "queryParams": {
                    "type": "object",
                    "properties": {
                      "signature": {
                        "type": "string",
                        "description": "Solana transaction signature (base58)",
                        "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,90}$",
                        "example": "2b96kfbbxdTUSVLFeRWVGoUmHR1rkgni4zR2rjxzBKo929CBP8kTSP3ns9iDk58Dncnt9Fqarq68UcYFGgBwEANY"
                      }
                    },
                    "required": [
                      "signature"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "queryParams"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "signature": {
                        "type": "string"
                      },
                      "slot": {
                        "type": "integer"
                      },
                      "blockTime": {
                        "type": "integer"
                      },
                      "fee_sol": {
                        "type": "number"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "ok",
                          "err"
                        ]
                      },
                      "sol_balance_changes": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "logs_first_20": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "ok"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/approvals",
      "type": "http",
      "x402Version": 2,
      "serviceName": "Wallet Doctor x402",
      "description": "SPL token approvals: token accounts with an active delegate (SPL Token + Token-2022)",
      "tags": [
        "wallet-doctor",
        "solana",
        "x402 v2"
      ],
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/approvals",
          "description": "SPL token approvals: token accounts with an active delegate (SPL Token + Token-2022) (Base USDC)",
          "mimeType": "application/json",
          "payTo": "0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC",
          "maxTimeoutSeconds": 60,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "500",
          "maxAmountRequired": "500",
          "extra": {
            "name": "USD Coin",
            "version": "2"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "wallet": {
                  "type": "string",
                  "description": "Solana wallet address (base58 public key)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "wallet": {
                  "type": "string"
                },
                "approvals_count": {
                  "type": "integer"
                },
                "approvals": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "token_account": {
                        "type": "string"
                      },
                      "mint": {
                        "type": "string"
                      },
                      "delegate": {
                        "type": "string"
                      },
                      "delegated_amount": {
                        "type": "string"
                      },
                      "balance": {
                        "type": "string"
                      },
                      "program": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        },
        {
          "scheme": "exact",
          "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/approvals",
          "description": "SPL token approvals: token accounts with an active delegate (SPL Token + Token-2022)",
          "mimeType": "application/json",
          "payTo": "5ukK2Z4qF2MwNSCQpnBDCXuuiFatAC9wn9cWz41famqg",
          "maxTimeoutSeconds": 60,
          "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "amount": "500",
          "maxAmountRequired": "500",
          "extra": {
            "feePayer": "CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "wallet": {
                  "type": "string",
                  "description": "Solana wallet address (base58 public key)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "wallet": {
                  "type": "string"
                },
                "approvals_count": {
                  "type": "integer"
                },
                "approvals": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "token_account": {
                        "type": "string"
                      },
                      "mint": {
                        "type": "string"
                      },
                      "delegate": {
                        "type": "string"
                      },
                      "delegated_amount": {
                        "type": "string"
                      },
                      "balance": {
                        "type": "string"
                      },
                      "program": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        }
      ],
      "discoverable": true,
      "erc8004": {
        "agentId": 59354,
        "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
      },
      "bazaar": {
        "discoverable": true,
        "category": "wallet-forensics"
      },
      "extensions": {
        "bazaar": {
          "discoverable": true,
          "category": "wallet-forensics",
          "info": {
            "input": {
              "type": "http",
              "method": "GET",
              "queryParams": {
                "wallet": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "ok": true,
                "wallet": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                "approvals_count": 0,
                "approvals": [],
                "source": "solana-rpc"
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET"
                    ]
                  },
                  "queryParams": {
                    "type": "object",
                    "properties": {
                      "wallet": {
                        "type": "string",
                        "description": "Solana wallet address (base58 public key)",
                        "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                        "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
                      }
                    },
                    "required": [
                      "wallet"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "queryParams"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "wallet": {
                        "type": "string"
                      },
                      "approvals_count": {
                        "type": "integer"
                      },
                      "approvals": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "token_account": {
                              "type": "string"
                            },
                            "mint": {
                              "type": "string"
                            },
                            "delegate": {
                              "type": "string"
                            },
                            "delegated_amount": {
                              "type": "string"
                            },
                            "balance": {
                              "type": "string"
                            },
                            "program": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "required": [
                      "ok"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/token_safety",
      "type": "http",
      "x402Version": 2,
      "serviceName": "Wallet Doctor x402",
      "description": "Token mint safety: mint/freeze authority, supply, decimals; top-10 holder concentration when the public RPC allows it",
      "tags": [
        "wallet-doctor",
        "solana",
        "x402 v2"
      ],
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/token_safety",
          "description": "Token mint safety: mint/freeze authority, supply, decimals; top-10 holder concentration when the public RPC allows it (Base USDC)",
          "mimeType": "application/json",
          "payTo": "0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC",
          "maxTimeoutSeconds": 60,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "maxAmountRequired": "1000",
          "extra": {
            "name": "USD Coin",
            "version": "2"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "mint": {
                  "type": "string",
                  "description": "SPL token mint address (base58)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "mint": {
                  "type": "string"
                },
                "program": {
                  "type": "string"
                },
                "decimals": {
                  "type": "integer"
                },
                "supply": {
                  "type": "string"
                },
                "mint_authority": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "freeze_authority": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "top10_pct_of_supply": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "flags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        },
        {
          "scheme": "exact",
          "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/token_safety",
          "description": "Token mint safety: mint/freeze authority, supply, decimals; top-10 holder concentration when the public RPC allows it",
          "mimeType": "application/json",
          "payTo": "5ukK2Z4qF2MwNSCQpnBDCXuuiFatAC9wn9cWz41famqg",
          "maxTimeoutSeconds": 60,
          "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "amount": "1000",
          "maxAmountRequired": "1000",
          "extra": {
            "feePayer": "CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "mint": {
                  "type": "string",
                  "description": "SPL token mint address (base58)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "mint": {
                  "type": "string"
                },
                "program": {
                  "type": "string"
                },
                "decimals": {
                  "type": "integer"
                },
                "supply": {
                  "type": "string"
                },
                "mint_authority": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "freeze_authority": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "top10_pct_of_supply": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "flags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        }
      ],
      "discoverable": true,
      "erc8004": {
        "agentId": 59354,
        "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
      },
      "bazaar": {
        "discoverable": true,
        "category": "wallet-forensics"
      },
      "extensions": {
        "bazaar": {
          "discoverable": true,
          "category": "wallet-forensics",
          "info": {
            "input": {
              "type": "http",
              "method": "GET",
              "queryParams": {
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "ok": true,
                "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                "program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                "decimals": 6,
                "supply": "8301066108.143972",
                "mint_authority": "BJE5MMbqXjVwjAF7oxwPYXnTXDyspzZyt4vwenNw5ruG",
                "freeze_authority": "7dGbd2QZcCKcTndnHcTL8q7SMVXAkp688NTQYwrRCrar",
                "top10_pct_of_supply": null,
                "flags": [
                  "mint authority active (supply can be increased)",
                  "freeze authority active (accounts can be frozen)"
                ]
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET"
                    ]
                  },
                  "queryParams": {
                    "type": "object",
                    "properties": {
                      "mint": {
                        "type": "string",
                        "description": "SPL token mint address (base58)",
                        "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                        "example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
                      }
                    },
                    "required": [
                      "mint"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "queryParams"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "mint": {
                        "type": "string"
                      },
                      "program": {
                        "type": "string"
                      },
                      "decimals": {
                        "type": "integer"
                      },
                      "supply": {
                        "type": "string"
                      },
                      "mint_authority": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "freeze_authority": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "top10_pct_of_supply": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "flags": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "ok"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/drain_forensics",
      "type": "http",
      "x402Version": 2,
      "serviceName": "Wallet Doctor x402",
      "description": "Wallet activity review: last 25 transactions with status, failed txs flagged, plus current token delegates (for drain triage)",
      "tags": [
        "wallet-doctor",
        "solana",
        "x402 v2"
      ],
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/drain_forensics",
          "description": "Wallet activity review: last 25 transactions with status, failed txs flagged, plus current token delegates (for drain triage) (Base USDC)",
          "mimeType": "application/json",
          "payTo": "0x7Dc83a4a626459e0ACB309C86dC0fEE0cC5052FC",
          "maxTimeoutSeconds": 60,
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "2500",
          "maxAmountRequired": "2500",
          "extra": {
            "name": "USD Coin",
            "version": "2"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "wallet": {
                  "type": "string",
                  "description": "Solana wallet address (base58 public key)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "wallet": {
                  "type": "string"
                },
                "recent_transactions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "signature": {
                        "type": "string"
                      },
                      "blockTime": {
                        "type": "integer"
                      },
                      "status": {
                        "type": "string"
                      }
                    }
                  }
                },
                "failed_count": {
                  "type": "integer"
                },
                "active_delegates": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        },
        {
          "scheme": "exact",
          "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
          "resource": "https://wallet-doctor-x402.m-zikriz.workers.dev/v1/drain_forensics",
          "description": "Wallet activity review: last 25 transactions with status, failed txs flagged, plus current token delegates (for drain triage)",
          "mimeType": "application/json",
          "payTo": "5ukK2Z4qF2MwNSCQpnBDCXuuiFatAC9wn9cWz41famqg",
          "maxTimeoutSeconds": 60,
          "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "amount": "2500",
          "maxAmountRequired": "2500",
          "extra": {
            "feePayer": "CjNFTjvBhbJJd2B5ePPMHRLx1ELZpa8dwQgGL727eKww"
          },
          "outputSchema": {
            "input": {
              "type": "http",
              "method": "GET",
              "discoverable": true,
              "queryParams": {
                "wallet": {
                  "type": "string",
                  "description": "Solana wallet address (base58 public key)",
                  "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                  "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                  "required": true
                }
              }
            },
            "output": {
              "type": "object",
              "properties": {
                "ok": {
                  "type": "boolean"
                },
                "wallet": {
                  "type": "string"
                },
                "recent_transactions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "signature": {
                        "type": "string"
                      },
                      "blockTime": {
                        "type": "integer"
                      },
                      "status": {
                        "type": "string"
                      }
                    }
                  }
                },
                "failed_count": {
                  "type": "integer"
                },
                "active_delegates": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "ok"
              ]
            }
          }
        }
      ],
      "discoverable": true,
      "erc8004": {
        "agentId": 59354,
        "registry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
      },
      "bazaar": {
        "discoverable": true,
        "category": "wallet-forensics"
      },
      "extensions": {
        "bazaar": {
          "discoverable": true,
          "category": "wallet-forensics",
          "info": {
            "input": {
              "type": "http",
              "method": "GET",
              "queryParams": {
                "wallet": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "ok": true,
                "wallet": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE",
                "recent_transactions": [
                  {
                    "signature": "2b96kfbbxdTUSVLFeRWVGoUmHR1rkgni4zR2rjxzBKo929CBP8kTSP3ns9iDk58Dncnt9Fqarq68UcYFGgBwEANY",
                    "blockTime": 1794496949,
                    "status": "ok"
                  }
                ],
                "failed_count": 0,
                "active_delegates": [],
                "note": "Active delegates can move the delegated tokens; revoke any you do not recognise."
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "GET"
                    ]
                  },
                  "queryParams": {
                    "type": "object",
                    "properties": {
                      "wallet": {
                        "type": "string",
                        "description": "Solana wallet address (base58 public key)",
                        "pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$",
                        "example": "4dX3VmkGFJHj1XZbWN1MbRYnCaxYWEEN21LjkmCe9JRE"
                      }
                    },
                    "required": [
                      "wallet"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "method",
                  "queryParams"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "wallet": {
                        "type": "string"
                      },
                      "recent_transactions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "signature": {
                              "type": "string"
                            },
                            "blockTime": {
                              "type": "integer"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        }
                      },
                      "failed_count": {
                        "type": "integer"
                      },
                      "active_delegates": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "ok"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    }
  ]
}