Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crypmancer/rune-burn-backend

Rune burn backend using nodejs and bitcoinjs-lib
https://github.com/crypmancer/rune-burn-backend

backend bitcoin bitcoinjs-lib burn nodejs runes typescript

Last synced: 6 days ago
JSON representation

Rune burn backend using nodejs and bitcoinjs-lib

Awesome Lists containing this project

README

        

The Rune Burn Project.

1. 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.

2. After confirmed transaction, Transfer and Burn rune token from Receiver wallet to Burning 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 burning 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.