BNB Smart Chain
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
BNB Smart Chain
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
A fresh block lands on BNB Smart Chain about every three seconds under PoSA, and eth_newBlockFilter lets you catch each one without holding a socket open. Chain ID 56 pays fees in BNB. Call the method against https://bsc.therpc.io/YOUR_API_KEY and it spins up a server-side filter that tracks new block arrivals, returning a hex filter ID. Poll that ID with eth_getFilterChanges to collect the block hashes seen since your previous poll. Think of it as the request-response counterpart to a streaming newHeads subscription, a good fit for clients that cannot hold a persistent WebSocket to BNB Smart Chain.
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| string | Hex filter ID. When polled with eth_getFilterChanges, yields an array of new block hashes since the last poll. |
Try it live in the BNB Smart Chain playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32000 | filter not found | Provider rejected filter creation or the filter limit was reached. |
eth_getBlockByHash when you need the contents.filter not found error surfaces.