{
  "x402Version": 2,
  "id": 57632,
  "slug": "57632",
  "resource": "https://tanod.dev/v1/chain/drain-check",
  "description": "chainpeek (Tanod) wallet drain check: were tokens pulled out in transactions the wallet did not send? Verdict, nonce and evidence, on Base or Ethereum. Use when a wallet's token balance dropped and an agent must know whether it sent the tokens or someone pulled them.",
  "type": "http",
  "serviceName": "Tanod chainpeek",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "RMk9k3VC8dr4hhjgFh88rGhjAbzfBzHxJJ5n2fTcqus",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:56",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
      "amount": "2000000000000000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/chain/drain-check",
        "properties": {
          "chain": {
            "type": "string"
          },
          "counts": {
            "type": "object"
          },
          "history": {
            "type": "object"
          },
          "limits": {
            "type": "array"
          },
          "nonce": {
            "type": "object"
          },
          "reasons": {
            "type": "array"
          },
          "risk": {
            "type": "string"
          },
          "rpc_calls": {
            "type": "integer"
          },
          "rules": {
            "type": "object"
          },
          "tokens": {
            "type": "array"
          },
          "transfers": {
            "type": "array"
          },
          "transfers_total": {
            "type": "integer"
          },
          "verdict": {
            "type": "string"
          },
          "wallet": {
            "type": "string"
          },
          "wallet_code": {
            "type": "object"
          }
        },
        "required": [
          "chain",
          "wallet",
          "verdict",
          "risk",
          "reasons",
          "nonce",
          "tokens",
          "transfers",
          "transfers_total",
          "counts",
          "history",
          "rules",
          "limits"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "chain": "base",
            "wallet": "0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "chain": "base",
            "counts": {
              "authorized": 1,
              "pulled": 1,
              "sent": 0,
              "wallet_code": 0
            },
            "history": {
              "blocks": 2000,
              "complete": true,
              "from_block": 52510001,
              "to_block": 52512000
            },
            "limits": [
              "Only the listed tokens over the…"
            ],
            "nonce": {
              "end": 70,
              "moved": false,
              "start": 70,
              "start_block": 52510000
            },
            "reasons": [],
            "risk": "high",
            "rpc_calls": 9,
            "rules": {
              "authorized": "tx.from is someone else, but th…",
              "pulled": "tx.from is someone else and non…",
              "sent": "tx.from is the wallet: its key…",
              "wallet_code": "tx.from is someone else and tx.…"
            },
            "tokens": [],
            "transfers": [],
            "transfers_total": 2,
            "verdict": "drained",
            "wallet": "0x5A0b54D5dc17e0AadC383d2db43B0…",
            "wallet_code": {
              "code_size": 0,
              "kind": "none",
              "read": true
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "chain": {
                    "description": "base or ethereum (the chains with built-in USDC and USDT here).",
                    "enum": [
                      "base",
                      "ethereum"
                    ],
                    "type": "string"
                  },
                  "lookback_blocks": {
                    "default": 2000,
                    "description": "Latest blocks read (1-2,000; default 2,000, about 67 minutes on Base and 6.7 hours on Ethereum).",
                    "maximum": 2000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "tokens": {
                    "anyOf": [
                      {
                        "items": {
                          "pattern": "^(USDC|USDT|0x[0-9a-fA-F]{40})$",
                          "type": "string"
                        },
                        "maxItems": 5,
                        "minItems": 1,
                        "type": "array"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null,
                    "description": "1 to 5 tokens: USDC, USDT or contract addresses. Default: USDC and USDT."
                  },
                  "wallet": {
                    "description": "The wallet to check (0x + 40 hex).",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "type": "string"
                  }
                },
                "required": [
                  "chain",
                  "wallet"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/chain/drain-check",
                "properties": {
                  "chain": {
                    "type": "string"
                  },
                  "counts": {
                    "type": "object"
                  },
                  "history": {
                    "type": "object"
                  },
                  "limits": {
                    "type": "array"
                  },
                  "nonce": {
                    "type": "object"
                  },
                  "reasons": {
                    "type": "array"
                  },
                  "risk": {
                    "type": "string"
                  },
                  "rpc_calls": {
                    "type": "integer"
                  },
                  "rules": {
                    "type": "object"
                  },
                  "tokens": {
                    "type": "array"
                  },
                  "transfers": {
                    "type": "array"
                  },
                  "transfers_total": {
                    "type": "integer"
                  },
                  "verdict": {
                    "type": "string"
                  },
                  "wallet": {
                    "type": "string"
                  },
                  "wallet_code": {
                    "type": "object"
                  }
                },
                "required": [
                  "chain",
                  "wallet",
                  "verdict",
                  "risk",
                  "reasons",
                  "nonce",
                  "tokens",
                  "transfers",
                  "transfers_total",
                  "counts",
                  "history",
                  "rules",
                  "limits"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_h7pxv14u"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "erc20ApprovalGasSponsoring": {
      "info": {
        "description": "The facilitator accepts a raw signed approval transaction and will sponsor the gas fees.",
        "version": "1"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "amount": {
            "description": "Approval amount (uint256).",
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "asset": {
            "description": "The ERC-20 token contract address to approve.",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "from": {
            "description": "The address of the sender.",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "signedTransaction": {
            "description": "RLP-encoded signed transaction calling ERC20.approve().",
            "pattern": "^0x[a-fA-F0-9]+$",
            "type": "string"
          },
          "spender": {
            "description": "The address of the spender (Canonical Permit2).",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "type": "string"
          },
          "version": {
            "description": "Schema version identifier.",
            "pattern": "^[0-9]+(\\.[0-9]+)*$",
            "type": "string"
          }
        },
        "required": [
          "from",
          "asset",
          "spender",
          "amount",
          "signedTransaction",
          "version"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "chainpeek",
    "chain",
    "drain",
    "check",
    "ens",
    "bazaar",
    "builder-code",
    "erc20ApprovalGasSponsoring",
    "payment-identifier"
  ],
  "sourceHost": "tanod.dev",
  "lastUpdated": "2026-10-13T20:35:46.706Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-13T20:35:46.054Z"
  },
  "metadata": {
    "serviceName": "Tanod chainpeek",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791364949/bazaar-icons/d8143c9bc952f5cd.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "chain": "base",
              "wallet": "0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "chain": "base",
              "counts": {
                "authorized": 1,
                "pulled": 1,
                "sent": 0,
                "wallet_code": 0
              },
              "history": {
                "blocks": 2000,
                "complete": true,
                "from_block": 52510001,
                "to_block": 52512000
              },
              "limits": [
                "Only the listed tokens over the…"
              ],
              "nonce": {
                "end": 70,
                "moved": false,
                "start": 70,
                "start_block": 52510000
              },
              "reasons": [],
              "risk": "high",
              "rpc_calls": 9,
              "rules": {
                "authorized": "tx.from is someone else, but th…",
                "pulled": "tx.from is someone else and non…",
                "sent": "tx.from is the wallet: its key…",
                "wallet_code": "tx.from is someone else and tx.…"
              },
              "tokens": [],
              "transfers": [],
              "transfers_total": 2,
              "verdict": "drained",
              "wallet": "0x5A0b54D5dc17e0AadC383d2db43B0…",
              "wallet_code": {
                "code_size": 0,
                "kind": "none",
                "read": true
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "chain": {
                      "description": "base or ethereum (the chains with built-in USDC and USDT here).",
                      "enum": [
                        "base",
                        "ethereum"
                      ],
                      "type": "string"
                    },
                    "lookback_blocks": {
                      "default": 2000,
                      "description": "Latest blocks read (1-2,000; default 2,000, about 67 minutes on Base and 6.7 hours on Ethereum).",
                      "maximum": 2000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "tokens": {
                      "anyOf": [
                        {
                          "items": {
                            "pattern": "^(USDC|USDT|0x[0-9a-fA-F]{40})$",
                            "type": "string"
                          },
                          "maxItems": 5,
                          "minItems": 1,
                          "type": "array"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "default": null,
                      "description": "1 to 5 tokens: USDC, USDT or contract addresses. Default: USDC and USDT."
                    },
                    "wallet": {
                      "description": "The wallet to check (0x + 40 hex).",
                      "pattern": "^0x[0-9a-fA-F]{40}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "chain",
                    "wallet"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "description": "Abridged to fit the header. Full example: the 402 JSON body. Full schema: https://tanod.dev/openapi.json POST /v1/chain/drain-check",
                  "properties": {
                    "chain": {
                      "type": "string"
                    },
                    "counts": {
                      "type": "object"
                    },
                    "history": {
                      "type": "object"
                    },
                    "limits": {
                      "type": "array"
                    },
                    "nonce": {
                      "type": "object"
                    },
                    "reasons": {
                      "type": "array"
                    },
                    "risk": {
                      "type": "string"
                    },
                    "rpc_calls": {
                      "type": "integer"
                    },
                    "rules": {
                      "type": "object"
                    },
                    "tokens": {
                      "type": "array"
                    },
                    "transfers": {
                      "type": "array"
                    },
                    "transfers_total": {
                      "type": "integer"
                    },
                    "verdict": {
                      "type": "string"
                    },
                    "wallet": {
                      "type": "string"
                    },
                    "wallet_code": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "chain",
                    "wallet",
                    "verdict",
                    "risk",
                    "reasons",
                    "nonce",
                    "tokens",
                    "transfers",
                    "transfers_total",
                    "counts",
                    "history",
                    "rules",
                    "limits"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_h7pxv14u"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "maxItems": 11,
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "erc20ApprovalGasSponsoring": {
        "info": {
          "description": "The facilitator accepts a raw signed approval transaction and will sponsor the gas fees.",
          "version": "1"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "amount": {
              "description": "Approval amount (uint256).",
              "pattern": "^[0-9]+$",
              "type": "string"
            },
            "asset": {
              "description": "The ERC-20 token contract address to approve.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "from": {
              "description": "The address of the sender.",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "signedTransaction": {
              "description": "RLP-encoded signed transaction calling ERC20.approve().",
              "pattern": "^0x[a-fA-F0-9]+$",
              "type": "string"
            },
            "spender": {
              "description": "The address of the spender (Canonical Permit2).",
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "version": {
              "description": "Schema version identifier.",
              "pattern": "^[0-9]+(\\.[0-9]+)*$",
              "type": "string"
            }
          },
          "required": [
            "from",
            "asset",
            "spender",
            "amount",
            "signedTransaction",
            "version"
          ],
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tanod.dev",
    "manifest_name": "tanod.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "chain": "string",
      "counts": {},
      "history": {},
      "limits": [
        "value"
      ],
      "nonce": {},
      "reasons": [
        "value"
      ],
      "risk": "string",
      "rpc_calls": 0,
      "rules": {},
      "tokens": [
        "value"
      ],
      "transfers": [
        "value"
      ],
      "transfers_total": 0,
      "verdict": "string",
      "wallet": "string",
      "wallet_code": {}
    },
    "type": "string"
  }
}