77trust / 100
Chain Logs
by Tanod chainpeek in Onchain & crypto
x402 APIPassing, checked 4 h ago
chainpeek (Tanod) event logs: a transaction's logs on Ethereum or Base, with common token, DEX and admin events decoded. Read-only.
POST https://tanod.dev/v1/chain/logs
Last 30 days
All checks passedSome failedAll failedNot checked
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 313 ms typical, 1.1 s slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
POST https://tanod.dev/v1/chain/logs
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://tanod.dev/v1/chain/logs
content-type: application/json
{
"chain": "base",
"hash": "0xcba0bb7d93ff91b597214c9a5cf6abcec02d96dd0fb521f88d42b81b724b8e53"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain to read. One of: ethereum, base. |
hash | string | Yes | Transaction hash (0x + 64 hex). |
Example response
The provider's example. We can't check it without paying.
Example response, 61 lines
{
"block": 52290477,
"chain": "base",
"decoded": 2,
"hash": "0xcba0bb7d93ff91b597214c9a5cf6abcec02d96dd0fb521f88d42b81b724b8e53",
"log_count": 4,
"logs": [
{
"address": "0x07b3D902783c3C12b077508c3B5c00113d1291D0",
"data": "0x000000000000000000000000000000000000000000001566fcc581a38f8a3369",
"data_bytes": 32,
"data_truncated": false,
"event": {
"args": {
"from": "0x03B08de934dF19d559ec7b0d55b10d1CD9Db6F99",
"to": "0x2dF380544B88AdB3ad0A94100dcC45fd705aAE2d",
"value": "101069478142588381442921"
},
"error": null,
"name": "Transfer",
"signature": "Transfer(address,address,uint256)",
"standard": "erc20"
},
"index": 411,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000003b08de934df19d559ec7b0d55b10d1cd9db6f99",
"0x0000000000000000000000002df380544b88adb3ad0a94100dcc45fd705aae2d"
]
},
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"data": "0x000000000000000000000000000000000000000000000000000000003c4d36fe",
"data_bytes": 32,
"data_truncated": false,
"event": {
"args": {
"from": "0x03B08de934dF19d559ec7b0d55b10d1CD9Db6F99",
"to": "0x2dF380544B88AdB3ad0A94100dcC45fd705aAE2d",
"value": "1011693310"
},
"error": null,
"name": "Transfer",
"signature": "Transfer(address,address,uint256)",
"standard": "erc20"
},
"index": 412,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000003b08de934df19d559ec7b0d55b10d1cd9db6f99",
"0x0000000000000000000000002df380544b88adb3ad0a94100dcc45fd705aae2d"
]
}
],
"note": "events are decoded by signature only: any contract can emit any event, so check the emitting address before trusting a decoded Transfer or Swap",
"returned": 4,
"rpc_calls": 1,
"status": "success",
"truncated": false,
"untrusted_content": true
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/chain/logs' \
-H 'content-type: application/json' \
--data-raw '{"chain":"base","hash":"0xcba0bb7d93ff91b597214c9a5cf6abcec02d96dd0fb521f88d42b81b724b8e53"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tanod.dev/v1/chain/logs' \
-H 'content-type: application/json' \
--data-raw '{"chain":"base","hash":"0xcba0bb7d93ff91b597214c9a5cf6abcec02d96dd0fb521f88d42b81b724b8e53"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fchain%2Flogs&method=POST
const res = await pay("https://tanod.dev/v1/chain/logs", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"chain": "base",
"hash": "0xcba0bb7d93ff91b597214c9a5cf6abcec02d96dd0fb521f88d42b81b724b8e53"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tanod.dev/v1/chain/logs",
json={
"chain": "base",
"hash": "0xcba0bb7d93ff91b597214c9a5cf6abcec02d96dd0fb521f88d42b81b724b8e53",
},
)
print(res.status_code, res.text)Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 1.1 s | $0.003 |
| 8 h ago | Passed | 402 | 546 ms | $0.003 |
| 12 h ago | Passed | 402 | 267 ms | $0.003 |
| 16 h ago | Passed | 402 | 762 ms | $0.003 |
| 20 h ago | Passed | 402 | 252 ms | $0.003 |
| 23 h ago | Passed | 402 | 1.1 s | $0.003 |
| 27 h ago | Passed | 402 | 807 ms | $0.003 |
| 30 h ago | Passed | 402 | 744 ms | $0.003 |
| 34 h ago | Passed | 402 | 267 ms | $0.003 |
| 38 h ago | Passed | 402 | 273 ms | $0.003 |
| 41 h ago | Passed | 402 | 368 ms | $0.003 |
| 45 h ago | Passed | 402 | 277 ms | $0.003 |
| 2 days ago | Passed | 402 | 292 ms | $0.003 |
| 2 days ago | Passed | 402 | 311 ms | $0.003 |
| 2 days ago | Passed | 402 | 2.2 s | $0.003 |