1h lalu
The Solana read layer: Now 10x lower latency, with 100x fewer RPC calls, and 1000x less code
today, Solana changes forever we've solved the biggest data/RPC problem that exists solana historical/archival data — has now been redesigned quick context: today when you query historical data (getBlock/getTransaction/getSignaturesForAddress), it hits Google BigTable this is i) slow, ii) expensive, iii) inflexible for queries e.g., you physically can not get the first tx for a Solana address without looping back endlessly from the latest tx for busy addresses, this can take thousands of RPC calls — extremely slow, expensive, and annoying also, imagine you wanted to get the most recent 100 txs for an address, how do you do it? you first hit getSignaturesForAddress to get all the tx signatures and then call getTransaction on each tx to get its details — this can take 1,001 RPC calls in the worst case not anymore we have built a new distributed archival storage system that is 1,000x faster, more flexible, and more scalable the best part? we're introducing a new API method: getTransactionsForAddress with this method, you can now: i) combine getSignaturesForAddress and getTransaction calls into just 1 call instead of 1,000 ii) you can search in reverse order without needing to traverse iii) you can search historical transactions by time and slot ranges (e.g. get me all the txns from January 5th, 2025 until February 5th, 2025) what's more: - getBlock calls are now 10x faster - getTransaction calls are now 10x faster - getSignaturesForAddress calls are now 10x faster 10x lower latency, 100x fewer RPC calls, and 1000x less code enjoy! docs below
1,99 rb
27
Konten pada halaman ini disediakan oleh pihak ketiga. Kecuali dinyatakan lain, OKX bukanlah penulis artikel yang dikutip dan tidak mengklaim hak cipta atas materi tersebut. Konten ini disediakan hanya untuk tujuan informasi dan tidak mewakili pandangan OKX. Konten ini tidak dimaksudkan sebagai dukungan dalam bentuk apa pun dan tidak dapat dianggap sebagai nasihat investasi atau ajakan untuk membeli atau menjual aset digital. Sejauh AI generatif digunakan untuk menyediakan ringkasan atau informasi lainnya, konten yang dihasilkan AI mungkin tidak akurat atau tidak konsisten. Silakan baca artikel yang terkait untuk informasi lebih lanjut. OKX tidak bertanggung jawab atas konten yang dihosting di situs pihak ketiga. Kepemilikan aset digital, termasuk stablecoin dan NFT, melibatkan risiko tinggi dan dapat berfluktuasi secara signifikan. Anda perlu mempertimbangkan dengan hati-hati apakah trading atau menyimpan aset digital sesuai untuk Anda dengan mempertimbangkan kondisi keuangan Anda.