If Lendasat disappears, use this tool to recover your contract funds.
To use this you will need to collaborate with your counterparty. To coordinate, you can try to reach them via Nostr using your derived Nsec and your counterparty's derived Npub.
All the required data (other than your password) should be present in your contract backup.
As the initiating party, follow these steps:
- Open
dist/index.html
in a web browser. - Choose your network (mainnet by default).
- Derive your private key in the contract by filling in:
- Your encrypted wallet seed.
- Your Lendasat password.
- Your contract derivation path.
- Click on
Build transaction
. - Provide the spend transaction inputs by filling in:
- The collateral contract address.
- The collateral script.
- Click 'Next'.
- After discussing with your counterparty, provide the spend transaction outputs:
- The borrower address and amount.
- The lender address and amount.
- Click 'Next'.
- If a PSBT with your signature is generated correctly, copy the hex output and share it with your counterparty.
As the finalizing party, after receiving their signed PSBT, follow these steps:
- Verify the PSBT. In particular, make sure you get the amount that you expect.
- Choose your network (mainnet by default).
- Derive your private key in the contract by filling in:
- Your encrypted wallet seed.
- Your Lendasat password.
- Your contract derivation path.
- Click on
Sign & broadcast
. - Paste the verified PSBT sent by your counterparty into the corresponding text box.
- If a signed transaction is generated correctly, click broadcast.
A few seconds later, the transaction should be published to the Bitcoin blockchain.