BNB Smart Chain
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
BNB Smart Chain
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
On BNB Smart Chain, the BNB-gas EVM network whose validators seal blocks under Proof-of-Staked-Authority, you can register a reusable log filter and then snapshot it. eth_getFilterLogs takes an existing log-filter ID and returns the complete set of logs matching its address and topic criteria, ignoring whatever cursor eth_getFilterChanges may have advanced. In other words it gives you the whole history the filter would have matched, not just the delta. Call it through https://bsc.therpc.io/YOUR_API_KEY on chain ID 56 to seed an index with the full match set before switching to incremental polling.
eth_getFilterChanges for live deltas.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | filterId | string | نعم | The log filter ID. Only log filters (eth_newFilter) are valid — block and pending-tx filters are not supported. |
| النوع | الوصف |
|---|---|
| array | Array of all log objects matching the filter's criteria. |
Try it live in the BNB Smart Chain playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32000 | filter not found | Filter ID is invalid, expired, or the filter was already uninstalled. |
-32005 | query returned more than 10000 results | The filter matches too many logs; narrow the block range or add topic filters. |
eth_newFilter exclusively; feed it a block or pending-transaction filter ID and the node rejects the request.المعاملات
Hex filter ID from eth_newFilter