Welcome to the Rune swap Project, a decentralized application (dApp) built in the Bitcoin Rune space. This project leverages React and the Bitcoin CLI to facilitate the swaping of runes. Explore the repository to learn more about how it works and how you can contribute!
The Rune swap Project is designed to provide a seamless and secure way to swap runes within the Bitcoin ecosystem. By using this dApp, users can ensure their runes are permanently removed from circulation, enhancing the value and scarcity of remaining runes.
- Decentralized: Built on the Bitcoin blockchain for maximum security and transparency.
- User-Friendly: Easy-to-use interface developed with React.
- Efficient: Utilizes the Bitcoin CLI for efficient and reliable operations.
- Open Source: Fully open-source and available for community contributions.
-
Transfer claim amount of rune token from User wallet to Receiver wallet.
-
Get rune utxos and btc utxos in user wallet.
-
Build PSBT with user rune token and utxo balance as input and OP_RETURN value and claim amount of rune token, return rune token, change utxo as output using user wallet publickey, address, and receiver wallet address.
-
Send and Sign PSBT with user wallet.
-
-
After confirmed transaction, Transfer and swap rune token from Receiver wallet to swaping wallet.
-
Get rune utxos and btc utxos in receiver wallet.
-
Build PSBT with receiver rune token and utxo balance as input and OP_RETURN value and claim amount of rune token, return rune token, change utxo as output using reciver wallet WIF privatekey, address, and swaping wallet address. (At that time, set OP_RETURN as invalid)
-
Sign PSBT with receiver wallet.
-
P.S. All necessary values are in network.config.ts.
To get started with the Rune swap Project, follow these steps:
-
Clone the repository:
git clone https://github.com/ptc-bink/rune-swap-be.git cd rune-swap-be
-
Install dependencies:
npm install
-
Set up the Bitcoin CLI:
- Ensure you have the Bitcoin CLI installed and configured on your machine.
- Update the
.env
file with your Bitcoin CLI configuration.
-
Start the application:
npm start
-
Access the Application:
- Open your browser and navigate to
https://stonefaceords.com/
.
- Open your browser and navigate to
-
swap Runes:
- Follow the on-screen instructions to swap your runes securely.
- Confirm the transaction through the Bitcoin CLI.
We welcome contributions from the community! To contribute:
- Fork the repository.
- Create a new branch with your feature or bugfix.
- Submit a pull request with a detailed description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions, suggestions, or feedback, feel free to reach out:
Thank you for visiting the Rune swap Project! We hope you find it useful and look forward to your contributions.
Test