bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

node.services.bitcoind.getDetailedTransaction isue

Open achakhalyan opened this issue 6 years ago • 0 comments

Hi All, I have use bitcore-node and use following part of code. ``` node.services.bitcoind.getDetailedTransaction(transaction.hash, (err, trx) => { console.log("getDetailedTransaction => ", trx); });


in the response mach fields content **null** or **undefined**. or **NaN**
can You help salve the problem?

`getDetailedTransaction =>  { hex: '0100000001ab603dbf75eaddde598ba98c0f290da547e6b14b0dcb5d264b338971746cf310000000006a473044022023ada312d3c4ae8ff061bfd30bd2395858e8b352acd9cca2688b85aa29b12f2602203db5276c3cbccc3ad96bbb1cdd2546ac59e3ee37d60b36be7eabb77d6353b2ea412103d03aa7714f2b6f3d46d50d4f0bf34f1a5e565b2a9415cfbccb363124c5086ca3ffffffff02e8752b00000000001976a914690de8dbd33f43959ac336e838543323259899c788ac3e0a0000000000001976a91432c3015bf7917f16e751f70e3dfedf4ac337970888ac00000000',
  blockHash: undefined,
  height: -1,
  blockTimestamp: undefined,
  version: 1,
  hash: '78f4c34fce4debcf1d5aa5d16f57957de2971c0a3842da4859abe8928f3a5662',
  locktime: 0,
  inputs: 
   [ { prevTxId: '10f36c747189334b265dcb0d4bb1e647a50d290f8ca98b59deddea75bf3d60ab',
       outputIndex: 0,
       script: '473044022023ada312d3c4ae8ff061bfd30bd2395858e8b352acd9cca2688b85aa29b12f2602203db5276c3cbccc3ad96bbb1cdd2546ac59e3ee37d60b36be7eabb77d6353b2ea412103d03aa7714f2b6f3d46d50d4f0bf34f1a5e565b2a9415cfbccb363124c5086ca3',
       scriptAsm: '3044022023ada312d3c4ae8ff061bfd30bd2395858e8b352acd9cca2688b85aa29b12f2602203db5276c3cbccc3ad96bbb1cdd2546ac59e3ee37d60b36be7eabb77d6353b2ea[ALL|FORKID] 03d03aa7714f2b6f3d46d50d4f0bf34f1a5e565b2a9415cfbccb363124c5086ca3',
       sequence: 4294967295,
       address: null,
       satoshis: null } ],
  inputSatoshis: NaN,
  outputs: 
   [ { satoshis: undefined,
       script: '76a914690de8dbd33f43959ac336e838543323259899c788ac',
       scriptAsm: 'OP_DUP OP_HASH160 690de8dbd33f43959ac336e838543323259899c7 OP_EQUALVERIFY OP_CHECKSIG',
       spentTxId: undefined,
       spentIndex: undefined,
       spentHeight: undefined,
       address: 'bitcoincash:qp5sm6xm6vl589v6cvmwswz5xv3jtxyecu9t5yxknp' },
     { satoshis: undefined,
       script: '76a91432c3015bf7917f16e751f70e3dfedf4ac337970888ac',
       scriptAsm: 'OP_DUP OP_HASH160 32c3015bf7917f16e751f70e3dfedf4ac3379708 OP_EQUALVERIFY OP_CHECKSIG',
       spentTxId: undefined,
       spentIndex: undefined,
       spentHeight: undefined,
       address: 'bitcoincash:qqevxq2m77gh79h828msu007ma9vxduhpqnere0pht' } ],
  outputSatoshis: NaN,
  feeSatoshis: NaN }
`

achakhalyan avatar Apr 27 '18 15:04 achakhalyan