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

Switch to Self-Hosted Mempool #33

Open
peridendes opened this issue Dec 5, 2023 · 3 comments
Open

Switch to Self-Hosted Mempool #33

peridendes opened this issue Dec 5, 2023 · 3 comments

Comments

@peridendes
Copy link

Good Morning.

I've been getting a lot of connection errors, and I would like to use my self-hosted instance of mempool.space to avoid rate limits.

I would like to use my self-hosted mempool.space to get the LastBlock and MempoolFees.

I've updated the code to use https://blockchain.info/ticker for the price, which works fine, but I replaced mempool.space with https://192.168.0.123:4081/api/blocks/tip/height I'm getting connection error. Same thing with https://192.168.0.123:4081/api/v1/fees/recommended. Both of these API work in a web browser on my computer, and I'm not sure why I'm seeing Connection Error for both on the OrangeClock after uploading the changes.

Additionally, it would be nice to have these updates as a backup or using mempool.space as a backup so I have two sets of APIs I can use in the even that I hit rate limits.

@marc3linho
Copy link
Owner

Same issue, on my side 👎
I'll take a look at that

@epiccurious
Copy link
Contributor

How long were you running OrangeClock before mempool.space started rate limiting you? I've been running it for about 24 hours and haven't seen any issues, but will leave it running indefinitely.

Regarding the API endpoints not working in the script despite working on the browser, this could be related to a missing/invalid certificate on your self-hosted mempool server. Have you gone through the process of generating a self-signed certificate?

@peridendes
Copy link
Author

peridendes commented Jan 31, 2024

I plugged the OrangeClock in yesterday at block 828122 and noticed the Connection Error - Error - Connection Error screen 18 hours later. I connected the OrangeClock to a 2.4GHz guest network thinking that might help but started seeing connection error - error - connection error within a half hour.

I can't remember if I setup up a self-signed certificiate or not. I've "decommissioned" my previous node setup and haven't gotten around to setting up a self-hosted instance of mempool on my new build. I'll look into getting that and the certificate done in the next 24 hours and report back.

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

No branches or pull requests

4 participants
@epiccurious @marc3linho @peridendes and others