rPman (OP)
Legendary
Offline
Activity: 1120
Merit: 1069
|
|
May 09, 2013, 02:42:25 PM |
|
Обрабатываю транзакцию с помощью RPC офф клиента bitcoin. Использую следующие методы: getblockhash номер_блока -> хеш_блока getblock хеш_блока -> список_транзакций, txid одна из них getrawtransaction txid -> данные_транзакции decoderawtransaction данные_транзакции -> json_данные_транзакции Блок: { "hash" : "000000000000012cfb19f5662707816e122ad60dd9b1cd646c6c9899be2c9667", "confirmations" : 2657, "size" : 56957, "height" : 230000, "version" : 2, "merkleroot" : "b34a9781c9433889730cf5fa79e17cac9c3f1af83cc33674e3bb76be25ed7ff2", "tx" : [ "90743aad855880e517270550d2a881627d84db5265142fd1e7fb7add38b08be9", "7cc0ff7d25338f3c2754ef23d278b17851fde79be0db4fe1c447108aec1f7c36", "124749e6e2e05421c77207ba77be1cab6440e0b5707dae898968ef1282084761", "9a97cf5f681fd3a5a589781c491e2bec94fb054a4cbf7ac1d2fc030a290c6ff1", "287d49a84bef4eeb087d6288b3cc63543243bb81dd614be8f0d7c51b1598deae", "023cb434e00b0f2dabb5a33e7a6f04e3249f015795698ea3acb7eb430b0761ab", "73d49b86c765f23ca2211fa05cf0abb2489c1b5e0af28bd6ba23921557573b5f", "dbd9d5817648cd6726ce24b63b1bae35efa341f48dfe6cd924e16eab618036c5", "4a5b568033e357e3ef1bb1bfd089b828308e6613b39c30c025e2a608aeabf48e", "215368429a448df040366757492bf5eae3bf2a2df30d06b95adebc6158c658b4", "35e6072c650034d274a190e53c2b9a385925d6afd305467473ccfd1f05bc7758", "d0356324b9b5e49d0f774003227e4aa167cdb4e065bd291d811634a266963e84", "d000da225c4609f95ca8f3f62756b0e5595ba4dc849bbf5e69ee0b5ca3e98fc6", "8e26e7654ce3c43e6825aff2241d582848d746f6c91fad57eed37f9d39c70817", "780731ada8334bec704b63de72d89cec415b6999009e61a2e400e5724dc86f84", "aa1644be7e4df325892a636dbc26b7ccee117d571eb6fee583c57d6d48b276f3", "2e88668b6d3d0c93f6535a3f16c42d8d6b65dccf354fc7e6e05391f642c2fbbc", "ba944c22e4d55219e758164911c262b2f46cacb00c6efcef8f38025a7fcea43b", "ad25f9d61a8c9f0e6b4c110bef457545e7b9a4d6d152f89454ed927fef3db800", "1d605ba58272241193f47e9c612f14a37bf62e1a861ff17cb3a779b66b8453c7", "c1e8a1c802e91e4d883fd9ced50f36ecc257fc6c00e47708a5e06ecf2c73c238", "462e3a723c9d07a58ebbfaeb52cc410dcd97620e9b60f1b4f8e5317d9f5cc2dd", "079604507bf8496d17978734132d4c5ea6aa631feee4da491b431ee91f100831", "3807cce156adca3e5ee6569d354eefbfcc3eafb36140e0ea70246289003f7269", "532e87cb87c28beb804000bd888f54f172036388d59dbc981f9f8114a4fda1c6", "b039ab275991ae1bc8d2b4f0a036dffcf313c029fbd7ba219bb2965a0b6d33c2", "4624f0ea458b3e640ac8ed3192c4b4e6a1aaef7bc77f74eea4d74b6752401f53", "648223a7d3998babc9003da5587f25f729f532b148b10a81efc87135e09aec0b", "c36eef846813cfbd4f6bba5819ffc6be3316553931d8797cf5d7ed64b48cec92", "f0eb91c4644b2fdcd20757507a27b1a60f0f19941884deca868510a46c21d925", "de2246d5e1ab964f3efdd7cf056d58a6bdb0d31dce1866f50c7669fbb37037c8", "637bdaacb9af29c21207b2905fcafc04ba38832d136ad733e89006aa772831e3", "d1dedd43896542c114332e84410e52c4e3c946f80e4b356fa50b6c89127863ec", "a899d008613aa15b33b3cc5130550ee72470d5d34b74623231f395a653cdcf21", "2a6a1323cfbf01929174d4be3f7b4247478f1a76e015e02306aba5209d7fb2af", "7b14c38e9ff27ae5733795169f3b2aee61b07f387c627e15a3c7963132f9c346", "beada1192fe8dc53be14898bc0b454ae737edfba1d67216e8c49b8a549afd51d", "caddb82959bd79c087647687a1fcec346a0f3e22c152042d5c220a89c68be169", "dd431464eec3b0d9ec31fbbec5440651673ce0924042a59054194a7efca28d2f", "efdd1f997a2eb73781061338134bf7bdf81fc9aab0c931e77483d0f59a89836c", "0892f3e6554e9ac358673e71c5d90ae970fdd97c10c2ad0aa70a95e63e473b7a", "592e0fb5ece4d4d4d83ce93db6192780cee4ea733b2bf226debb05e9f8f5a684", "ccd9efb78e66e5656cf23bc6f017323aa17f0fabde92c6b490f421f34390b091", "c1f032c3b323d724ae56c9d31020f80d7ce3d9d8d2da7427e364fbee343f012d", "d4df19053e6f8477c492060e2012297a302fde6e7396bcb8c4167f809715454e", "75f2c2bb3623722a64f39f0484a8eafb79d8ed858f8a8d0201b3b7d359dcd0a6", "0508bfcf46185e22783e3fb1a8199390b09e57445611ebc5b0ed9526b978fa06", "4637521704405f34c8ff7f648e026a25ed1def02c8fbd7d9ccf0b672da66b028", "716d1f377e2fbb1dee20045b357636e8d9353e65f4e00b7d68ac1baeb8b68b4a", "f0ecd6d112d699c8ef97b648b9566cd4d069153c9b7fa0b524b33ae72d515752", "ba7b899daac9ecd94c7bbb82b8c3fdfed06e9d0dc8c00740dc9787d300a8aede", "c4a338c57db52267e2c8ae55f3b25f8d003f5ad9b8e2248833593e7e1b20994f", "40f9332307b2c50aef676cc4b3d37ad35c2d3937907c0d4b7fc534c893fd4cc2", "fa2a12dfe185142cbaa26efc375f82699442721e8ff82d3b9db269d2f25500b7", "8b1cceeadd794e6b88e033a86d49b0664e48a8c61dc7ac7a58dcee755fdfe609", "2726a586f10a5b83fc8923fc2318f712f0e7962d40f924fb3488e97828c3f45b", "18e9822ef926e69ea00c3465df7ed747f4199107ad2d772ad2ee28f099c67e5c", "9e9879ba770d017b2695fa659cd4f35785a794894c3497b41ff8223651c98ff7", "fa8396d6a2292647650fd0d208dccb60384c3cbbce7c3f0fecd3698dd8cb0922", "170f59e78e8af3660e539bb50d012f9376c021f0968ff59d49e99bee8be80ed8", "61a696a1611c6b474f8e1015407ac543a6912b8eb7d39b1e35f336e5947da505", "2b0d22e8de0af2b788a8f9463381b73f09a9c329a603cd65d5925362dd889841", "ca50a10608262e925355b7c26e7c80fe5a83966ff725c53c3df0d9aceb0b4b2a", "db82b62c77bb392061ba382a4fc22987376f6dda138771019fc9c49fa3c2674c", "abcf760c98edcfffef5abc1d03d9a12d807f636f2987ca442bd3d335b2c5216d", "f4548ec7fe7348420c17ac574a107cfb806b32e210e52be59dfe5c90de1c8699", "8825c7def9ce8d5e83aaee8ae4bb48e7f5c494c6ae58f659b50885a2361ba3b9", "5ced72a142ff742ee48d53774252979bfbc1e3ebcaee273608f0823895bfa616", "1a51260e92c5c00e72d95feafefc5c12e8c6fdd6513bed2d468d8c8d7338e777", "3785dc836713eb3357964d441c39b0ff413d5ddfc8a49041ed796d1ccf23f158", "1f8b282e4ee46c5fb41f2a2037c1ff067ee0fbb4725d898f0677e9298f745c98", "d463c4f48d6082dfce7269e3c8fdffebf304a425fb3ddd54ec4de153c9d218a8", "0cc9537d3e184d63eedb9c381bf57ccd26e0f862916d2d783fc3c28d88e8fd2f", "0478189c3bf8e43a52e5a86ff354bc020d420a54677ce7c027c8b57054662f33", "e2c35d57c8c454e4c2ee61ac4bc3069f85494eaa41f9766d8f29dc7a359212ad", "75020a928372e286d14a8306c1e5a97348449e2835b6361a1cd1a6a5710939d3", "36862849f31cdece42faf29ecbf4313645803f745d539d4d978b7630f139e31d", "8414e1543eb3c7e805e1d8cc8fa05ddc8a805723e89c759ab37731461c75e8f4", "7d56ec594c7807c4e09ed8d18926599971f26dce65df6f01a150dd059ba36c95", "57f9bdb819503e73f2a42476115766845ab7cee0598878a25c7918b9f30b39e5", "1c4724b8f1f59e0bd05810229aa468d41566c13ef383621aa16ac8432f1c3fc6", "aea4ff75c19bc2c26ee042d644aa4f84283781277da9d6187205993152f116cd", "1da67eccff06913245ac890070bca09ca982ee6998d0ef0e8e3b0096f9bc1aaf", "024df9cc144de3948a2c174b9da1af15f645f84d5543a9c8b0b2f6e676278430", "ad1a9727f712a6f5f4b01ef2082776f5ca95cd5e78d01561ae7efc14b459a1c1", "36ca9e90b20fb2dcf6783200ffb4f93ec8aac07faf6cf210f43f7742b081945d", "399efb6fc34cb9d6f101bf55f587047734c03c7c4971185d0a62bf0a3baa2cb7", "d180c3d9279ee348c0a38e11d076aee34bd6ce142235f3a237dca9ada553edc4", "9a9600713c12b7cb65302c2617f5ace910c0d8044ef4a043e38db87af3c516f0", "025a3d068c2206037f47f9688e7b43b9cc6283f9f31c2c8a1cc4a0aa582189c6", "88e64220ff92e3289606f63ca11fae950feec20932a99163e1951b18b1dd2d1d", "fa4d138e6b850c103cd5dd223ec6c1f026c764c358f4164dea2729a44970fbe9", "0f90fda667917dcc1c1ba2da5ced8e455c73baabff31c936bf60af831da135c5", "a8b8242e88d5a19e3fe1a99864c950bf739c6cb589ac2eed53b294c595d1390a", "2d5a07471469c72be0865ad6af3df9857d5d8bbc73ff838ef05f206e43cdcf5c", "1394b0ff66831446600e191c0c1cfef258a6077872cd1e36552bba2f4a556119", "470733910ee57a6efffbdfc94767b93670a6302ec2f11bb59b9b54c4db2f2387", "43cd76f9f6c3e27943c014d6f2bf80e38090ee4ea2390a639ee81518babe4dea", "4feeb41b4d0ef4b9fecdd446b468ce9b2d94bf742f177b502c07d369cea6ab40", "f23654cb6e71476ad8c42bef0ae0002fafcd9836c0f8f650cb6c226f0942860c", "dbdd571eaec0602fa68fc3e8ba09cb26319f235a9a3570aeb2ae8ca5c0eda27e", "0eb1c235739aea84b70c79c8a2074be7c4dc5459dbef959b3826015fb3b377eb", "e2142084cac1019e94ae767313febc77485058d1158b01076d91254b6c15a968", "7a52e61d50457c7378cebd1eff83b2f55637fe97abe628d617b707cc66860c77", "4eded4269e7bf46fb59046a5c1acfd0e39d571e3a30330b5b3886b154aa0c6cb", "ea6978276c5c4143e57782cf6edb164b2a97805d740ca2d75c198f5df559e04c", "6b2693ce4bd41d4fff22d5b5ab0d1aa6d8b6521304749e54106ce9aa63da850c", "681cc1fe10160f718c5f16a8f53c253609d2de73817da85f6bc0d1e0d1b9635f", "76c0da9228a075d9d04bb080cf5c577ea5bc7779d0c1e9ad944e9ad54aa34516", "270d34f1e28397a2e2c84bbb5ee43250490c647b66a21a960a5aec383de93875", "ee091377f1ca89a75cecf45fd09671fa178f670bccd74ca88a7b8ff9f36d32a7", "7c5105933f535c4015e56e3c636ae98ed2e39ebac65714f7545c0ab13fe2c474", "c02d51fdc12ec921a45e826307d50d0b8cebdfd40fe87d16e7c8fe7c7c96f1e7", "49cdfe4335fea1e34ef2cec39c6e81245106df6a4212a9e9051429c0d0b4b89e", "c486f2e5ea6033d19841350d018c50dd61f7f4ec66279095b7113be9391606d7", "ef4152fb4e93d824fff15f34bc9501a0929013f87e14093eccac8b223a532efb", "9ac98c0d47e6e27ff600b672fb6841113c29febd2b2860a324060b98113bdcb2", "1265edbb80b5ce7715ebf0aba7712b027945d276a1dc0b99ef02a5987fef945b", "71185d18a2ac821e2bc0fe948d9979f3b4528e91bdbe8a2e5416a62235ae98f0", "2c92cb2ba95f86efb9f579e98e4a2f5a4e2686e578da2d0af11bf9ce7cf1614c", "da083cd4616fdbe1a1dda9bf0ced545556584c75e4a5a6c54db43f1e59e87697", "deb133a3cbe294777c83a78cb8287102ea3bc7826a9003101a425a7de9631de5", "fd36cd366ca4e386bedd490b97c083fb310c272484e0b20d8d09d3cf0b16b09e", "bb924bfc13c97650122db6abf83e16b909617dd7dc4256381f1f12c3b12b5cb9", "25e7d0dedf7fa44fffa61eba3b5a558b2107facd152e42f798f1c62a7cf7ab45", "53fa82d68f131f31d09d1022d13932480dbfb6feaf618d1d2c0ffdc652556eed", "cc9e99a432597affb0ce00f3c92d6ef9acf95bdc3579872067046a189a51ea52", "7f573627ddca5f353a5ad22cfc6074abf20106e8a748ff38ffa54860db5cf57d", "48b0d180814879cc26e492388013cf9a550ca898fe84c9c208a868fade0ddae8", "97af242b8ce4758e1d4a0553d99e7bb0142668dd8fdb926f38219dd4aa7d4422", "945d88acf9f87d90dc1af23ffba9166d147d5ee7fc6a1c88f790014c3cd31100", "91970f5cf2a14eea4963906a232aefec3d699932fc351c8be30b110bb301e82b", "9f65d3fddeeb8b8faad79ef4ffefebbd543d05a00c2f6b72243c0861ee3bda2a", "7e43d78b59865f22d6d484d654be83d07ba886cad7fcadf4a8ed115af8b7e381", "874e88ede0ffaa86c0ae10dc6fcb5b2a0e763fcc7c3b3e2164b8cbb54eaee5c3", "06e605a86570333810b57ca69481621169f4aaa9850b67d4813f759ce9055275", "0d3f79d72c2d5d8a70bfa91ce93329636e6a10d3522e90d3f1a75b4f9cee00cf", "f6e7c0ed27f27a5c29be1ae67174ad8261d866bc36bd7a313c03527eebadee42", "60b469059a358d8edc621a067e8805e1d28acf611a7fc9a6290400583dc03024", "8f1758dbdc5f739199a33302bc344ef7ddb88d3a47a769f9772d7e70f2090a1e", "456dbd6f58a914dbe25e750f191c8bf19f44378135ecab94dfb8a02f54329caf", "1541181ce6ae39f9133db48be2e4ddcdfd719f048ab2914c037b3cee9397995e", "134e7f2ba5917eb96d3de9720df80c4644aff09c71eaa14dae1f4675fc64cbbf", "136444dc0695f7709f99e51984961710a2e6e5b5808dcff0031f0820069b8ccb", "7aa481646fd9a6e92bad655e0ecec4f815fdd30576502941dc39d978ac04227a", "a8d7fbfa07dcbfe16081f0fa686a898ab9dc67103f94a06c974d72260934f586", "68527cec334f6f6475d8e24c48a04f340683f58b715dc83475892718851d292b", "6d592ba805d32e7284ea26840be92251fc97a15f657ebcc985f3d89ec0d569e9", "65d336cc38f990c63784ce4cf48dba98630fab15059dddd2c133af36fb505188", "5fb12da4c9b7938ffa23b202cff54c2c56575c8c06a085ef21053ff6ee8d9290" ], "time" : 1365273861, "nonce" : 1029938007, "bits" : "1a022fbe", "difficulty" : 7672999.92016414, "previousblockhash" : "000000000000002d623039b89d627f4320a6531fd3214add9d6c6a847db9885a", "nextblockhash" : "0000000000000200641676d2831f4ce9f0f900d0a60d72df7b78d09dbe91e777" }
Транзакция: { "txid" : "6d592ba805d32e7284ea26840be92251fc97a15f657ebcc985f3d89ec0d569e9", "version" : 1, "locktime" : 0, "vin" : [ { "txid" : "68527cec334f6f6475d8e24c48a04f340683f58b715dc83475892718851d292b", "vout" : 0, "scriptSig" : { "asm" : "304402204f194a2594bee51ecd3a1e0c110292fe9e195355f6d5f59bbdfc28ded6d629a70220036a5dd377639dd94a8165fbbba697a0c6a1ddc0e9269b2421d45c38d04f0a7901 04db7adff0cd926475a6bef44552fae1d4b9940bf522157478aa87cbe056db5400ca41d484be28a461ed815897b80f77a155e982590f04e9a95dd09ea696ff81f6", "hex" : "47304402204f194a2594bee51ecd3a1e0c110292fe9e195355f6d5f59bbdfc28ded6d629a70220036a5dd377639dd94a8165fbbba697a0c6a1ddc0e9269b2421d45c38d04f0a79014104db7adff0cd926475a6bef44552fae1d4b9940bf522157478aa87cbe056db5400ca41d484be28a461ed815897b80f77a155e982590f04e9a95dd09ea696ff81f6" }, "sequence" : 4294967295 }, { "txid" : "ff0d86972c7d268701232d7b7807107cff11d3badc84afc0d7aea59e8549c168", "vout" : 1, "scriptSig" : { "asm" : "3044022005729f6d0b35d273fab9371546350d91fbb509f5f39f9ea6c618d033c6b969b5022019d94ace6b3649191581332512f3fd8746ef190e4d8d3d16f54f204caee47f3e01 0478cad92a92f6faddfa88e14549f9fd1a1ef7e8f99cbd74a0f909e41ee7baa04a7cfc5c648f7f49d37d973fc4cd75f43c4f043bd84e9b7581b4209e204e7b93b2", "hex" : "473044022005729f6d0b35d273fab9371546350d91fbb509f5f39f9ea6c618d033c6b969b5022019d94ace6b3649191581332512f3fd8746ef190e4d8d3d16f54f204caee47f3e01410478cad92a92f6faddfa88e14549f9fd1a1ef7e8f99cbd74a0f909e41ee7baa04a7cfc5c648f7f49d37d973fc4cd75f43c4f043bd84e9b7581b4209e204e7b93b2" }, "sequence" : 4294967295 } ], "vout" : [ { "value" : 5.00000000, "n" : 0, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 a951762a315b7b552e910e76698b78d6c5ca0b2b OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914a951762a315b7b552e910e76698b78d6c5ca0b2b88ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "1GSGnUDWv95CyrxGCiAYsVm2gjA5oDTT4t" ] } }, { "value" : 0.03289692, "n" : 1, "scriptPubKey" : { "asm" : "OP_DUP OP_HASH160 e55933754f11eb2330ec64bd351f2b84cffb173f OP_EQUALVERIFY OP_CHECKSIG", "hex" : "76a914e55933754f11eb2330ec64bd351f2b84cffb173f88ac", "reqSigs" : 1, "type" : "pubkeyhash", "addresses" : [ "1MugbizE9tcrTVjwN1hoFgk8QAhL8jg8KA" ] } } ] } Вопрос, как мне определить время транзакции,.. поле time из блока говорит, когда транзакция была собрана, но как определить время создания самой транзакции. blockchain.info как то это определяет: https://blockchain.info/tx/6d592ba805d32e7284ea26840be92251fc97a15f657ebcc985f3d89ec0d569e9вот его json: http://blockchain.info/rawtx/6d592ba805d32e7284ea26840be92251fc97a15f657ebcc985f3d89ec0d569e9{ "block_height": 230000, "time": 1365273854, "inputs": [{ "prev_out": { "n": 0, "value": 500000000, "addr": "1BzQp1HbTFHV7bmVQ7ffp1EMs6sr78rV3u", "tx_index": 65128474, "type": 0 } }, { "prev_out": { "n": 1, "value": 3339692, "addr": "19btxXun9T1nhi93MRafa4LHc32GLBELAw", "tx_index": 65083195, "type": 0 } } ], "vout_sz": 2, "relayed_by": "82.114.105.251", "hash": "6d592ba805d32e7284ea26840be92251fc97a15f657ebcc985f3d89ec0d569e9", "vin_sz": 2, "tx_index": 65128677, "ver": 1, "out": [{ "n": 0, "value": 500000000, "addr": "1GSGnUDWv95CyrxGCiAYsVm2gjA5oDTT4t", "tx_index": 65128677, "type": 0 }, { "n": 1, "value": 3289692, "addr": "1MugbizE9tcrTVjwN1hoFgk8QAhL8jg8KA", "tx_index": 65128677, "type": 0 } ], "size": 436 } для транзакции: "time": 1365273854, для блока "time" : 1365273861 - разница в 7 секунд. Я так понимаю, нужны другие инструменты для анализа или изменение кода bitcoind?
|