klaytn / web3klaytn

web3klaytn
MIT License
12 stars 10 forks source link

Reflect API changes from Klaytn v1.12.1 #584

Closed blukat29 closed 5 months ago

blukat29 commented 9 months ago
  1. https://github.com/klaytn/klaytn/pull/2068
  2. https://github.com/klaytn/klaytn/pull/2062
  3. https://github.com/klaytn/klaytn/pull/2088 https://github.com/klaytn/klaytn/pull/2101 EDIT 2024-01-29
  4. https://github.com/klaytn/klaytn/pull/2090
blukat29 commented 9 months ago

New APIs eth_getProof and klay_getProof https://github.com/klaytn/klaytn/pull/2068

Details **eth_getProof** ```js eth.getProof('0x0000000000000000000000000000000000000400', ['0x0'], 'latest') ``` ```js { accountProof: ["0xf90211a0eda2de9e2793a37e10cdd20e58a7ca3183d613f233cece9b70c29bf08835f8f5a0bcb550384379358f653587bddb280ca17a20d468cca8b3f57d0de38956828312a0bc129931dea018e8fcee60da14c782d050ab808147147bb4ca9c2cce98a1a2b2a0f34e80a6e7056e57bfa14daf02e7779b4d6b200b964fb6b8a4686c25fbb33869a0d2522efb9d5412762f50f2150adff6559329035e8b8784ecaff655d87f8bedb7a0d65b3ec466f0bd0e06572d389144f8ae2b154b7e7dfeecf23c1e87d82dc86ca1a06908cd14db74136ee94c6ee3eb0500571d920aae1fa17f2bc0c7234ed581121da00e1f8d98a1d3ed50d8dd5f6638e6bb828b941657366b1a0a4b8a77b58e10a758a05cd53714cbd491558956702760b7b0ee2aba441c80497e073daf26b176743d81a0e44d42f978f1dfcd9649c23ff4904423e5c6b8a0376878dd5d62315bc8f6727ea077895dbe63c4122a3b5cdd2cc4ef4103cabd58ed60bf880cf71241153221a9aea0def3fce16d763a186ba96426b0a41bed6908c28d3b91c10d3485210988abbc83a01da814ff55eed035acd8e514687ced45ed0f322a7d465fb66f71392da4fb1d93a0e4e57c2cea79769b17a0b1c33a156122b2d557ded28c6e21d4396542951e1613a00abd9013a50385fbb8b443e4a62cb15028126b4b6c15a38d8eb7df84231ebf55a07cca6b1b904fc1c208690f2880aee7c29bef7716522544b78d856ee98c59204180", "0xf90211a0e8b1a92565b947f6384e5f427527663de97a4264a324c1abc28cdae340d4aeeea04aa82970308b2f2844f048593dc5451ac1836ec68b10106949bec58456589440a0bbea326aecb5481feb1b85662e41c81ab52330a0dea62b68af7c7bb2f9ceb91ca050ff7a239f352867135fa84804fb59c984dac27e197aaca980058c68bdf04081a032b0ad0a6c43058ff8efe356f4bc73f82cafd2ff917a557f364ba9af3abbb43da03770c2a27f10d477c680a366b868a1ed7bd7c0872c0d7d8c7f8e0e6164806380a018c1709725e0dd443a9e29032e3a52e15e72f3a12fbf14b4709f3a09d5c9bce9a03dc9183216cd83e49ad8833a6dbfe03d22358c13407c0c9a59943d9931a78f19a03137792ea06c9025ef38fa9247b8bc05525156900e9693299ac317635f1064dda0cb8f36a6da8a7ab73c3d1861ac01173beb5000045c999b71a60c5aa62f167c76a082ad31df069d0e062b52fef96f47acc6764f683d098672db7283a45b136dd436a0d5b86328c6429577405390b344edf08c4eafe516a260a6ef131a10deb5dd39d8a04471d41e4fbfe9252ed52917fcad938456a65fab06890ae17d1ba5c7e9de6564a0151793dfdf21a7988984d12d16e7aa0f64475fc4c0993f3d51bd54c161f670fca04e4b84c2013a6b978927a22d18ac34c539ede1f9fbc1433c404058319e4e6ff9a0a9d63e5e15f47db7fb04d9745f426a72c64365c02efb8afacc08691e973fcba680", "0xf90211a04cb044e1fad2c01b128661c5a440913f6b5c9bb2c56e62cc41f68a52a7cb85bea09a1631bf6f67ee24a5017fcbf0bf602b2419d159fa859f7caad7ed779dd81d2ca01a34bb628a2384bfe644fdbb37363c1b325b9a69d6155cfd8fbbb808dcc0fc40a03956e25f598713904a041643709a1c5b929f28a9f8b56ff67542594ec0746c7ca0f3f2e3611830b37b8c396e590fbbbb6b33b6ba9370d809b6d5b1d3b7e51245fba04c7e7ad8da9c3fbe198a3af8ec5932b78ff17c4818ba3e809cefa5bddcb9ce1da0121d4ebbf3f161a2bf69f8018df51b10ca4de0cca7f69ecb6a59d3ba5bd2184fa0f373a612731e2994cd9a537e8bad26ba47dda44f7fa9ba137493a2a93d8e79e1a071c030fe19773501e88413747b6c48a65c0402b5b79bf9a09c4b3875e9c4ecfaa03f2aee0d4ac8fcade608093b3a63f171f545a2cd7d664e5874cb47ffc658b92ba0165c67c77013d3d0c03888e9c41477400f469bae164cdfe50ca298b18fb10be4a03872bdcd4de2d3615d7d5213b75d0d4e70483f14cf23cb2e4d4a4666374509bda016b3412e354ca629975a0984f1d1864aca6aa83b2ed43c873e5def006b3199f8a0fd2904547d248c76b936032e92d31ab5564b0df31752179bf59b58621ff499daa0de48cb28f6537077da1378096e592db9de96a9f5a78d3c667dc01eb121c4fd82a0f0c7aab4de887c145e09ffd2e2889e469bb3ca7750a3b9a0ac583c5f5c785b5480", "0xf90211a01e5db596b7b6dc7995b7ae35be47bf89cbe60847322c3525b459ad2413e3637fa021fbe2e6b8351d13da9e185afb95fa39013d8904ebf5d84bdf17a123712dff64a06954c08a7c1b01eeffdba94c5e0ed5f85bcff96bc0cd9fc628ee189845fc3b05a0184f2ee24a062c53c931e3f4672f97f918a48baf95603217e5838c0cec65dbe3a07af56da60ec833b0e8d2a3994043c7c75e102af6a56cc5b15c8e363266f422bea085a7e9f0a06810d7932bf860eeb65a50a7a4478ea17da257c0e67191033686b7a0fdcc728b1bb123c2ab0f760e0d351983d82b8eed125f7c909927c96f4d75ca9da09e003e8bd1d5b6c0d484ba5fff42efa708089c8202a18a41c851478be357487ea0a6a66681ef7dd4a4494722cffe55a7060bd43bc76177513738ff0b553280a4e7a04cd86975b00467122e0a903fd4726295b5cf88a604405c8aa4f7f59102830911a0177a628237579ed69a830f4af177e82a9cbdec5d4937d3125348c0c8181cc680a03f87bd53c871dfe7cba5fdc58b6bed8f373b1a5b46b1910f478c557e86967598a0d3ccb2c88edb6e28efd5e42c202bb4a4181100c28a57be6059a74ef1d1d93626a097cb89ca83613444a821557aab80535f3b9aab91e30d24479fb7d4ed3a7bd828a0baae287338f5a0a3c42cf0b42766dd90c200c5c77a3999587b6d85eaef7c80bba06801ca9cec7272de605e896c4abe0d3e9dd011ca0e9ce1d5bb193b597acd693780", "0xf90211a04cef0c9b56d590b0f30b91f057dade50182fcf89d0c13e161cb06543fedc9c4aa02ca6f21d69508a59196f9e1ee475dd1c5a547dfe6bd8918285699a0ceae0de6ba0a411ea1181981af83cd664b148678d03dc2cec35c8d6382a474f39fa7799c284a04f93394d84f64888f97cb9087e2ae66bafbe6d65a498cbcd5b33243a88314f68a09183e703faad2c15dcf82d28e24c7377921ea0fb2aa2a100f4a89c57f05890e6a0c41942d7c2eec49a028bdb333f649389844480c10d8220eb84b2f5be460a11eba0b3e09ed82d9373f5e20efdbb34290427294ab2a066224bff5a648f9250dce94ba0d0229e7c7de79ed2d8d664a213c2e94059dd1a0a596bf88110299ca82315a59ba02b5b5f92d161009827a26c12737b03d909768b759d586add78c924a496f0fbefa0e1894f4360da926246b7bb2f7474e875b9fb0e80ae6a2a30db3464e3fbf2c135a034e1c948e3919acdb21b6e40434c552e6c67c5be7f823de02513df1d86f83785a05513503c012ba85ae7b3e18f4ff8b3e07e628b2a665e18616db603732df03b95a0a1b2bd797916338489bd8d4cc2ecb26c1a78a1d0f2a39a8db2c6eeb9c755852aa0e7ebb67448ff0f43a6389e884b3f86c44dc38ef1d1d45312df6f5a5fe1ba33b6a0a5bdde61d7e43e71b20a643e122cf534efd2054bc65e113c87e3702a6dfb9434a065e18e82169d049704d3cdfa4b074f5861326265a8d4bf5abb072c889176a41480", "0xf9017180a067dc255a89b47861c1dd30d187f9a9857898b63863c40b363bcfa0bc8c8bf15480a032f3df05f9facff76fbcf5785ddca2ada09030b1bf9ab75d45ca045cacb3f01b80a053d878bd751d6de36fd6638d169b68479e0315dedbc743e63dcab0dc2bef33fd80a01e2348528ca35e04f089f3e9ca264e5e2aa00c1bb678c6feeff0e51424fc1253a033987c790aee64d7090d4d005ff418d03f2997f00921ec5dccc00125289e741ea02329cb971a2b8bf537b1b9fa96f8f68260ea96a3470934fe03357681013ff3ada0bd4e0cb43aa0da25ef710cb5c8e2ad277e8510352aa79ff98b26c70a2b091191a062196b715638e3611ea1b5836482844e6d76e28d9752e38487cfddc0fb5f654280a0a703397aac67faf2a11e2b59dcb69dda7860797c38aa31c5725be96b086a92a3a0ef29d1a60729ce5047629b6c5e88bf21059032cd869aa5685996cb476deb8f38a0a086c2acb4bca3fbd4d8a0717a124511dde9a160f335718b55873d02a8543e4580", "0xf86d9e2033015b984fcca3017c4f65e78a2c013f37867ff35e58a7b7e801cefa7ab84c02f849c580808003c0a0a6675f09afef027684247ebd8c0a489d0bb6ebb1578a4ef80670cc51a9c021bca06c39846f5ab402760078b7bfd16c99e687c75bcb5ec65ac8f3054bad18136f0980"], address: "0x0000000000000000000000000000000000000400", balance: "0x0", codeHash: "0x6c39846f5ab402760078b7bfd16c99e687c75bcb5ec65ac8f3054bad18136f09", nonce: "0x0", storageHash: "0xa6675f09afef027684247ebd8c0a489d0bb6ebb1578a4ef80670cc51a9c021bc", storageProof: [{ key: "0x0", proof: ["0xf90211a03587a3d5ed8f2e3b5fecdcb551e41d41a9c1eb0e71b14c2c71cd295176d8b384a0d7c0c6f2228c9029cdae4cba78e14e5cb7beb51c215532d27583c6d4a7b24f7ba0233d0d04db6bc012e77c0f8c57914b271ad7c85b193c956abcdd5b57636c2e36a0474ef8a9afac4d188c600cc0e7a55b8e3e04d24efd061cf88e290ef1e0419940a0fcc97750a5a434dd8854bb56fc11159f3fe86f57c3cec50db69010e339613380a09f7c839b3699d72623b909f8590f5625006464118904fd81f0346fd11911dc25a0013ba2bccb47722151f4052913f140dc79fc3fbb2cfe7b9f9e799dec2b46d033a0a8184a4d8e104149be4c9a4e3ef0f9172eefb457d1a164984d1481a721b28b52a0ef1eaedb284a17496b0d177b89838e81d4489a250f573428fe8e912b1767b74ca02b41b39f4ecc2a6f79977e3e943012545fe60455f0840f48b2116affa14d3f12a05dcbf8ce433de9fdf192bdd516a222984453bd17bf45bb14cefa8c42e0bfd28ca06d8820b72c6f9edcffd2ecc81a7524b45af3c9b6ab99cde18caaf9a5156003efa0af1d60c2feaa50b18cb7c96602a92aa1971ef22d1b77c99fbb2d98250777690da0451df2a75b90807c14ce11f28dbec94681f6147bab73d56f702f270b15a54e04a03063bc2a3bc4af4303aab561c2cd777600887d60088ed4f308c7647af85c74e2a06a7c88d94e226e0173e0a7f57fc3e61601ef8301df1174c5faba11174cd5580c80", "0xf90211a03940a57cd9f2ddb3b9d1e050e41cda9357e9d01e12d4cc6b8f5f27f9b9bdd769a00a003859a5aed15b6e3d3131f62c255a79834b8fa20496d2ad474cac5bc29e4ca0b86cbf313be39c75558ee01f941bd272450688079237879480169b909c5a750aa04f1c52952d7faaeed2e59ff2f9a1778c22ff995506f94a711a70a9cdfd6ec193a05277277e467a6c876b60252e20869ce261ff088922c1d45f1dfee85b47452ce4a0e55770563603f49c1bd842f00a1d7da6ba81395e16f10c455e127a7e0bf81513a0ee04523ee0d1f435c76093004dd6180f78c4bfd7cdcb854afcbc93454a6fad40a0705afdd98abf5d34206494f93f1ef506490cce589dd38d53402f2c6aa233c672a0df7f2456121164da5a01a0549785fc977c63c29e31da1c222d42cb82e6654bcfa02dd053ea57c5f2fda8c3470e7619fa4ad46dc3de6e612b04fd6a8a6a484a020fa0a79128fe9feeed600546938d6bc851fd52e233a81f99c5a2f3f2faf716d90fd0a0ca5a106be4e411bd25f31638c0187dc44aebeca10e9f6514e894a814b7c98924a061798b456f4e5bae141d457a9d1c06e427a2f3fdc9d34350e27c6e1863739d60a0906a6e5c7ae1b678ca252c5a74a3cc79805ded2d638d4a58cd27c374a7fec651a0ea3a86b2986f651d7d0fae26b524f05bd02db8f9fe10735b5acaa0316782058aa08e98d0ba5fb199e1c416709483e028133af323eb597070128fd137234afd3f9b80", "0xf871a0cd738247f01cc1c96193884beac876c761547072774dbb84559d99b6fb2cb52380a02353301f1d2a77e3f02628c1f336da8c60257958419ea074310f605e7db2849e808080808080808080a0f1916e90e542599873a8be4c3a8a7afbaa0b70ac923e39342e99de2c2d84d4ae80808080", "0xe19f3decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56303"], value: "0x3" }] } ``` **klay_getProof** ```js klay.getProof('0x0000000000000000000000000000000000000400', ['0x0'], 'latest') ``` ```js { accountProof: ["0xf90211a0eda2de9e2793a37e10cdd20e58a7ca3183d613f233cece9b70c29bf08835f8f5a0bcb550384379358f653587bddb280ca17a20d468cca8b3f57d0de38956828312a0bc129931dea018e8fcee60da14c782d050ab808147147bb4ca9c2cce98a1a2b2a0f34e80a6e7056e57bfa14daf02e7779b4d6b200b964fb6b8a4686c25fbb33869a0d2522efb9d5412762f50f2150adff6559329035e8b8784ecaff655d87f8bedb7a0d65b3ec466f0bd0e06572d389144f8ae2b154b7e7dfeecf23c1e87d82dc86ca1a06908cd14db74136ee94c6ee3eb0500571d920aae1fa17f2bc0c7234ed581121da00e1f8d98a1d3ed50d8dd5f6638e6bb828b941657366b1a0a4b8a77b58e10a758a05cd53714cbd491558956702760b7b0ee2aba441c80497e073daf26b176743d81a0e44d42f978f1dfcd9649c23ff4904423e5c6b8a0376878dd5d62315bc8f6727ea077895dbe63c4122a3b5cdd2cc4ef4103cabd58ed60bf880cf71241153221a9aea0def3fce16d763a186ba96426b0a41bed6908c28d3b91c10d3485210988abbc83a01da814ff55eed035acd8e514687ced45ed0f322a7d465fb66f71392da4fb1d93a0e4e57c2cea79769b17a0b1c33a156122b2d557ded28c6e21d4396542951e1613a00abd9013a50385fbb8b443e4a62cb15028126b4b6c15a38d8eb7df84231ebf55a07cca6b1b904fc1c208690f2880aee7c29bef7716522544b78d856ee98c59204180", "0xf90211a0e8b1a92565b947f6384e5f427527663de97a4264a324c1abc28cdae340d4aeeea04aa82970308b2f2844f048593dc5451ac1836ec68b10106949bec58456589440a0bbea326aecb5481feb1b85662e41c81ab52330a0dea62b68af7c7bb2f9ceb91ca050ff7a239f352867135fa84804fb59c984dac27e197aaca980058c68bdf04081a032b0ad0a6c43058ff8efe356f4bc73f82cafd2ff917a557f364ba9af3abbb43da03770c2a27f10d477c680a366b868a1ed7bd7c0872c0d7d8c7f8e0e6164806380a018c1709725e0dd443a9e29032e3a52e15e72f3a12fbf14b4709f3a09d5c9bce9a03dc9183216cd83e49ad8833a6dbfe03d22358c13407c0c9a59943d9931a78f19a03137792ea06c9025ef38fa9247b8bc05525156900e9693299ac317635f1064dda0cb8f36a6da8a7ab73c3d1861ac01173beb5000045c999b71a60c5aa62f167c76a082ad31df069d0e062b52fef96f47acc6764f683d098672db7283a45b136dd436a0d5b86328c6429577405390b344edf08c4eafe516a260a6ef131a10deb5dd39d8a04471d41e4fbfe9252ed52917fcad938456a65fab06890ae17d1ba5c7e9de6564a0151793dfdf21a7988984d12d16e7aa0f64475fc4c0993f3d51bd54c161f670fca04e4b84c2013a6b978927a22d18ac34c539ede1f9fbc1433c404058319e4e6ff9a0a9d63e5e15f47db7fb04d9745f426a72c64365c02efb8afacc08691e973fcba680", "0xf90211a04cb044e1fad2c01b128661c5a440913f6b5c9bb2c56e62cc41f68a52a7cb85bea09a1631bf6f67ee24a5017fcbf0bf602b2419d159fa859f7caad7ed779dd81d2ca01a34bb628a2384bfe644fdbb37363c1b325b9a69d6155cfd8fbbb808dcc0fc40a03956e25f598713904a041643709a1c5b929f28a9f8b56ff67542594ec0746c7ca0f3f2e3611830b37b8c396e590fbbbb6b33b6ba9370d809b6d5b1d3b7e51245fba04c7e7ad8da9c3fbe198a3af8ec5932b78ff17c4818ba3e809cefa5bddcb9ce1da0121d4ebbf3f161a2bf69f8018df51b10ca4de0cca7f69ecb6a59d3ba5bd2184fa0f373a612731e2994cd9a537e8bad26ba47dda44f7fa9ba137493a2a93d8e79e1a071c030fe19773501e88413747b6c48a65c0402b5b79bf9a09c4b3875e9c4ecfaa03f2aee0d4ac8fcade608093b3a63f171f545a2cd7d664e5874cb47ffc658b92ba0165c67c77013d3d0c03888e9c41477400f469bae164cdfe50ca298b18fb10be4a03872bdcd4de2d3615d7d5213b75d0d4e70483f14cf23cb2e4d4a4666374509bda016b3412e354ca629975a0984f1d1864aca6aa83b2ed43c873e5def006b3199f8a0fd2904547d248c76b936032e92d31ab5564b0df31752179bf59b58621ff499daa0de48cb28f6537077da1378096e592db9de96a9f5a78d3c667dc01eb121c4fd82a0f0c7aab4de887c145e09ffd2e2889e469bb3ca7750a3b9a0ac583c5f5c785b5480", "0xf90211a01e5db596b7b6dc7995b7ae35be47bf89cbe60847322c3525b459ad2413e3637fa021fbe2e6b8351d13da9e185afb95fa39013d8904ebf5d84bdf17a123712dff64a06954c08a7c1b01eeffdba94c5e0ed5f85bcff96bc0cd9fc628ee189845fc3b05a0184f2ee24a062c53c931e3f4672f97f918a48baf95603217e5838c0cec65dbe3a07af56da60ec833b0e8d2a3994043c7c75e102af6a56cc5b15c8e363266f422bea085a7e9f0a06810d7932bf860eeb65a50a7a4478ea17da257c0e67191033686b7a0fdcc728b1bb123c2ab0f760e0d351983d82b8eed125f7c909927c96f4d75ca9da09e003e8bd1d5b6c0d484ba5fff42efa708089c8202a18a41c851478be357487ea0a6a66681ef7dd4a4494722cffe55a7060bd43bc76177513738ff0b553280a4e7a04cd86975b00467122e0a903fd4726295b5cf88a604405c8aa4f7f59102830911a0177a628237579ed69a830f4af177e82a9cbdec5d4937d3125348c0c8181cc680a03f87bd53c871dfe7cba5fdc58b6bed8f373b1a5b46b1910f478c557e86967598a0d3ccb2c88edb6e28efd5e42c202bb4a4181100c28a57be6059a74ef1d1d93626a097cb89ca83613444a821557aab80535f3b9aab91e30d24479fb7d4ed3a7bd828a0baae287338f5a0a3c42cf0b42766dd90c200c5c77a3999587b6d85eaef7c80bba06801ca9cec7272de605e896c4abe0d3e9dd011ca0e9ce1d5bb193b597acd693780", "0xf90211a04cef0c9b56d590b0f30b91f057dade50182fcf89d0c13e161cb06543fedc9c4aa02ca6f21d69508a59196f9e1ee475dd1c5a547dfe6bd8918285699a0ceae0de6ba0a411ea1181981af83cd664b148678d03dc2cec35c8d6382a474f39fa7799c284a04f93394d84f64888f97cb9087e2ae66bafbe6d65a498cbcd5b33243a88314f68a09183e703faad2c15dcf82d28e24c7377921ea0fb2aa2a100f4a89c57f05890e6a0c41942d7c2eec49a028bdb333f649389844480c10d8220eb84b2f5be460a11eba0b3e09ed82d9373f5e20efdbb34290427294ab2a066224bff5a648f9250dce94ba0d0229e7c7de79ed2d8d664a213c2e94059dd1a0a596bf88110299ca82315a59ba02b5b5f92d161009827a26c12737b03d909768b759d586add78c924a496f0fbefa0e1894f4360da926246b7bb2f7474e875b9fb0e80ae6a2a30db3464e3fbf2c135a034e1c948e3919acdb21b6e40434c552e6c67c5be7f823de02513df1d86f83785a05513503c012ba85ae7b3e18f4ff8b3e07e628b2a665e18616db603732df03b95a0a1b2bd797916338489bd8d4cc2ecb26c1a78a1d0f2a39a8db2c6eeb9c755852aa0e7ebb67448ff0f43a6389e884b3f86c44dc38ef1d1d45312df6f5a5fe1ba33b6a0a5bdde61d7e43e71b20a643e122cf534efd2054bc65e113c87e3702a6dfb9434a065e18e82169d049704d3cdfa4b074f5861326265a8d4bf5abb072c889176a41480", "0xf9017180a067dc255a89b47861c1dd30d187f9a9857898b63863c40b363bcfa0bc8c8bf15480a032f3df05f9facff76fbcf5785ddca2ada09030b1bf9ab75d45ca045cacb3f01b80a053d878bd751d6de36fd6638d169b68479e0315dedbc743e63dcab0dc2bef33fd80a01e2348528ca35e04f089f3e9ca264e5e2aa00c1bb678c6feeff0e51424fc1253a033987c790aee64d7090d4d005ff418d03f2997f00921ec5dccc00125289e741ea02329cb971a2b8bf537b1b9fa96f8f68260ea96a3470934fe03357681013ff3ada0bd4e0cb43aa0da25ef710cb5c8e2ad277e8510352aa79ff98b26c70a2b091191a062196b715638e3611ea1b5836482844e6d76e28d9752e38487cfddc0fb5f654280a0a703397aac67faf2a11e2b59dcb69dda7860797c38aa31c5725be96b086a92a3a0ef29d1a60729ce5047629b6c5e88bf21059032cd869aa5685996cb476deb8f38a0a086c2acb4bca3fbd4d8a0717a124511dde9a160f335718b55873d02a8543e4580", "0xf86d9e2033015b984fcca3017c4f65e78a2c013f37867ff35e58a7b7e801cefa7ab84c02f849c580808003c0a0a6675f09afef027684247ebd8c0a489d0bb6ebb1578a4ef80670cc51a9c021bca06c39846f5ab402760078b7bfd16c99e687c75bcb5ec65ac8f3054bad18136f0980"], address: "0x0000000000000000000000000000000000000400", balance: "0x0", codeHash: "0x6c39846f5ab402760078b7bfd16c99e687c75bcb5ec65ac8f3054bad18136f09", nonce: "0x0", storageHash: "0xa6675f09afef027684247ebd8c0a489d0bb6ebb1578a4ef80670cc51a9c021bc", storageProof: [{ key: "0x0", proof: ["0xf90211a03587a3d5ed8f2e3b5fecdcb551e41d41a9c1eb0e71b14c2c71cd295176d8b384a0d7c0c6f2228c9029cdae4cba78e14e5cb7beb51c215532d27583c6d4a7b24f7ba0233d0d04db6bc012e77c0f8c57914b271ad7c85b193c956abcdd5b57636c2e36a0474ef8a9afac4d188c600cc0e7a55b8e3e04d24efd061cf88e290ef1e0419940a0fcc97750a5a434dd8854bb56fc11159f3fe86f57c3cec50db69010e339613380a09f7c839b3699d72623b909f8590f5625006464118904fd81f0346fd11911dc25a0013ba2bccb47722151f4052913f140dc79fc3fbb2cfe7b9f9e799dec2b46d033a0a8184a4d8e104149be4c9a4e3ef0f9172eefb457d1a164984d1481a721b28b52a0ef1eaedb284a17496b0d177b89838e81d4489a250f573428fe8e912b1767b74ca02b41b39f4ecc2a6f79977e3e943012545fe60455f0840f48b2116affa14d3f12a05dcbf8ce433de9fdf192bdd516a222984453bd17bf45bb14cefa8c42e0bfd28ca06d8820b72c6f9edcffd2ecc81a7524b45af3c9b6ab99cde18caaf9a5156003efa0af1d60c2feaa50b18cb7c96602a92aa1971ef22d1b77c99fbb2d98250777690da0451df2a75b90807c14ce11f28dbec94681f6147bab73d56f702f270b15a54e04a03063bc2a3bc4af4303aab561c2cd777600887d60088ed4f308c7647af85c74e2a06a7c88d94e226e0173e0a7f57fc3e61601ef8301df1174c5faba11174cd5580c80", "0xf90211a03940a57cd9f2ddb3b9d1e050e41cda9357e9d01e12d4cc6b8f5f27f9b9bdd769a00a003859a5aed15b6e3d3131f62c255a79834b8fa20496d2ad474cac5bc29e4ca0b86cbf313be39c75558ee01f941bd272450688079237879480169b909c5a750aa04f1c52952d7faaeed2e59ff2f9a1778c22ff995506f94a711a70a9cdfd6ec193a05277277e467a6c876b60252e20869ce261ff088922c1d45f1dfee85b47452ce4a0e55770563603f49c1bd842f00a1d7da6ba81395e16f10c455e127a7e0bf81513a0ee04523ee0d1f435c76093004dd6180f78c4bfd7cdcb854afcbc93454a6fad40a0705afdd98abf5d34206494f93f1ef506490cce589dd38d53402f2c6aa233c672a0df7f2456121164da5a01a0549785fc977c63c29e31da1c222d42cb82e6654bcfa02dd053ea57c5f2fda8c3470e7619fa4ad46dc3de6e612b04fd6a8a6a484a020fa0a79128fe9feeed600546938d6bc851fd52e233a81f99c5a2f3f2faf716d90fd0a0ca5a106be4e411bd25f31638c0187dc44aebeca10e9f6514e894a814b7c98924a061798b456f4e5bae141d457a9d1c06e427a2f3fdc9d34350e27c6e1863739d60a0906a6e5c7ae1b678ca252c5a74a3cc79805ded2d638d4a58cd27c374a7fec651a0ea3a86b2986f651d7d0fae26b524f05bd02db8f9fe10735b5acaa0316782058aa08e98d0ba5fb199e1c416709483e028133af323eb597070128fd137234afd3f9b80", "0xf871a0cd738247f01cc1c96193884beac876c761547072774dbb84559d99b6fb2cb52380a02353301f1d2a77e3f02628c1f336da8c60257958419ea074310f605e7db2849e808080808080808080a0f1916e90e542599873a8be4c3a8a7afbaa0b70ac923e39342e99de2c2d84d4ae80808080", "0xe19f3decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56303"], value: "0x3" }] } ```
blukat29 commented 9 months ago
  1. Fix the broken APIs debug_chaindbProperty and debug_chaindbCompact https://github.com/klaytn/klaytn/pull/2062
