eth_getProof

Returns the account and storage values of the specified account including the Merkle-proof.

This method will use 30 Compute Units.


Parameters

  1. address- String - The address of the account for which the balance is to be checked.

  2. storageKeys - Array[Strings] - An array of storage-keys that should be proofed and included.

  3. blockNumber - String - The block number as a string in hexadecimal format or the string "latest", "earliest" or "pending", see the default block parameter.

Returns

  • address - The address associated with the account.

  • accountProof - An array of rlp-serialized MerkleTree-Nodes which starts with the stateRoot-Node and follows the path of the SHA3 address as key.

  • balance - The current balance of the account in wei.

  • codeHash - A 32 byte hash of the code of the account.

  • nonce - The hash of the generated proof-of-work. Null if pending.

  • storageHash - A 32 byte SHA3 of the storageRoot. All storage will deliver a MerkleProof starting with this rootHash.

  • storageProof - An array of storage-entries as requested. Each entry is an object with the following fields:

    • key - The requested storage key.

    • value - The storage value.

    • proof - An array of rlp-serialized MerkleTree-Nodes which starts with the stateRoot-Node and follows the path of the SHA3 address as key.

// Result
{
	"jsonrpc": "2.0",
	"result": {
		"address": "0x7f0d15c7faae65896648c8273b6d7e43f58fa842",
		"accountProof": [
			"0xf90211a072bc58c52d9d5c14cb0c9da07a658533b40c9f659b0914d155daa16587879e03a049eda1be588e266238532c18d5660b4233057e8a7fab38d38ee5bea92dd82d6fa00322ac6630755c31c2cfd07f90f808315d3f1f5c6c0ec07216ba178534abb381a0b909f4f452825b824037a271bbfed7d84aaf32bd6f8fe970c307d9ad0420c2c1a06d58b68b72d4f18161357dec9ffdede1ba812a0c915f3f673e4b9b4b859bc9b9a081e486c392dc52e44846a555eda06e0420cbc38dbe0ef3b31477aad8dd91a141a0dea68abf68f9401c67221deca779ff5e9b2a506ec406fd45b83df5c8b357dce1a0b61e68ea9281d60748dce519aa21a1530ced0d5a24ecb71a2a267dc34878d86ea0a99a01542ad30ab18c216fa3fbe0a179736f44154abe21614ba335aaa520d7cba01afa558dcdc474928d6e1405dea12506f872e32c330f0ca175ddb5d1206e1eb9a0f629a69aa01c391d02a0df078b742c797c5a7ab7ce54ca3f9e2c87fe4cbb04a6a08787b5bd887e51cd1677a2d9029fa1f468dda9a2d3a368d9067167ebb137df4ca0dcd59691f67cd8f259f6417e1cc5637c5314ac4091cc68a89c66c5be96eaf795a0b900456d35193b253b0c636ad5664b7bd578eca6a72c2acb46448f8a2681fcd7a0181e5bb9e32a4bb4ecc4b9ddb075f805a3ad1b67aad3c8c8bac0d1e0ef5d5bf0a049afb41bc7fdd8c79fcd8c8f15e7bf09194dc1a3aaf11e3cd6dbd647ad06b17580",
			"0xf90211a04ed541c0326ae3a0391661ce1441718045666f13a5c1152942e85f806d098831a0c56336aad2d31543c3a1d952d7fb647510e69688434f35913ee94d86fbd348b5a0ccf5a6893c295ac5fa2e9b9a052b8fadcc4308a2f33cca8a39c6acc5767c0e94a0d32055b84544fa606ccdb50f17216535fa014e29577b1d6ba3870d22c1665690a09b16542a3be2a00e8ee5884c7cd16a6075621a9017c664f2c7fd7b31d6412a4da0fa32ad2c1571487167221572ecd9197004e0ff5586734fe0d0246caa56f298f1a0cc0a70f0a8f0eb8035c1776ad5d77742062c9b84cc43a86ba8a8561141cff489a008ed35ebffd4a91fb96b0bb1f9ae1a4284397b454da4b806674a8e864e925d8ba0cfeb37419bc3a407fc8246aaab7470102e8e8e4318b8ef215ef897d5e89910b1a02f05e075a78acc701290ad4524a021554036d8df814299a31826192c0ff98d87a0598854c810f7afe49003fe05cfdb8f272bd67a49f65a4b7882e9ad81ce800476a0471fce3d84336707d35d163ab3b2c56d3ad4c7fff43db4f60da7e2f8abba835ea07e28460f501ef6d869c4380c48b691503f325f17fc60914cb007bd086fa09daea01e14fac839449b9554780ddf0452bb9af05152a8468c64bf871207ff7b651a5da013caa9410a043586f4fdb2719a4d5edbf10be2e1b16218eb404c0f98ed60200fa031412514e1a142177b2e47d8eceefdabe472af4a8200d3561d7263cdc92c6d4080",
			"0xf90211a05c0ffbc1cb22b74c32f70df39e13663e430a2ae075b1fd8adda61b4f92045e38a0b9b2690a877a7da3d5aff480c23d64c49a42be4326a84cd112d05d200d85cf71a087152ad6d54497adce90daa1413bd300d23103a1518d52b75073837f54b7259ba0aee50e860185b7399d743d7cb8850ee62dfd0e7a0d1a2b7de9f996b8f334e4fea0a5b97e4b6f6b7d5082853384e0df2e5ca9b9db813b15ae2eb8c3fb850b550462a094206381d86ba3382c02a8d56754566b8f5fb12d6133e53a5b3eb4dffe8daa09a0d9e8d11f4b6ef527da90f286c00dbeadb94f714a3c4ee29ee74da9c4ef6f5230a0022ebf9cb517604711ed9a83691149fb0969e7e6d5ee55729bd08c8cd896fd8ca0f0512ca5fd8954cda50491324bba0e452405d38951a05bf31e59662e57fcab9da0da5ef36779e9acf1e722b5c03057a14144184c5fd5025d39fd8adb96b4cb1557a0243c5f40572ce15a03e7e1e51216bee309b642bec7196e83f7bf450e4ea8a904a0e41225fcb197f99886b2f9a1a490e07fb495fec78942dcb5bafc04514533c3e2a02549733de7555b75e3087e778478ea34200a249d354090427ac1d10c789b78e6a0afa65efb5dc307f04232a78217c076b994a08af41f46e23f140709469dacd54fa0984ba1b73c3a94d916ced88026570e2d7e77336b240bc5ba9f93a517d0fb6304a08b21a2cce8eab7708168c96583f0d0f90e703d0369ff65884a1de1cc86f9fc9e80",
			"0xf90211a0144ad1de13063e947f20ec0033c5e0f64a6da9afb204f96aa3472a0c0f66c7a9a012c85b84d59e46f87e7076b09b46948e48bebc3fedbf3371802912cf6d238730a0ae343e75a1ea77e60a66cde464c5a5206cb2923ce3a95fd45f47425794dfe922a01179cc60a15e06d88d0bdea0e3a474cfd18fc151ecb2d4f8546fbb5ae0ee1ec5a06986ca7d0fec2431fd5535b99c86b5b200163e569e108d4f019e4af07038b450a0c693b33fc7a1b740584e29373d8dfe3c9994343b0252a9813498f7e084635692a087e51db48e57c4b67c19f14df7a8f61e37637466715983311f076699e269ccd3a019d7c6de9f91ae129347d54898af9f9310c79a106647d909d02df516b7c8a25da0b4e32fddacc4d48b24d0db0723474b276da58939565f7cb2124c0943c25b9973a0f226371129147739e2c16fcdafe44681c8c2892b5bbb74bdd2f44634a726b61aa0ae0008c5861250876eb408d306f6ea6e3d966ec25458d9cd62396bb2d2c9d24ea00441163d871c70dbec69d5a5f05533e99521cedccbc2f88efbc3a90f75cbf069a0190364d5d6ae91cb4b4db15c088f3e3798151dfebcf01b8f721789bd5037a834a074b27e8243b461aa56e72143e6942d6833a348af3e46fef134396c6d11809083a07af4550bb1f7ae2d52f8a67eff5490e031640370c5f2b774c376fa1f5c5bd8aba02d721f005e4ea42d9d80192ff6c8d45a8caecf4a1bbe139afefaf020dd6f500480",
			"0xf90211a0173c1cddacef53aecb98880a11326aceb55cf4053b88568245f7164e1b73abdda0ad4f973dc492994f863e393418c5cf08ddc80a1af3f0c1122e2076dae42189d1a05d1f952b3d7cacee0d9087315776b62db3e0921af7c38de7b31b381a109afb4da044077d28c7f54703d5869467955faa85b92b2b11dfedc14cc76698e9294f486da04c7186ce5027872a2ccbecb628142b90949be2977a08df016056c402fd8160b1a096548142d091b3ebc2ac59658e926795f388b735e803f9b6ea550298e0207e2ba02831eda77012148fbcb2e7394d0dd5844dc1e3cfdc57e06ca19a634cbbdca9f7a084618aefac1c093febaf1eb338ca061906d761eecd7d71c3008af1bbe1fb84f1a056ca8691505b758b97e74ec3940f5d9fe67055cd1a9542efe9b03b32aaaee7d8a0e1b2e1eaad711c3cdfbc8d48d9a85bee9b1c7cc868ab69406f4737c42bf58f5ba009c272c4a67b50c7e95b92791791d88a3d9e2b6c515ffdd2a117976e55d59665a05ba95ea9bb64ff95d631c17dfa1699f5f8f17fde590fddc57ca1d51a9a008d3ea034799649a61f196372a4b4389392b205d8fa2041f3bf2fa7c68a747cd49bf193a08e33ff9218d255f71fdd0148fa755820c7a7d27d2b94441b410475eae2ab3fd3a091818ba375e111164dc195fe6c60e6cf77bdf4882b1335f9f38e13234609e153a084b16bc568b8a874c30883cb234ee320c9c4e1b4de8a968effeafac590cbabe280",
			"0xf90211a0306eb12378c5b8d854e8cb4c56156c86bd0b9dfb0ae0aa8e3cb7e5ec6af8b444a0f35d88f7358b1cf1c5c9959b235b7d9a7bf456cb4cfc840f7abb01ae72661388a09e44cc461bb572b3456f4a7d0419035dc939896b2264bfd79458aa8923c50519a0661f90e6f4d7505581d13fb490d0952f0a069fed08b8c3d99a67cdc945858fd2a0ec7c9438d9c61356713c7f49f96beb51de488fc5534952547a2c33a6cf84245ea031e772d390140b9aa20c50960753479e878ea15a5c86337e2db7302f899d3844a0dd9de661d635c6ac739761bfba77fa535d60498ee0135cbbb717cfd09ee07ed4a0a0b1986e0724e67e91f5b4b1d086e69af9aa62a77b2e1dcfbf31ef7efff4cf13a0fb0ce457d4d59564e438164cf2c97bc0a4c9ae3929e9fb3eeffe37c693dab521a0bdce3c5b5f0a4b31d63c46aea986c508cbb44c46e480b668d02ca3ba3e0e1a7ca0c3ebfad986c97749bbc198b2cb58fab3007d3525c95a2364e9334c1825146306a019f6e3811209c9fb59dc13517d24ac19b47d679568a02db9b80020e353dc5d68a0a638a1ed8e807b169b1732f823e99217239e73e1600dc261b813a29ea2d216d6a0d34be34979943d80706ed6d255ac0c6ddf18324fc79d7c389f5103f1392279aca03418fec063629aceade087fe043111b9c27024a5d494fd142aa3d4538f3c840ea085d6ee077ccc2164ce75f2baa4b50e6ba54c4282372d5927ab1730653210889680",
			"0xf8f180a0522b3d7aed5f3f215857be17055425d21a98875275df8702c9321987bd75abdfa0631a6a5752159c560f6c2c83ab7d8a29a39e8624a9561f8ed251960d85829f2b8080a0129b82d85e7d8d5c612b7ba92efc304fa9523d3308fe477329a7eb8da0fe88df808080a028155a9e79ab7a3bc4a7f255bfe7a6b91d8af8729bbe398f32a4f78b23ad0c1d8080a08160a47ecec6ef06d7f586ec76a5d7997bef7ceee16709dfd8036897474ff286a0a2a25be07a0bf4fccd0d120489f84eff0377e8f6b7e3c8a0bf45cd35a758c117a09c0c53d32dfffc54c636ceb7622fb83a6f72281a26c4418bedb5428b7db914438080"
		],
		"balance": "0x0",
		"codeHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
		"nonce": "0x0",
		"storageHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
		"storageProof": [
			{
				"key": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
				"value": "0x0",
				"proof": []
			}
		]
	},
	"id": 1
}	
curl https://mainnet.base.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}'

Last updated