Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with get_unspents() #101

Closed
CryptoSecEd opened this issue Jun 15, 2021 · 5 comments · Fixed by #102
Closed

Errors with get_unspents() #101

CryptoSecEd opened this issue Jun 15, 2021 · 5 comments · Fixed by #102

Comments

@CryptoSecEd
Copy link

I'm getting an error with get_unspents() roughly half the time. The problem seems to be that sometimes the BitcoinDotComAPI is called (which isn't working) and sometimes it's BitcoreAPI (which is). Can the BitcoinDotComAPI.get_unspent() method be removed from NetworkAPI?

@merc1er
Copy link
Member

merc1er commented Jun 15, 2021

What version of BitCash are you running?

@merc1er
Copy link
Member

merc1er commented Jun 15, 2021

BitcoreAPI is actually not working and being removed from the codebase. As for the main API, it is customisable and you can replace it with your own node if you find the public on unreliable (even though it has been reliable for me so far).

@CryptoSecEd
Copy link
Author

I'm using 0.6.3, the latest as far as I can tell. I was getting errors with get_unspent() for both mainnet and testnet yesterday. Testnet uses the trest.bitcoin.com API which is shutting down. I figured out how to call the BitcoreAPI.get_unspent() directly. Mainnet uses rest1.biggestfan.net which should be fine? I'm not getting any errors today, so I can close the issue.

What's wrong with BitcoreAPI? I'm not having any problems with it.

My own node would be nice. I don't think my university will pay for/manage it, unfortunately.

@merc1er
Copy link
Member

merc1er commented Jun 16, 2021

Mainnet uses rest1.biggestfan.net which should be fine? I'm not getting any errors today, so I can close the issue.

Would you have timestamps or more data on the failing requests for rest1.biggestfan.net? This is something @nicolaiskye and @nexerino might be interested in.

What's wrong with BitcoreAPI? I'm not having any problems with it.

It has been very unreliable in the past. I haven't tried it recently, but we have a better solution now.

@merc1er
Copy link
Member

merc1er commented Jun 17, 2021

#102 makes it easier to customise API endpoints

@merc1er merc1er linked a pull request Jun 17, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants