-
-
Notifications
You must be signed in to change notification settings - Fork 700
Open
Description
hi,
i use multiple indexers for BCH network and i came across a problem that i was able to reproduce on all of them.
i wrote a basic script that fetches a block with GET /api/v2/block/<block height|block hash>
and then GET /api/v2/tx/<txid>
for every transaction. it seems like for CashToken UTXOs it fetches wrong info with /tx
endpoint if i am fetching it for the first time. for vout
field, they normally have addresses
field as empty array and isAddress
is false. however following is the first fetch, which has wrong fields:
"vout": [
{
"value": "1000",
"n": 0,
"spent": true,
"hex": "76a914b9bfd847c28e63c17c051f655d4dd451508dcd8388ac",
"addresses": [
"bitcoincash:qzumlkz8c28x8stuq50k2h2d63g4prwdsvwrv2wflm"
],
"isAddress": true
},
{
"value": "1000",
"n": 1,
"spent": true,
"hex": "76a9142aae3185306637a7a6dac1f33de43b7547a38c9788ac",
"addresses": [
"bitcoincash:qq42uvv9xpnr0faxmtqlx00y8d650guvjukavskl27"
],
"isAddress": true
},
{
"value": "333728",
"n": 2,
"spent": true,
"hex": "76a9142aae3185306637a7a6dac1f33de43b7547a38c9788ac",
"addresses": [
"bitcoincash:qq42uvv9xpnr0faxmtqlx00y8d650guvjukavskl27"
],
"isAddress": true
}
]
while following is the second fetch:
[
{
"value": "1000",
"n": 0,
"spent": true,
"hex": "ef20e04a6e267c31f999f9cf624929b98df5adaad73bda349424eec7ebc441123910fda40176a914b9bfd847c28e63c17c051f655d4dd451508dcd8388ac",
"addresses": [],
"isAddress": false
},
{
"value": "1000",
"n": 1,
"spent": true,
"hex": "ef20e04a6e267c31f999f9cf624929b98df5adaad73bda349424eec7ebc441123910fe2f43010076a9142aae3185306637a7a6dac1f33de43b7547a38c9788ac",
"addresses": [],
"isAddress": false
},
{
"value": "333728",
"n": 2,
"spent": true,
"hex": "76a9142aae3185306637a7a6dac1f33de43b7547a38c9788ac",
"addresses": [
"bitcoincash:qq42uvv9xpnr0faxmtqlx00y8d650guvjukavskl27"
],
"isAddress": true
}
]
i was able to find this explorer that shows BCH token transactions, you can use it: https://explorer.salemkode.com/token/b38a33f750f84c5c169a6f23cb873e6e79605021585d4f3408789689ed87f366
Metadata
Metadata
Assignees
Labels
No labels