{"uid":"cap_QIr9EIYq4fca1w0JjOBmJ","slug":"brainiac-software-chain-data-latest-block-0e30152f","name":"BRAINIAC.software Chain Data — Latest Block","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/chain-data/block/latest?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"block":{"type":"object","properties":{"hash":{"type":"string"},"miner":{"type":"string"},"nonce":{"type":"string"},"number":{"type":"number"},"uncles":{"type":"array","items":{}},"gasUsed":{"type":"number"},"gasLimit":{"type":"number"},"extraData":{"type":"string"},"logsBloom":{"type":"string"},"stateRoot":{"type":"string"},"timestamp":{"type":"number"},"difficulty":{"type":"number"},"parentHash":{"type":"string"},"sha3Uncles":{"type":"string"},"receiptsRoot":{"type":"string"},"transactions":{"type":"array","items":{"type":"string"}},"baseFeePerGas":{"type":"number"},"transactionsRoot":{"type":"string"}},"additionalProperties":true},"source":{"type":"object","properties":{"url":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"chainId":{"type":"number"},"retrievedAt":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"block":{"hash":"0xd01a2e8fbed754d170ba5c0b0be2e6cad26ad8d77fbdcb1db4d4ff2ecf14ee02","miner":"0x4200000000000000000000000000000000000011","nonce":"0x0000000000000000","number":54314815,"uncles":[],"gasUsed":2967355,"gasLimit":40000000,"extraData":"0x01000003e80000000500000000004c4b40","logsBloom":"0x1020040000083841f0000000060004002048002060283004203604c001200000202801101144c0000106029180a6d01001500801440400000b21038180a0a1040400001020402000108008088400840810000000004811a040106000a0080100008100118a000040020000005000080036085208101504000000801000004610052004da01084000b001a484020000000000800184281840501404842001010002400580208000000a480120000220063918800002110008409702400019018208000503400015450a11026000080000008a22a05400200021022202100020a0011018000406010028400018404480002480041322a0026137a1055004000800","stateRoot":"0xb1a4ecd349aee85eca57ad6fbf74bc7da5312f820b7afa0dafb9043c02c0acd6","timestamp":1794053338,"difficulty":0,"parentHash":"0x88745af9ea7287c6636abaa68c1068bfb5eef923b3a3d158c3ad160d567c564e","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","receiptsRoot":"0x917f79e3e801136bb240194dfab23553f4caa987703712fffeb59e19efd0ffe6","transactions":["0xa504daa1738d124470309fe560760ea0aafb15e5ddfa4993de7d17c35ee314d4","0x9b71cd9fe39b81f739a401e62326fac16fceb540506637c65eadf28bb275c21f","0x795aeaeae8117091227c746d50635defd35f81ceb56bd9c2176168efa88592fa","0x7b9606ba12f1a735f95dafe70708b9af2a76e0959000f4e396caf4f325d76b0a","0xd5b6668f08b6b643f9cd7b82006ba420d002f6a15cce93be60b8b31c583e57c7","0xce2c09abde60697cb8d57c2ea85f1519bbcf250396ee089f9a0347cf43fe5b46","0xdb939dc27be3729931dde772a35693f9e1ef56dd6ac2333b8f3a7a379ce40b27","0x29a3cb00658774e6d41fe1974f274b33a3fec804fdf8253676fecd92dd66131c","0x737ab2bea8c15e20111a95cb06c86e7c56e7ed383ceee272176ee0a18146a1c6","0x73770107c9e69e1a099739d1fc5ae2ecfe8076bee50fbdd6191edd09d4d268db","0xa99c2746b9e70bfbc207e60eef2c12ef55a05affec3332c7f04d2465480ecd4c","0xc3dbd93f307830a5ba10bcd36f3fb18040bd4d718ebf48f0f4012fafebe6537a","0x18ca90986beada20027359334a79e629ba9290f9a0ecda3593ebc33a6d28cb3c","0xb758466b07076787d5c394f605243c63550e34ece71d789c0d34979135cd5946","0xafb871d915d66eabf5bd84816ea672740f333d2ac52d57fd858b2e0caef5bea5","0x22a3a6e29ad137c05070ebffd45490614a40aaa7eec2e0968066e17f8f1858b4","0x6c2145a6bb723efdda6321e9366b2050518f56eb21874a4773b9efe2ea9682c6","0xda4ebaa351eb6bab81ddb33b2c9e9cc538c8f0950b30146f5d06f8fa7f9964b3"],"baseFeePerGas":5000000,"transactionsRoot":"0x0eaaa31c129096c395129795623b0d9cb4b8ea85f10c2019163b8df97218b85a"},"source":{"url":"https://mainnet.base.org","status":"OK"},"chainId":8453,"retrievedAt":"2026-11-07T12:08:58.621Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_26pooyfgFSv276MfvxcVP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the latest block data from a blockchain via a pay-per-call x402 API requiring no account","exampleAgentPrompt":"What is the latest block on the blockchain right now? Use BRAINIAC's chain data API to fetch the most recent block details.","exampleUseCases":[{"title":"Real-time block height monitoring","prompt":"Can you check what the current block number is on-chain right now? I need the latest block height for my on-chain monitoring dashboard."},{"title":"On-chain event timing reference","prompt":"I'm building a smart contract automation tool — can you grab the latest block data so I can use the current block number and timestamp as a reference point?"},{"title":"Blockchain sync status check","prompt":"Is my node up to date? Fetch the latest block from the chain so I can compare it against my local node's block height and see if I'm behind."}],"resultDescription":"A JSON object containing the latest block's data, which likely includes block number (height), block hash, timestamp, and potentially transaction count or other block-level metadata from the queried blockchain.","failureModes":["Payment failure — if the x402 USDC payment on Base is not completed or is underpaid, the API will not return data","Network unavailability — if the underlying blockchain node is unreachable, the response may be an error or empty","Empty response schema — the documented response example is empty {}, so the exact fields returned are not guaranteed by the schema","Malformed request body — the body must be a valid JSON object matching the input schema","Rate limiting or chain congestion may delay or fail responses"],"whenToPreferThis":"Choose this endpoint when you need the latest block data from a blockchain without setting up an account or managing API keys — ideal for one-off agent queries or pay-as-you-go workflows using x402 on Base. It is especially useful when you need current block height or hash as a lightweight on-chain reference point and want to avoid subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T12:38:37.156Z","isFirstParty":false,"canonicalSlug":"brainiac-software-chain-data-latest-block-0e30152f"}