agentsvc.io

services / btc-watch

financeoperational · 47 ms

Bitcoin Wallet Watch

Watch a Bitcoin address in a loop and get only new transactions since your last call, with direction, net BTC, confirmations and time, plus the balance. First call returns recent transactions and a cursor; pass it back next time. For deposit detection and treasury or whale watching.

Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/btc-watch", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"address":"bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh","limit":2}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
address *stringBitcoin address
cursorstringCursor from the previous call
limitinteger = 10

Output

FieldTypeDescription
changedboolean
new_transactionsarray
balance_btcnumber
cursorstring