Confimration

0 votes
when i decode transaction , it shows "confirmation" field.

What exactly does that mean?
asked Mar 17, 2016 by anonymous
Which API are you calling and can you post the output as an example?

1 Answer

+2 votes

This field is of type long. It means this transaction is part of a block and after that block, there are blocks added. The number of blocks added after the transaction block is the value specified in the confirmations. From Block Chain perspective and security analysis, the more number of confirmations brings in more confidence to the transaction in terms of acceptance by business applications. If this transaction is to be changed by some one, than all the confirmed blocks are also needed to recomputed. 

The below command to decode a transaction should provide the confirmations field for example:

multichain-cli chain2 getrawtransaction f79c2ff75665f714c25569469bb3c841a5d188f916e687973320878c2a4103f4 1

Sample Response:

{

  • "txid":"f79c2ff75665f714c25569469bb3c841a5d188f916e687973320878c2a4103f4",
  • "version":1,
  • "locktime":0,
  • "vin":[
    1. {
      • "txid":"bfb36b9bc7a5642df8f5ec8ae508ee53d1e2d4ff62b3b87242dc20fe613de926",
      • "vout":2,
      •  
      • "sequence":4294967295
      }
    ],
  • "vout":[
    1.  
    2. {
      • "value":0.00000000,
      • "n":1,
      • "scriptPubKey":{
        • "asm":"OP_RETURN ff0181c1ff0d81bddf3010375349474d4140474d41494c2e434f4ddf310a39393030353839323730df32054d4f484954df334065333038636164356630326132393664303066326236636262393164613939316337343839316532393730316537383132383536313538343035653763356136df3426315831694d623274344573726e545270776d627176356f58465835436d4d7077366261745563df35263135414e4c6674745a785a3744416e54616970576871786b7842556543394e686d6e61657454",
        • "hex":"6a4cc5ff0181c1ff0d81bddf3010375349474d4140474d41494c2e434f4ddf310a39393030353839323730df32054d4f484954df334065333038636164356630326132393664303066326236636262393164613939316337343839316532393730316537383132383536313538343035653763356136df3426315831694d623274344573726e545270776d627176356f58465835436d4d7077366261745563df35263135414e4c6674745a785a3744416e54616970576871786b7842556543394e686d6e61657454",
        • "type":"nulldata"
        },
      • "assets":[
          ],
        1. "permissions":[
            ]
          },
        2. {
          • "value":0.00000000,
          • "n":2,
          • "scriptPubKey":{
            • "asm":"OP_DUP OP_HASH160 d0901c8468ad2a70cd4fd4249475e29e9e5058c9 OP_EQUALVERIFY OP_CHECKSIG",
            • "hex":"76a914d0901c8468ad2a70cd4fd4249475e29e9e5058c988ac",
            • "reqSigs":1,
            • "type":"pubkeyhash",
            • "addresses":[
              1. "1VBvMD3XLCuhZBHKVXmw5qDmznbtiJ5yWnCGEW"
              ]
            },
          • "assets":[
              ],
            1. "permissions":[
                ]
              }
            ],
          • "data":[
            1. "ff0181c1ff0d81bddf3010375349474d4140474d41494c2e434f4ddf310a39393030353839323730df32054d4f484954df334065333038636164356630326132393664303066326236636262393164613939316337343839316532393730316537383132383536313538343035653763356136df3426315831694d623274344573726e545270776d627176356f58465835436d4d7077366261745563df35263135414e4c6674745a785a3744416e54616970576871786b7842556543394e686d6e61657454"
            ],
          • "blockhash":"0000029d4d36eb7b5b01415d0a280164218389def8210ec430393deeb4f54845",
          • "confirmations":29,
          • "time":1460200534,
          • "blocktime":1460200534

          }

           

          answered Apr 9, 2016 by 7sigma
          ...