Comments (12)
Doesn't work for me.
The few times it works it's the few times the trest.bitcoin.com API works.
Seems to me that the lib fails to call the second API.
from bitcash.
I forked you to do some testing. I'll add a different differnet API provider and submit pull request to your repo. May you look in why the fallback to seconday API was failing? Thanks :-)
from bitcash.
@selfdrivingmenee Which provider are you looking at? I've found this one, which should have testnet support: https://api.fullstack.cash/docs/
from bitcash.
It seems that the fallback does not work for key.get_balance('bch')
A temporary way to fix this:
key.get_balance() / 100000000
The get_balance()
method's fallback works.
I will investigate the issue with the 'bch' argument.
Edit: get_balance() worked because trest worked for a second for whatever reason, but indeed fallback does not work.
from bitcash.
I just learned that trest.bitcoin.com
was intentionally taken down as no longer maintained.
from bitcash.
ouch! I imagine still that this bug propagates to the non- test version on the library tho
from bitcash.
@selfdrivingmenee Which provider are you looking at? I've found this one, which should have testnet support: https://api.fullstack.cash/docs/
I've also been looking at this one, very similar to rest.bitcoin.com and even fast.
My only concern is that the free tier has very low API limits: only 3 requests per minute allowed ๐คจ
But would be good to include it as a fallback!
from bitcash.
I swapped the current fallback API with the main one and things got back in working order.
As a fallback API I'm testing (not in the lib) cryptoapis.io , they require a (free) API key but being (also, with "paid" key) commercial provider they offer an SLA so I think it's interesting to have them supported.
Side note: main chain (and even some nodes on the testnet) accepts max one OP_return per each transaction so the splitting system for long messages should be changed. I'm evaluating the various tx chaining solutions, should I open a separate issue?
from bitcash.
@selfdrivingmenee did you start working on a PR already?
If not, I will start working on fixing this.
from bitcash.
Not working on a PR yet. As my 2c goes, I'd first take advantage of the non-operative bitcoin.com trest to fix the fallback system and then add another provider :-)
I'll update you on how my search for a provider goes
from bitcash.
@selfdrivingmenee could you test #65 on your end?
I tested it in a few different ways:
- editing the main endpoint's URL to an incorrect URL (ex: https://trest.bitcoin.com/1nc0rrect/)
- blacklisting trest.bitcoin.com in my
Hosts
file - blacklisting main endpoint domain name in my router's DNS
Edit: Travis-CI and local tests passed
from bitcash.
Working on my side, thankyou!!!
I did my testing, I'd suggest cryptoapis.io as the backup one introducing an initialization variable "API KEY". They work great and also allow for a very easy commercial integration.
from bitcash.
Related Issues (20)
- message option (OP_RETURN) not working HOT 4
- Issue with unspents HOT 6
- send() no longer pulls in unspents HOT 5
- ValueError: "0" is an invalid base58 encoded character. on PrivKeyTestnet HOT 2
- Remove hex_to_wif() from documentation HOT 1
- ConnectionError: All APIs are unreachable HOT 6
- How to sweep all BTC from wallet HOT 1
- ERROR: Could not build wheels for coincurve HOT 1
- Unsupported hash type ripemd160 HOT 9
- Cash Tokens support CHIP-2022-02-CashTokens HOT 1
- wallet balance not accurate HOT 1
- wallet balance not synced (same error as closed ticket) HOT 3
- Difference from `bit` HOT 5
- Cash address contains uppercase and lowercase characters HOT 3
- Unable to send more than one transaction within a block HOT 2
- Upgrade CI workflow actions
- Error while signing transaction: nft_commitment HOT 7
- How can you sign multiple inputs originating from various addresses? HOT 4
- Chain verification missing HOT 2
- Bitcash not creating valid transactions despite returning a TxID HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcash.