post https://linea-mainnet.unifra.io/v1/
Returns the account and storage values of the specified account including the Merkle-proof. This call can be used to verify that the data you are pulling from is not tampered with.
Parameters
- DATA, 20 Bytes - Address of the account.
- ARRAY, 32 Bytes - Array of storage-keys which should be proofed and included. See eth_getStorageAt
- QUANTITY|TAG - Integer block number, or the string "latest" or "earliest", see the default block parameter
Returns
Object - A account object:
- balance: QUANTITY - The balance of the account. See eth_getBalance
- codeHash: DATA, 32 Bytes - Hash of the code of the account. For a simple Account without code it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
- nonce: QUANTITY - Nonce of the account. See eth_getTransactionCount
- storageHash: DATA, 32 Bytes - SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.
- accountProof: ARRAY - Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.
- storageProof: ARRAY - Array of storage-entries as requested. Each entry is an object with these properties:
- key: QUANTITY - the requested storage key
- value: QUANTITY - the storage value
- proof: ARRAY - Array of rlp-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.
Example
Request
curl --location 'https://linea-mainnet.unifra.io/v1/{your-api-key}' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getProof",
"params": [
"0x678Aa4bF4E210cf2166753e054d5b7c31cc7fa86",
[],
"latest"
],
"id": 1
}'
Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x678aa4bf4e210cf2166753e054d5b7c31cc7fa86",
"accountProof": [
"0xf90211a0167764e0f762e9fb117a2a5f624363a6c0246f8bcc13961184e735af195ad927a0f5dc35b216e48d2ae30195a0cf2015a499a865bd643d89ed6d9d837751cc9e3da0baa3c4fbebed82264893d520eb53d53cf0c97498c1406679eca7f270c7ba369ea09906e60612b1c2ad0bb6016c2a797b63227c9e35c2173386dc4f81924230ffa2a0d40f326ab4232c94b685a419cbe3b9d54b35656a5cf8b0f7079d110899ce4365a0c995925c92db633987137eb93d50eca8046f247ec5cd37b458353a26b7d4bbeca068ea242daee709ec7fd5f9a211e065584b380d9eb6040e9f8c7b7c543d7b5a2ea0627ab14814d530701ee7218fb20b2394e3bece953052d5104385d9ae6e88c958a04e8c5a7ef015953c0b7699285a4007918cd5aef8788f2018f821a2ae14dd32c3a03114972868f9b08d180e2a223fc3264db30d719d9d0426dd54921de2732a8981a09287db1078bc9b1d8d2a3154082e94c1501ca900e43436777c9f3d35906c3a87a02484b1830e19ce8ef8389b4b048330ea0cdf6c1d687ed23c23017c45bfa58b95a04ed51bb37bb644c438096f9335a7de10e7c5e528bc8bc5b2f269a1814cb015faa0096e044908316c4b146cacf390e60f299ba0ba45847c9a30c36d9d453cbfcd34a04a6ae07c66ba5a5b97f174666afc36537a48d19d4392dfada798f68676a2e48da0dd0428e3528b18fe82f10778a5ab03648b2a53a4ea63d32d5d502f588a0a4b7a80",
"0xf90211a07fc8b267a3f42367649d302c9248324a1e160b2e28f14bac46944cec5f73da8aa0ccd5fee0b089a43d59d44f75667400af3cfa05efab574661dabb53f4913cef33a0d28858c3aacf94c7b4cdbb0cacfc327909d4f870ec0dcf761e0f17868a1f3115a066676d8c7cfb10fe87993d6b1b3b8f348ff8ac77bc2ee4f09a940f24c2eaaa95a0bd7ffbbfbc691969d88fb9c264ead3e5f7d8bb4e3a82a6ac64e52ec99249949ea019f435b1cdcf6d4fc135ae42b94f0f6cc49af6c2b590ac86703e6bcd6ca8feb8a0912fdc4ac4734547ccb7b9acc1c397f644b1aacdfc6d54d9361624535d33ef9da06a1d0420c489d031140be7f0ad9542c4f66bd5a8f49b4bdaed27c4617e5c6dfda0a1618f06e9f4be23a737ba1d426c928b9d612e4382fdd107599a7fa58bec2e8da07c008925b7453c8e67ce327de1a95a5d2ac8c949062fbae433b9a6af6b232ac1a036c1845bf76af465ae0b7c99ccf0e8c67f9f12a051b29027603fd4730570a0b0a01a223c4b23dc25e8cb5c6831aa3594f692f0a5463e7705b51563e894ffe4cf65a0619c2939f62a69ba9d0027182b8b4585d76f9103eaf7988a648bb3327eaeb0a1a066d953c014d4be967e83fb108842f5fe933b67b85d062e43d25f3ed6f3b6730ba07731d858549fd87c6ef6f0dcd8accf26b9ec4983aa834445de2daa0e44cb0c02a00b2de16806bc258301227acb2e514dcf87ae330aeae0d2d74ba7fdd3ffaf2c4680",
"0xf90211a09bdcd8d9371df0d3c6fd0e2258ad319ff6dcb03dac2b92ae1c8c3ee9843bbf10a02ae964ca6c91ecd8910a872818862e9d0163ecb39791aefaf391065489c39bcba0f7834d675a39d4cc3da3729a5d667ca5dcf335f57f755a697b87b6b3e7273f97a0a65e5f84337569729aa6ca51f722290085a9b37338addf5cf1af7fa7d9fff6a6a06f2cf3651b9a4a797b2de1dd034b74a217cc96384b9955fbad5b544cba0afadca0b5d063843c72d64d4eeec7269e7e45208a92fd7d93bea2be55a8f1f1db0d7e26a06a2aa9e3a349e56e3c3cbc9938de69cfa754290581c68a674d3aafa5fb9b7adda087449d01d18379c027dd322138bcfdce01e733f2ea65377c2bc5e89ba4dc3458a05e90d061bcebe8beaffc435cf6bb3bea6fd13ab9dfcebbce7c57398db1f027e7a0c13dda4a2b1f7d90b26fa79cfcb7bdd23a47d1b5db75186df0f45f737768cd25a0d377e699c36c3cdde81bb98c6f68946238f050639608975b98bd5c836cfeb2baa0cb1ff742797697f776c3d6e8c901e7f3089393b6cc011fdd6a4e04c2c402dba2a0a872f5e7bf6eafd277a69f4388ccb07b19c6724a3f8e38290daad56fb1812576a05c33ee5f1ec1d755c9581dbd04974e7ec8f36c3b6742f1475f8acedc05a4d9afa00c191e014370b3b0d48fdbcc221297c15f59f06537e5c064cf19deff350e04c0a0c9577db75a186b7b180267824d51e3ea2eaaa1a28ab419c1eb7ebbe72ac574d980",
"0xf90211a0ff37473f777e191367299dfda05e70a4ba9588585d93e4c794f05ee13541df8da0105681d033aaae0eab1db2ec56e9343daa8768ad3a4da9747cc2310f7f58e211a0e8a654bd48d20d1795030df414438b7224f17443fbcf5235f37cd611b29fbed3a054faa9887f8da9ef7c7f36874d61c5b7cdabd58add4d8b28b8a7afb85b11727da0e3630baafc45960015ec1cf29f22f31c9831b853f5462c1c1b9be55fd0654a70a0bc9f87e1481ac43567b560f6ad661473f0b8c29797167c80700fd6d0c383e914a0c6804c3dc5c8ac40d6050303e6909ce7f688bc9c44a1ea16a0b822942838b695a0ba634dc46fe53a2d66a3ced144c0bfad22e0aa15198ca8bb478c3b150f215454a0df849a13381dd685f968fbae735a8427ca0d224ee2965b3c2c76a6c6b6a87f85a095eefdfc3be71bf54b033be2a5cd05deccbd67589ea8119d9caf9d88c710b748a0f2f433bd138e2a6b3e013ce394195a85ec427129c7969b972b4b986d2ebf045ba0c0606e9f0e3d141d45d503484530397f7fc3582e57207fa320c92c38d76e0871a023e14bb0a8b0835b13eb9c5ad6abcdca90a5d6218ea7a4d106527d7f0d06af07a07908a245cfd1a676fe7b24b41fc6020a0026388eeebd94c5aff67e5e487d3feda0d171e16557306d1a353947d2f5fcc8d70aa21bbeffbc4a1059ac9c9a20a0a88ca0d46b5e335ba3643ccd9d556dbba8ed50ab2c246d6fd65f41e15aab9e29f29bb780",
"0xf90151a0f13f369e951d75c629342661e8aff035702378c68edfe47c5bb26d694e1feeb6a0aabb4edc315c54d89b959b4bec117fab5d1a8de260ff35ef7f0763266c636b6880a0250b02dd9b3dfd4531ff3cdb8fb90f59ade600f111c9da43a65ef8b3b03120138080a05201b283c91a4b6122cd44b71414b289d9072d30df9249b85907c889bd4a2856a0510eb083fddafa2f85fcbc73051d356db980a80a157f807fcdbc0357f10a004ea0e3b97e8833389dd2d45716b5adb65b00fc78882f5ec6728c76613e933d8ff091a07753e4d5c25b44492a548533503dd7177684cbc49883ed9a06687899909f3bc98080a098dcacab844a0fafde271ed335544d2c44108b8922e3859f2389f7baed1343f0a0d6b207943c5ef1cf60f5203658e1c53ca8284fe018291f79e9fe6bc4c38981a580a069b910d64c58d4e192a74bd316d152eb82f13bd3b50bb939427c1d6dceb9b9a080",
"0xf8679e340655a6767097341547eea4c43e5810527c411e76e723bb47ce40e72d0fb846f8440180a09a52a91d0062b602233c8dfc897c92521427c7f186e681a97a387ea839ff8eb6a070c723d060ec2a373d171610f1baf9c229376abdb8bc1c1a561399da6e48c266"
],
"balance": "0x0",
"codeHash": "0x70c723d060ec2a373d171610f1baf9c229376abdb8bc1c1a561399da6e48c266",
"nonce": "0x1",
"storageHash": "0x9a52a91d0062b602233c8dfc897c92521427c7f186e681a97a387ea839ff8eb6",
"storageProof": []
}
}
The below parameter inputs do not work, please reference the section above instead.