Hello,
I'm trying to setup a batch in order to send some coins to all the addresses through the multichain-cli.
Here is my code :
#!/bin/bash echo "Fetching all addresses from Multichain..." addresses=$(multichain-cli mychain getaddresses) for address in $addresses; do extract=${address:1:38} if [ ! -z $extract ]; then multichain-cli mychain send $extract 10 fi done exit 0 |
But sometimes this fails with :
error code: -704 error message: Insufficient funds, but there are coins belonging to addresses without send or receive permission. |
... and all the addresses seems to have an empty balance (no more coin...)
Is this normal?
Thanks in advance for your help.