bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

Missing Details in Txs + Bug

Open Droppix opened this issue 5 years ago • 1 comments

Hi,

1/ I think there are a few details missing from the transaction response:

https://api.bitcore.io/api/BCH/testnet/address/xxx/txs

Missing details

  • Inputs / Outputs (vin/vout) -> Cf: Need detect sent or received
  • Date of transaction (time)
  • Fee value

Currently I need to call another api,

https://api.bitcore.io/api/BCH/testnet/tx/xxxx/coins

which makes the response time very slow (and not necessary...), because if I have 10 transactions for one address, I have to call the api 10 times, and often we have more than one address...

It would still be better to optimize... no?

2/ In the api https://api.bitcore.io/api/BCH/testnet/tx/59e337031b97bd756d5b0f7a67382b968bf2b4fa5dfd21982616bc89dae26fa3/coins in the array "outputs", sometimes the field "address" contain "false" as value and not address

is that intentional?

Droppix avatar Jun 19 '20 08:06 Droppix

2/ In the api https://api.bitcore.io/api/BCH/testnet/tx/59e337031b97bd756d5b0f7a67382b968bf2b4fa5dfd21982616bc89dae26fa3/coins in the array "outputs", sometimes the field "address" contain "false" as value and not address

is that intentional?

I think this is intentional. In the code I see a reference to address === 'false' and there is an example in the documentation (though not explicitly mentioned).

bplunkert avatar Nov 23 '22 21:11 bplunkert