Details **debug_chaindbProperty** ``` debug.chaindbProperty("stats") ``` ``` [misc:LevelDB] Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 1 | 7.66346 | 0.03122 | 0.00000 | 7.66346 1 | 80 | 99.16885 | 1.26527 | 118.59321 | 118.21994 2 | 561 | 999.28770 | 0.54736 | 65.39196 | 65.38906 3 | 4864 | 9993.05422 | 0.32491 | 26.20485 | 26.20485 4 | 565 | 1139.18585 | 0.00000 | 0.00000 | 0.00000 -------+------------+---------------+---------------+---------------+--------------- Total | 6071 | 12238.36006 | 2.16876 | 210.19002 | 217.47731 [header:LevelDB] Compactions Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB) -------+------------+---------------+---------------+---------------+--------------- 0 | 1 | 18.77125 | 0.22487 | 0.00000 | 75.08733 1 | 83 | 98.32374 | 1.52594 | 173.63343 | 161.38533 2 | 728 | 998.64410 | 0.00000 | 0.00000 | 0.00000 3 | 4998 | 9999.59605 | 0.00000 | 0.00000 | 0.00000 4 | 49182 | 99998.39015 | 0.00000 | 0.00000 | 0.00000 5 | 56629 | 115047.34749 | 1.30156 | 158.34788 | 95.28251 -------+------------+---------------+---------------+---------------+--------------- Total | 111621 | 226161.07278 | 3.05237 | 331.98131 | 331.75517 ``` **debug_chaindbCompact** ```js debug.chaindbCompact() ``` ```js null ```
blukat29 commented 9 months ago
  1. More output fields in klay_getBlockWithConsensusInfo https://github.com/klaytn/klaytn/pull/2088 a. .committers field added b. .sighash field added
Details ``` klay.getBlockWithConsensusInfo(144912097) ``` ``` { baseFeePerGas: "0x5d21dba00", blockScore: "0x1", committee: ["0x571e53df607be97431a5bbefca1dffe5aef56f4d", "0x5cb1a7dccbd0dc446e3640898ede8820368554c8", "0x99fb17d324fa0e07f23b49d09028ac0919414db6", "0xb74ff9dea397fe9e231df545eb53fe2adf776cb2"], committers: ["0x571e53df607be97431a5bbefca1dffe5aef56f4d", "0x5cb1a7dccbd0dc446e3640898ede8820368554c8", "0x99fb17d324fa0e07f23b49d09028ac0919414db6"], extraData: "0xd883010c00846b6c617988676f312e32302e36856c696e757800000000000000f90164f85494571e53df607be97431a5bbefca1dffe5aef56f4d945cb1a7dccbd0dc446e3640898ede8820368554c89499fb17d324fa0e07f23b49d09028ac0919414db694b74ff9dea397fe9e231df545eb53fe2adf776cb2b841670fcba4ad035119e2e5a2d65f25e708c338094ba5bbb807b07653ee2e5a885756a8c17474de0381228a48d04ccf43e175802ff595eb451a07ef6c1c42818eeb00f8c9b84174e352389c0fc4e5e1a30973ed211d98e32fb867bd58beb1df19c25f916b004a19f59af9e6c2b3d42d9644db299db33e89c42fbc0b4a2012b7ed53af3ad8109700b8414c919fbfcd3d23dda688a2942adb887de347d6b31296f5911d44d4b6481568ee25885193f541c6a5682b154c4e80acbe4053054486d5325534320834afe4e12601b841c1c34a309b20912c9717fc50434fb936520e1ed977bfb45a25fd67982cc1e7291fdd8bf8baa75d29d91ff4fcb7fc15a019f27ff17d41a8e6d6a952e0c5d90e8501", gasUsed: "0x53ac7", governanceData: "0x", hash: "0x5b352ca69c10e20e9e3c51df10eadd3b7085a059f0fe90a8bf9516c510cc2409", logsBloom: "0x00000000000800000020000000000000000000000000000000000000000000000000000000000000040001000020000000000000000200000000008000000000000000000000000000000000002000008000000001000000000000000000000000000002000000000000020000800000000000008400000000000000100000000000004040000000000080000008000004100c80000000000000000000000400200000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000800000000000000000000040000000000000000000400000000000000", mixHash: "0xd7228a9d7e1cf010f6ffaaa94becb89d133dd733607dbd1952300b8e19d229bd", number: "0x8a32ee1", originProposer: "0xb74ff9dea397fe9e231df545eb53fe2adf776cb2", parentHash: "0x1fc97c063cef3ded69929be75068e38ee247915733dbac380fb2578d70a1786e", proposer: "0xb74ff9dea397fe9e231df545eb53fe2adf776cb2", randomReveal: "0xb41f73eb9c07f50e779d0aea4551c72f2e114a1e7e6eb05350cd0242e1724cc175b80e1edae19f4e3c8f67458e0d22f70ab30167d9961f67642dacf9c68dbe9ac60593f490cc22a5a6c870821e38c307915345ac255c8070610aebf3deaaa0dc", receiptsRoot: "0xfa70568c0ba6ccf9ca7a4f08b9b0351b07ec1ce95b50b0fcbe61c01a0b5bdc54", reward: "0x82829a60c6eac4e3e9d6ed00891c69e88537fd4d", round: 0, sigHash: "0xf489e65bc545df3fe7180cb135dc9ab9231d3a87a77ca3d4641c96e874e08463", size: "0x61e", stateRoot: "0x8f381d24a1de4aca07f64b97ac496cbc97495a785f8ce990179ee6b7e4c018ff", timestamp: "0x65b7044f", timestampFoS: "0x45", totalBlockScore: "0x8a32ee2", transactions: [{ blockHash: "0x5b352ca69c10e20e9e3c51df10eadd3b7085a059f0fe90a8bf9516c510cc2409", blockNumber: "0x8a32ee1", contractAddress: null, effectiveGasPrice: "0x5d21dba00", feePayer: "0x5e6b99bca5a21818d40d12c56194674989146fc8", feePayerSignatures: [{...}], from: "0x3c8b7951161444bbf137db0921c6fb6c2a4f6bb9", gas: "0x61a80", gasPrice: "0xba43b7400", gasUsed: "0x2ff59", input: "0x202ee0ed0000000000000000000000000000000000000000000000000000000000119db9000000000000000000000000000000000000000000000000000003d5e4877540", logs: [{...}, {...}, {...}], logsBloom: "0x00000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000008000000000000000000000000000000000002000000000000001000000000000000000000000000002000000000000000000800000000000008400000000000000100000000000000040000000000000000008000000100480000000000000000000000400200000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000800000000000000000000000000000000000000000400000000000000", nonce: "0x119dbc", senderTxHash: "0x83d33350946172ee869bfeb1a965f1ac85c9b8228034eae6566d5e2b2a7b86af", signatures: [{...}], status: "0x1", to: "0xe747418f2fe0f5794c5105f718b59b283e1b5e07", transactionHash: "0xc0af639361ec962d53e1e27358b6583e7ec3bca93f0c8197e2cbaaaf1d8f5028", transactionIndex: "0x0", type: "TxTypeFeeDelegatedSmartContractExecution", typeInt: 49, value: "0x0" }, { blockHash: "0x5b352ca69c10e20e9e3c51df10eadd3b7085a059f0fe90a8bf9516c510cc2409", blockNumber: "0x8a32ee1", contractAddress: null, effectiveGasPrice: "0x5d21dba00", feePayer: "0x5e6b99bca5a21818d40d12c56194674989146fc8", feePayerSignatures: [{...}], from: "0x95b4cef2d1d6a0b22b339306cea3aff74548cf83", gas: "0x61a80", gasPrice: "0xba43b7400", gasUsed: "0x23b6e", input: "0x202ee0ed00000000000000000000000000000000000000000000000000000000000781ef00000000000000000000000000000000000000000000000000000014b8d03a00", logs: [{...}, {...}, {...}], logsBloom: "0x00000000000000000020000000000000000000000000000000000000000000000000000000000000040001000020000000000000000200000000000000000000000000000000000000000000002000008000000001000000000000000000000000000000000000000000020000000000000000000400000000000000100000000000004000000000000080000000000004000c80000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000", nonce: "0x781ef", senderTxHash: "0xed9fc57f1a17f9b4ad8dff43c5591f1b4955c747ee0845781050f9298ae9131a", signatures: [{...}], status: "0x1", to: "0x5266b74a8063e08e603bfbfc1ede4d71b8245dcd", transactionHash: "0x1dbf53304c2ab7fbfefa339c0126ce4fea22fc6c18d13d4ab121aaf57ba9dd57", transactionIndex: "0x1", type: "TxTypeFeeDelegatedSmartContractExecution", typeInt: 49, value: "0x0" }], transactionsRoot: "0xccfd15453eeafdaf44f4ffde9ed04521a3522347d451bc655409dabd4c001736", voteData: "0x" } ```
blukat29 commented 9 months ago
  1. More output fields in debug_traceTransaction https://github.com/klaytn/klaytn/pull/2090 a. .structLogs[].computation and .structLogs[].computationCost fields added
Details ``` debug.traceTransaction('0x93f9bf8d560a9477ef780d29586e73718c3bc7b335e7b9cab982f5c66c36836d') ``` ``` { failed: false, gas: 28110, returnValue: "", structLogs: [{ computation: 149999880, computationCost: 120, depth: 1, gas: 6710, gasCost: 3, memory: [], op: "PUSH1", pc: 0, stack: [], storage: {} }, { computation: 149999760, computationCost: 120, depth: 1, gas: 6707, gasCost: 3, memory: [], op: "PUSH1", pc: 2, stack: ["0000000000000000000000000000000000000000000000000000000000000080"], storage: {} }, { ... }, { computation: 149965613, computationCost: 0, depth: 1, gas: 0, gasCost: 0, memory: ["0000000000000000000000000000000000000000000000000000000000000000", "0000000000000000000000000000000000000000000000000000000000000000", "0000000000000000000000000000000000000000000000000000000000000080", "0000000000000000000000000000000000000000000000000000000000000000", "0000000000000000000000000000000000000000000000000000000000000002"], op: "STOP", pc: 176, stack: ["00000000000000000000000000000000000000000000000000000000d09de08a"], storage: { 0000000000000000000000000000000000000000000000000000000000000000: "0000000000000000000000000000000000000000000000000000000000000002" } }] } ```
kjeom commented 8 months ago