package ethclient import ( "encoding/json" "fmt" "math/big" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" ) func getTestBlockHeader() (*big.Int, common.Hash, *types.Header) { /* Response from command eth_getBlockByHash */ const blockJSON = `{"baseFeePerGas":"0x59309590","blobGasUsed":"0x0","difficulty":"0x0","excessBlobGas":"0xc0000","extraData":"0x546974616e2028746974616e6275696c6465722e78797a29","gasLimit":"0x1c9c380","gasUsed":"0xd5cb1c","hash":"0x89f810428b7dd314f70af66e6564402a6dbf8f437a120bcb7ede86d9f2bebca2","logsBloom":"0x07e51d29c48a4140f9116c149d21d143910232990c25d529068d5156dc9b816204fbe50aa86c8d31de96f480088ec735dba1d93a9ffe2b3379943246533e62d7bb7398cc90f89eab7c234109a461f07ab15f771009645a931869741d80ad6b6d8a480c2816754ba4c31e0c96927a7d5f6d25242380182e027bd2139f537b1065a0243ed92d883bed38d9a32d23fe2a0d7835dff5e18d36bbd0a528cb80be692f03ea319999ee6dfcbac511c2cc829fed26a544a664c59b5994e80318fa209bffcf82080747534f704190ca2178638fbcc0ea0cce97350194834178676861e087353d255af118c6e80907898e9464289c4d2cb20577cd98c69ad150665801168b","miner":"0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97","mixHash":"0x0f55c89e7a4d66da6e7142dee0984b9a52845372490467ab12805bfb28f7b12f","nonce":"0x0000000000000000","number":"0x13ae2e2","parentBeaconBlockRoot":"0x74964cbfb50e903d24beeacc874c7f690cd0882d6800324fec14838c0318fbfc","parentHash":"0x7b1b5f3b3bffd5c1edfaf7acc79b703127bc2f12e35eddbc2b7e20e8b7835157","receiptsRoot":"0xfd2851cf1339b69cf952af6b5af702a2de08ebdcba8dcbcef57f6f6def87c851","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0xf33e","stateRoot":"0x0956b0b590f412d3cbc3f0143fb92940c6a3381ddfac8d1aeb2520c49eb2d27c","timestamp":"0x66d0ce8f","totalDifficulty":"0xc70d815d562d3cfa955","transactions":["0xa2ed591a06b0953e6e5f9b46aaed6badad4b47ea76dcffd9f74b8516aaed3280","0x808f0d0bbf91d05262a331832699c3f58020a620b16e1c683dbe12470682ebcd","0x099da59611b6997dca3e66a1b3d205828d2f72daf46abccbf5832cbcb0e225a4","0x8c41206d5c819bb2dd049b58d0ebe3785f11324d101d15357d31af6ee30cc38c","0x07032cfdc4859795fdd99f35017ef88908c0f9886f5098535f2fc3a4431bb2cf","0x2ad7db0e90380ab95b68a02d964e3c6ac233017b6eb91141f24d52c11f006e14","0xa9a08330b89dbe4c153c4fb1fd72b0f6b7cf41b0b6bdd2dbd755ef54e6cf7efe","0x186a5de3e3b72e4d5bfd02df4d300cf8aa85748d8c6a389de132560788757e08","0x862cac29777179b4ef5c0172221336082c2760c0ae35a8fa17de42ed1b6e0381","0x58ef687afc0a40754238f329b55f52e4078198b3de7f462b60aadb9b8a51a433","0xc2d5ab44609caecde64db9e21e2333aa3de3c3803c5624dae2aa94bb2ef3484f","0xf09f39420320cd423f4aac2c248f1c0eb9c2a8b023892c57b831c86c4588ce4a","0x2e07f4e4431a7cef3205b0f2ff93eb4e9a601030b14268b8c4a48d95f515dc40","0x5e4cc65e98fd658c6228445f8a13fa1c66591bc060b7ebe65ef7edc01a5fdb01","0xaccb9a3ad72d2352e80100c0973e029658a5a9a1250050177f6aebc3a6543346","0x24185265d5175ab0580d8d3cef5d73b2cc25e374add97ef3f687c6869bdb3e71","0xbfb55c404106162c12812079b2b61a4e391ec589c7772fcf949cc55b477d214c","0x8ee90e0611da0457e364f0770148154d6e92c35e1129222021e063106aef98ab","0x857c20dba0f9ff2dbcb3434e6ebb7d5e71967a8d138a07ff0c13b395415ecd28","0x9d4c09925d6cccf88134e4513ae5f92663bba63eea2ada22c96789eaeaa133e8","0xd6b9be2fa773ab2fbbcf15e25ce61056e986b4b9e37966a6056f004c4df781ef","0x129cd35a1d00a7a38cca236e3a72514cb68a9a55b23adda277d559a3274bb999","0x27cbcf6bbc9217e4ac15d1b900e5981e5230dfddac59193ae9076156304bc213","0x0951a0cab06ed088248b73d672018b66732ca060b825ac692489fb7878237f6e","0x669494e9e5285edaca54b53addc0a277330ed40151b0a07715ffcd4aed3954c7","0x8f18744f1e2faddaa393fbea175a3eec8de90c9100081b9eceef53f9949cc59b","0x4bf748c5b0c01ea6a5ff4f1ef4c38e88426ebfc00a99cbc3cc6d2be7ff4d8ff1","0x1f1d26fd1a3c7d269bda2b7dfc2d717eab7cc9616299124e2e048a6e4e73c57e","0xb9145bdad50cb5a15cfea9fc8541027bd4d5f4abfa32b2393a593fde7d3351b6","0x5c4a01d65be2fb7cb321de3e4a6fc879b11e9d4a8554d59c05eecc55f0b3cb2a","0xe2926d0a406d77f88cd40aa876c67da8571226db7e9656763e595775fc0124f6","0x9d570d8a026a81bd7279e9377e6ad917230c6c7ef9f897083934a8086ded3e69","0x2e6b4691b4ca95b23736037fbd3a0fa9a37131020f10c8cf4d0e04e83b4d6ae5","0xa9787fb5fd8c5de8c62b31c4aceaf0056578a10477cbd7d19db1fb7b9724e582","0x842ac737ae47034f41ce412cb4a01dd35ac59a07e6ab27a0a00e6345d6ef7eac","0xb0ce684235c4b1c824a8aaf6c829a161837dbb1f7d5fdbfa11b90e0f548b7558","0xf4bce10d4a6b91e050bc161c97b951308cefb933485222c4e956cda23dfa93c8","0xbcdc78185fd86c6c731a651aa1a5897bdd2523896f3140bf857e79aca7f95597","0xdb1652eaf0e55ab5c2efc74f8e0fdfa8c067aecd5431c0ad9da56b19a9370d70","0xa2f9a400767653acbb5a6ea87dbf30190a4ba19e22f7244a658c3f4a35f54f7b","0xddc747c6def1b08b6d81adaa8433ea9b1cf4e569113c5f8bef63279dbe888a74","0xdcddfdf2cfb7046a8264cd77522c58f3afc1d22544970378966ec00a6ac9d4f3","0x36123bfaf25edc269d6bfb96b5c06c19be0bb79d1cee771b407c0c8cdd1599d7","0x968f681d2184a4280a99b2ff96cfd1d9c0a1b13476f729c367c3e3a3632efb6e","0xb1a757965e9eff7814151902698b5e12330459752e2484524994ce226d3e30ba","0xd900d4ea28e2ba0b563e7cf9830b0d16ec316e8ad5d13d7a5c0e2f4ebdedf2c3","0xc8c99bdc1711801f257ba5c65457322ba285361ac6a0c37dfa5aa8fb7ea68c0f","0x1558134755df2390cbb542033d8a6de5140e620e4f9e52cfc1e8c30ffc0615fd","0xbc871d97d26e5d22b11dd0e0eb47bac8561b11a8d64716c8b88371e3eb4d65cf","0x978808612a419aa8c8a0896739dad51ba6c16a8d60051a29b4958a74c3857eaa","0xb7c2a166fb9364b61e0b834f90564b1b00fc50bc775c498d49b8e5662ebb8b5c","0x1cae94a8306181c114fc5ba10ee531f5621392ad2457cedd3a989c5123beec3c","0x2250993d6006b5e862de879d11c1d09f072ad4538e89c8242492d8696074d5e2","0x62006d7e772e32f446ad23305447981778a0cc2f20313589218c5c6df42997c5","0x2bcf80b8b02ffa4f38d4917c3dc54a52d7bbc01ffc5d21765f48920692af3551","0x6ddb8489a1582c6b2d3d0ab23d4070779b95107559de63f504b6df25b2575304","0x11df6c31fbdb0e77276fc3f71fa4d742e71cfc1415981d3efc5be17dbe24e365","0x25c76de981c356dd92243eb288eceda34ddb87ba22734d052e3585356038cb9c","0x2a49b85eca53b1837f21faf5126b0d312a0ab2585448a95477f1882bb12086d6","0x4a893439aca755b690763c24f7c7c431e114ba061c3f427a03e357cf878f5129","0x2e53715589bf065b57304420e09fe6e03ba2b77fb574e2a18f7cb04063914b86","0xfcfe6dbf3093072a8f685651ed94a183c4107e2d4d4faf1952706b1a7eed56fb","0xe0c62aec6fd329edcac3afa8877a36b70c62a204a63ace0e47339f8e81679aa5","0xba09a42f3f9f2b89b954b3cbb06bacd383607dd1e4b6231ba7ea9cbfb7cc0e2d","0x5c40b7092d68e974379db9b827caf50d7e88fb6f1888a9b8588408bae26a4d90","0x52ec1213ff396c00deb69b12b08cf976bb2aea8c1cea72d09d1c80b97ef4560d","0x133df75e27d5177aa46e19db922271c606ec65903d19f675edad8cea721af525","0xa7a04822df2e8f2f0b092dbd79a7edb71121bbf431a8b8cde29f45c144caaac9","0x15fba534df610f5fe7661ea9d92dfd01d360bebf8c29725df29ff8086840c488","0x859afd05fa37c894e63148b1278e01d986f013e68a98c57cbe7396f614c132a3","0x761d12b20abaaa849c546aa4c25273fadb4e6efaf1f65ffbffe5533d84a22319","0xd97e3df16004dc6be6ac93547775f0146eecb46899341dfea2654b273a04cfbd","0x58526d1e10bf03ecdec64b1575544e5995748d715491fb919244343a204eb3f5","0x1d67e7eb755c4b5cf9b6b91342e3ba43d275042184f391ea450c3e5df2ef1d73","0xf23b0bcb55120b3b47f8a2a024db4b0bf93022a97f546861289c2ef51814485f","0x2f1af0dd60a56866291facd7316107f05bf3d9cfaf0d81e35f245513c00164e9","0x7a0e847a33619aaf2d3b5db99eb3bfda38ee39cabebb56f156ec862b512a4873","0x745ef9e34a0a896bebdae9d1e4b8ae038e1af67783ae80cacb6eba684cd6ef68","0xa85b02e72908caaa570371c708369729d3728065a2e3ecba10f95290e2f5f701","0x151af00bdd4b88a879a3c0d264b273a92e84d641c158a342fe8b9e163d73d1d0","0x17d9b3626d5fa92a1c24a4e9d7d7c8571d85ef8ef390b12a701f4fe224bd1908","0x9968ab196e995ba65aabe09746e8ac4c6e31b75741febf0d4e6bd5536f2d41b2","0xb0d36692e75dab0b242f93a4efa62ec3ad328191642d5bdfd8ab63f42869d45b","0x164d22861451ef752cb24349bc6e72800e51e8bbd068a501cdf695205b2a8f24","0x4d05f93310aae010cb99e2b6cc1d19f89d4d4873e2fee77047ac192e0b050421","0x61f88ed1fbba8df7a231735f43ab9a3032cb63ee2595be1bf8fd6a3136b5f721","0x8d44beb8e11102b381c5ea711124561d8e457f4e300d3dd2005c231c4831f350","0xf71662792a777c81574750aa110cc4e11e78ec65f2c66d09aaba212a7f95177a","0x180ec205ed5fa83a854f4a4239f169386c6e43d90dd2aed132854da4bbe8b96d","0x4221b4569b35fcb144921cdef55cd9c589fd3cf09f536e5b90a68ee5c7c2c624","0x6f975a75f80f1226fd7ba9b55ec44cad132d98946bd15dbb11d3aac43fa2eb97","0x227728957b0d281e9c876cd3de8896afa50b2353a2d5a2c9201931ca9e7e28a5","0x771a0c9f673ffd091c2f854ceb676f879a1167689d9ad78b0d849048ca74eac0","0x4fcbf501d1b46efca54368fe91a52ab3ed1e03b51efd671452ef61eb0f639e88","0x4778111eaec0c89fc9d6a5deb679ee72805d2788e6647e1b915843d3a6dc104c","0x6048984f8978ed24ad00d93c7cf9f206e3ee56d702bf8bb7a71b4d05ce3476f3","0x548f96acb5823f94035aaadb7e03b22a4ed781354b7a50e42b80249513b202f8","0x75dcbc16e06b096cb1ab08d2e69bf72e67b679e5bcd0b5a6d9a78ad2626d3ce4","0x17b476aaf229a0229dafc5692b1069b8f3539b59a50ba8f4f98238f13c83ae3c","0xcd4c6e663d74f80816a47ab6936f02c5cea7118273ae45cec657da980be7f1ca","0xee24c11eacfb512c7ec6beeccf8f281615db43ff0e0e68d4b2a991e081bb77e6","0xd690ae6bffd35302d2480ba677409204b213addf1fc0227d5d8c16238c72fa58","0x914b34ebb18d106ecd39baa664328d3f7322e323e12f39f4f5214cb64a81c2b2","0x62486ef94ef3fa030adb4beab6cba2b75a2f6b3e6d6f2a65e9c094762c92610f","0x7f74538ed888a67abf166cb8e3f2d094af38a2c95119c5463354a7002f68df06","0x033cc353c00bc19827c47261b1b984b03db2b5df32551e41d0946a85d3d6d54f","0xccd1550fe70c09b339c6cc68febe163b8591707a6ff7fb0a04ad9a1224c45319","0x0b27f9b061b16009efaa26f9409a7bae1959297af727949ab78d599974ca6af2","0x36f340ff7d4742d3f31422257ad4c2461b09d73ba029d292220e2771d3ff0673","0xafef892a6aa36d550cd48ea02baaf98bf305e70137bb7857c66932436504f78d","0xeaad94b1325c49854d2bf0d1dacc34e62a5e8f1c9581c64b2fbe20b6c6371dd9","0xa1f90a12d600c3167571413272b47e439cccf924630d16dd022f2a578732763a","0x4b892b610d2807d2219772041bc2444ad98bb12f429368ccbde213d031311aaa","0x50b719a42d5f52498b71548b474b0367667170d4b2e2b344cd1aa6590659f505","0xd9579a131bc6ede41873e56852381374b27b688acd24fdbadd613bea809a9161","0x5c02019277c92a8b2b5460fd63016bfa42c095f4b695ae558c9e9c00f67ba380","0x25465778949ec2a8b2d4c0f4a9985290a0e0c3226c4c0e67903fe211830c8cf2","0xd7fe60fe9e50f4f059327c1aa22e9e16b00ca36be36ead6f07c3ddca49f91418","0x5437791eced8f31f39b8043be218349427985ca2ebe9d6a22284496b1050aa18","0xf1dcf900b446c1ebc7e810687fac487bfd5bf471f868e4ea2456c55bbc32ca68","0xa4ec5dddd0f15c7ed233d5a1b10bae823ee1399b7c87fe040965476966f0043f","0xc2f285141b4c5a551e36106c923d13fedb60d4dc1ffae1bfd22c192f0a9977ce","0x5d8f512947d67291a016f914459eeaeea6885a1a24feb0038854a2df4fc5c1ed","0x43c186bf3359256ccf424d95eb8a8b6765f2cf3cf62ff4f27dcea613a8fa6014","0xe68b4e1399e683d8e502d58d25639aa604ea5bfc895ae51d29e344816c6fc7e3","0x58680bfb9026275dde4a482427acf9bd25915db4501276ea8035d210b31efc05","0xf2565be217a1d3fb3d50904ba1ffccb334db429860c966bcc8128dfe129da303","0x98bbf8b66311aec05400ac0a5fe808d2f714579b0cbb32d13d823a11df2a75ae","0x419afa26f67c0db58eabad34c61830c65610e0533a057db69e86f0b9d810788d","0xb41e10a00eb326bc2a41ddd3cbe5c741420cc8931c85056090d7528f1cc8f621","0x123cd8cad0a5c64f7d42301140f57c28573d92b5aca42880c41bbe0d6bd93556","0x9b81471dd12558bddec8db3d6aba40810aa8830b8ed8bb7a4dccb550c3d2e122","0x9d595886b591010f1e18a2c4136c34e70160e79da1e29a317b29afc42912a6cf","0xbcadfba127cdf430fa9261aebf2c96e5e376659d0ae951ef10c2425f62c12c06","0x69ffdd21c9225a9e740662a9966ee5142ffe5536c53e6bef6812bbde69706126","0x3bc7b807c787d4c55d6d9e31502f350ca7e8c89cfb2298d02615e145c23adcdd","0x820e6a40475c1043058e431e573660a91971f40f71ca821a896ac9bd6bdae1bb","0xa0f239e2ccc9a0a4035d42bdf76e5c13aed941c48f37ecaea727e7d00eabe130","0x8ede9f088ee82a3d8ccb416f943ac76f0e1a48402a2ffbba92989cc50238653b","0xc83d031514519f230aef85d483bf6cdf6b75b29de512ad74c3fcf8dc9e398545","0xff7e136f25d77e66090b091ea9b59d18b083f154be306737e91dd3fda6934d6b","0x95700eade706e1f815a8c6299fb13ef1aa989e5e4dda213788612f40f8ddbc23","0x414e46d47ceb8dfc78e8ba6c9bbb93345a15bf0dd1bbc5297b3c0c3e79a66ea5","0xdfb7a0e0a12b91f0b49a9aac4d3f7ec3d7bcc7fe71f6efed4f662c55cec3ccb1","0x7624a5790da1f6fbd22e1c5e00212a8b6941708200cf5990604eb6ff386699ac","0x605a379b760cae7e304c5eb1fcea53798b516c6226a2d883b0cdf48c4607155c","0x69f98e531d31fa48a7fa4d66a9ded1ae197b08dd55d8fde31385f455e44a8527","0xfef21eae85b8e6107bcb28e87f7f39d7abf7a3af003290e8c1b27b82f2deedb8","0x7e8d00fe5c52ec7554fee4955832827f065482a7d8f70241af223a8d7d3ba498","0x5d1178838d6335badc7ed6fe6bcce9fcaac4baeca7c560633d94232b792fb94f","0x1a9272a538360a884525938060967dfdd6f86654de58457e2fef9c3baa06fa9c","0xab5bdbbdc3a87af381eeea8ed8bf56f534aed29e65e098107ab04de096cdf49e","0x5a7af3dda0c647b7435b970a8d20efc378f753a71a44a890859e9a234c2f36df","0x7152d67ec9d9f4e3c45a6b41f86795bc2a49de88cb4bdf3382bf6d8e0c6a98b1","0x4140cf6de4d0daf4293e1e8a072948ed7cf9f47a21258139c89e36f9f0324f0c","0xf1a4644f0ca640339a1e925bb5b5c50d3f6169c7011ce71fcc4562a7ce4ecffb","0x6df4b2ca2f0140bb19590b4fdf90ea4ad576f0d10ca51a27be1782be09437220","0x460e0d87d84a0a7d8ae3d98f4f548b264dff17aecd1224dccdad19a97c7a48e0","0x94124bc6294cbb9aece201f3e66249d802be0479b6cb9414d1bf7d1168d59faa","0x360668de37b2481ee3d9817208ef5167a64694c5f3f4a262bbb4fc01c0ca351d","0xaac741e2b1184703d5468f01b97fdc756e61519da37dd1f616c456a1bce4c0db","0x6e7285b7c535c0cc8239ab2a3eaea9e73ccadd414f58d8311917e74bb0a62a54","0x7a650bffa218e24078c2c9a3016dd492204c1b083d32f1be09f4e24823cdada4","0xc446d94f4914f5907b31fe246ead3b8d362bdb61e6387716cd520b7d7dbac1d1","0x4871a083f4a0f282f82dbf78965ab4888b39117b44577ba96c6928e15f49070f","0x4994abef8e04a03ef1140ce2a8a7c509ef9ce134ad9e862d03c539602c14f555","0xee6f86e043158a1a40c7f4fa5f3fd7d5ba615acda2383bb002ed6d26f9ebc109","0x18cae68bcee72317b1a6f5f3c5c4ef542ef25d31c6623c61268085051dd7a287","0xaadf8a7282e5c2119e1179b7fdfd585fe6f66ee66e124a3fc68d4c38efa0056e","0x56bb0de328e4e5ae24ecca333099c957265368c6bc12e07dcdd061c1893a3079","0x3d9c686da6b4696493bb93219a92b49628a282081370adf835436bfae6dbef36","0x859ecf35a58418bf9166d37e19d23d4ec03682013e7a4e6b1cd10a38bfd8f3da","0x1a25d5aaa20fcf0714d2bc8ce143939a72a1ae4731655246a6011efab2c0c774"],"transactionsRoot":"0x86c2812f2f9c57a0b1a526c726a0dd1b9eba6a948fe4fc906c768ccf1385c8d3","uncles":[],"withdrawals":[{"index":"0x36f410b","validatorIndex":"0x178067","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1222cc9"},{"index":"0x36f410c","validatorIndex":"0x178068","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x121dcc5"},{"index":"0x36f410d","validatorIndex":"0x178069","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x12297ba"},{"index":"0x36f410e","validatorIndex":"0x17806a","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x12246bb"},{"index":"0x36f410f","validatorIndex":"0x17806b","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x3b80df9"},{"index":"0x36f4110","validatorIndex":"0x17806c","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1219a58"},{"index":"0x36f4111","validatorIndex":"0x17806d","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1227071"},{"index":"0x36f4112","validatorIndex":"0x17806e","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1225759"},{"index":"0x36f4113","validatorIndex":"0x17806f","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1213b01"},{"index":"0x36f4114","validatorIndex":"0x178070","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1217535"},{"index":"0x36f4115","validatorIndex":"0x178071","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x121dade"},{"index":"0x36f4116","validatorIndex":"0x178072","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x121c1bc"},{"index":"0x36f4117","validatorIndex":"0x178073","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x122261c"},{"index":"0x36f4118","validatorIndex":"0x178074","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x120c647"},{"index":"0x36f4119","validatorIndex":"0x178075","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x3dd24d8"},{"index":"0x36f411a","validatorIndex":"0x178076","address":"0x89d978c4de2dbf340d28389d87cd02f9af6d8bf8","amount":"0x1222a90"}],"withdrawalsRoot":"0xf128302120dad82f9231cb6b0c89ab6c46ec3ce7756f3318b8587e8f32a30355"}` blockNumber, ok := new(big.Int).SetString("13ae2e2", 16) if !ok { panic("could not parse block number") } blockHash := common.HexToHash("0x89f810428b7dd314f70af66e6564402a6dbf8f437a120bcb7ede86d9f2bebca2") blockHeader := &types.Header{} err := json.Unmarshal([]byte(blockJSON), blockHeader) if err != nil { panic(fmt.Sprintf("could not unmarshal block header: %s", err.Error())) } return blockNumber, blockHash, blockHeader }