Skip to content

chore: split x sBTC into x UXTOs #69

@samricotta

Description

@samricotta

In the remote mode there are 2 issues:

  1. We must wait until the staking transactions are confirmed to become part of the Bitcoin ledger, which is about 10 mins
  2. Each wallet only has a set amount of UTXOs available. This means we need to wait for any staking transactions to be confirmed in order to use the UTXOs again.

To solve this issue the program could break an amount (let's say X sBTC that has been preloaded into the wallet) into 5k UTXOs.

The steps to execute this are as follows:

  1. Create X addresses dependant of the amount that the wallet is funded using getnewaddress
  2. Send a transfer that equally splits the amount amongst these addresses using bitcoin-cli help sendmany

This will need to happen when initial fund is called but can be done in the btcclient

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions