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

Add support for Chia #5431

Closed
wants to merge 20 commits into from
Closed

Conversation

greimela
Copy link
Contributor

This pull request integrates support for the Chia blockchain (chia.net) into BTCPayServer.

It uses polling instead of a websocket connection, since the Chia daemon websocket forces TLS 1.3, which is not yet supported on MacOS .NET.

It doesn't require a full node at the moment, but connects to the Chia SPV light wallet.

A docker fragment to run the Chia light wallet next to BTCPayServer can be found here: btcpayserver/btcpayserver-docker#842

@NicolasDorier
Copy link
Member

NicolasDorier commented Oct 27, 2023

Thanks for this, however, we will move the altcoins integration in plugins, which mean you will need #5331 in the next 1.12.0 version.

The reason why we will soon move altcoins integration to plugin is because we found out that having altcoin integration in the core source code put the burden of maintenance on our shoulder.

Most of the code you wrote should just work as is in plugins. But you need to wait next 1.12.0 version.

@greimela
Copy link
Contributor Author

Sure, no problem, I'll take a look at #5331 to see what needs to be adapted.

Missing:
* Polling for new transactions
* Fetching exchange rat
* Remove unnecessary stuff
* Uses polling instead of websocket, since daemon uses TLS 1.3, which is not yet supported on my MacOS .NET
* Doesn't handle reorgs yet
* Doesn't have WalletConnect or similar wallet integration
@greimela greimela force-pushed the master branch 4 times, most recently from 93e2bb0 to 2dd6985 Compare November 5, 2023 10:02
@greimela
Copy link
Contributor Author

Going to close this for now, and reopen it as a plugin after 1.12 lands.

@greimela greimela closed this Nov 10, 2023
@gentoosys
Copy link

Hi @greimela ! Thank you for your work!
I want to test Chia payments in btcpay, and can't understand how to install it in 1.12 docker version. I tried to put Chia folder in /root/.btcpayserver/Plugins in btcpayserver's docker container, but plugin not detected. Please help me run your code

@gentoosys
Copy link

Hi. I installed your build. But can't see where to add XCH wallet. No any settings in UI...

@greimela
Copy link
Contributor Author

greimela commented Feb 9, 2024

Hi @gentoosys!
This build expects the Chia wallet to run next to the BTCPayServer, so you only specify the CHIA_ROOT in order to connect to it.
You can find a fragment on how to do that in my fork of btcpayserver-docker:
https://github.com/mintgarden-io/btcpayserver-docker/blob/master/docker-compose-generator/docker-fragments/chia.yml
Feel free to reach out to me via Discord (acevail) if you need more support

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 this pull request may close these issues.

None yet

3 participants