OmniLayer / omniexplorer

Block Explorer for Omni Protocol
Other
51 stars 51 forks source link

btc wallet balance is always zero #317

Closed playniuniu closed 5 years ago

playniuniu commented 5 years ago

The omniexplore btc address balance is always zero

for example: https://omniexplorer.info/search/14b3FaPkBfojRvPE6A21DCyfYnymsRG4Jo

but it has btc balance

achamely commented 5 years ago

BTC balances are provided from blockchain lookups from your local machine and as far as we can see should be loading properly

image

If you are having issues with the btc balance please check the page load to see if you are being blocked from accessing https://blockchain.info/balance?cors=true&active=14b3FaPkBfojRvPE6A21DCyfYnymsRG4Jo and let us know?

playniuniu commented 5 years ago

I can see the data from blockchain.info, but cannot see the data from omniexplore

截屏2019-10-15下午9 35 17 截屏2019-10-15下午9 36 33
achamely commented 5 years ago

Ahh ok i see the issue now. Seems the search page does not trigger the blockchain url balance lookup. If you click on the link that says 'click here for full address details' it should populate the balance . I'll add a tasks to fix the search page balance lookup

playniuniu commented 5 years ago

Thanks so much

There is another problem, your https://api.omniwallet.org/v2/address/addr/ is also zero for btc, it can only return usdt value

achamely commented 5 years ago

@playniuniu btc balances are no longer able to be provided by the omni api, they have to be looked up using other external blockchain apis. A placeholder of the btc token information is included in the response but the actual balance is retrieved locally by the users web browser when viewing the site.