CATProtocol / cat-token-box

A monorepo for packages implementing CAT protocol
https://catprotocol.org
MIT License
180 stars 121 forks source link

fixing the "Not enough satoshi balance!" error while send #110

Open shizz-x opened 1 week ago

shizz-x commented 1 week ago

First of all, this error means you don’t have enough funds to send the transaction.

The node you're using cannot see your balance. This error most commonly occurs when you're using an RPC server that you haven’t previously worked with.

What to do?

You need to export your wallet to the blockchain. When you export, fractal scan mechanism will start.

  1. Run the following commands to export your wallet:

    yarn cli wallet export --create=true --config ./config.json
    yarn cli wallet export --config ./config.json
  2. If you encounter any errors, try swapping the order of the commands.

  3. After that, export your wallet to Unisat or another similar service. Then make a self-transfer of funds (your wallet => transfer all balance => your wallet). This will create a transaction that allows the blockchain to recognize your balance. Wait for transaction confirmation.

  4. You all done, try to send

    yarn cli send -i <ID> <DEST> <AMOUNT> --fee-rate <RATE>
shizz-x commented 1 week ago

"Not enough satoshi balance!" / "Not enough token balance!"