{"uid":"cap_0hg79nlj_ZYXAivTGzm1-","slug":"onesource-ethereum-pending-block-rpc-f9d636ad","name":"OneSource Ethereum Pending Block RPC","description":"Pending block - transactions not yet mined, via eth_getBlockByNumber(\"pending\")","url":"https://api.onesource.io/api/chain/pending","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"network":{"enum":["ethereum","sepolia","robinhood"],"type":"string","default":"ethereum"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","properties":{"result":{"type":["object","null"],"properties":{"number":{"type":"string"},"gasUsed":{"type":"string"},"gasLimit":{"type":"string"},"timestamp":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string"},"gas":{"type":"string"},"from":{"type":"string"},"hash":{"type":"string"},"nonce":{"type":"string"},"value":{"type":"string"}}}}}}},"description":"Endpoint-specific response payload"},"meta":{"type":"object","required":["endpoint","request_id"],"properties":{"endpoint":{"type":"string"},"cost_usdc":{"type":"string"},"request_id":{"type":"string"},"payment_chain":{"type":"string"},"payment_token":{"type":"string"}}},"error":{"type":["object","null"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"data":{"result":{"number":"0x133da1f","gasUsed":"0xa7d8c0","gasLimit":"0x1c9c380","timestamp":"0x6567c8ec","transactions":[{"to":"0xdac17f958d2ee523a2206206994597c13d831ec7","gas":"0x5208","from":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","hash":"0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f","nonce":"0x4d2","value":"0x0"}]}},"meta":{"endpoint":"/api/chain/pending","cost_usdc":"0.001","request_id":"00000000abcdef01","payment_chain":"base","payment_token":"USDC"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kmUJx7aaqbok9cYsQ-xYW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current pending block data (hash, number, transaction count) for Ethereum mainnet or Sepolia testnet","exampleAgentPrompt":"What's the current pending block on Ethereum mainnet — give me the block number and how many transactions are in it?","exampleUseCases":null,"resultDescription":"A JSON object containing the pending block's hash (may be null), hexadecimal block number, and transaction count for the requested network (ethereum or sepolia).","failureModes":["Invalid network enum value returns an error","Node unavailability may return 5xx","Payment failure via x402/MPP returns 402","No pending block available may return null hash"],"whenToPreferThis":"Use this endpoint when you need real-time pending block state on Ethereum mainnet or Sepolia testnet without an API key, paying only per call via USDC on Base or Tempo. Prefer this over Infura/Alchemy when you want pay-per-use with no subscription and micropayment-native access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:42:57.482Z","isFirstParty":false}