Polygon
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Polygon
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_getStorageAt reads the raw 32-byte value held at a specific storage slot of a contract on Polygon PoS (chain ID 137), the EVM-equivalent network that runs on MATIC gas. It bypasses the ABI entirely: instead of calling a getter, you name the slot index and read whatever is stored there at a chosen block — useful when a value is internal, has no public accessor, or you want to inspect a contract such as a QuickSwap pool or a bridged stablecoin without its interface. Send the request to https://polygon.therpc.io/YOUR_API_KEY and the result is the slot's 32-byte value, left-padded with zeros and hex-encoded.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | address | string (hex) | نعم | The contract whose storage to read. |
| 2 | storageSlot | string (hex) | نعم | Storage position to read. For mappings, this is the keccak256-derived slot. |
| 3 | blockTag | string | لا | Block at which to read.الافتراضي: latest |
| النوع | الوصف |
|---|---|
| string (hex) | 32-byte hex-encoded value stored at the slot, left-padded with zeros. |
Try it live in the Polygon playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32602 | Invalid params | Address or slot index is malformed. |
-32000 | Missing trie node | Historical block pruned on a non-archive node. |
keccak256(abi.encode(key, baseSlot)), which you must compute before querying.المعاملات
0x-prefixed 20-byte contract address
0x-prefixed 32-byte slot index (e.g. "0x0")
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"