Goal clerk rawsend: HTTP 400 Bad Request

Hello everyone.

OS: Ubuntu 20.04.01
Net: Mainnet
Parameters: Default

I’m setting up a node now.
Catching up is complete.
So I ran “goal clerk rawsend” to join the consensus and get it online,
but I got “Couldn’t broadcast tx with algod: HTTP 400 Bad Request”.

What went wrong? The following is my operation log.

Thank you very much.


sudo -u algorand -E algokey generate -f spendingkeyfile (Handa: memo mnemonic)
sudo -u algorand -E goal account import (Handa: input mnemonic)
sudo -u algorand -E goal account addpartkey -a 6ZD… --roundFirstValid 18916339 --roundLastValid 22410739
sudo -u algorand -E goal account changeonlinestatus -a 6ZD… -o=1 -t online.tx
sudo -u algorand -E algokey sign -k spendingkeyfile -t online.tx -o online.tx.signed
sudo -u algorand -E goal clerk rawsend -f online.tx.signed
Warning: Couldn’t broadcast tx with algod: HTTP 400 Bad Request: TransactionPool.Remember: transaction V7Z…: overspend (account 6ZD…, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map Assets:map AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map AppParams:map TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {1000})
Encountered errors in sending 1 transactions:
V7Z…: HTTP 400 Bad Request: TransactionPool.Remember: transaction V7Z…: overspend (account 6ZD…, data {_struct:{} Status:Offline MicroAlgos:{Raw:0} RewardsBase:0 RewardedMicroAlgos:{Raw:0} VoteID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] SelectionID:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] VoteFirstValid:0 VoteLastValid:0 VoteKeyDilution:0 AssetParams:map Assets:map AuthAddr:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ AppLocalStates:map AppParams:map TotalAppSchema:{_struct:{} NumUint:0 NumByteSlice:0} TotalExtraAppPages:0}, tried to spend {1000})

A blind guess: there wasn’t enough Algo on the account you tried to send from:

overspend (account 6ZD..., 
...
tried to spend {1000})
2 Likes

Thank you very much.
I’m so embarrassed.
I put some ALGO in my wallet and it worked.

$ sudo -u algorand -E goal account list
Please enter the password for wallet ‘HandaWallet’:
[offline] Unnamed-0 6ZD… 10100000 microAlgos *Default
$ goal node status
Last committed block: 18935371
Time since last block: 2.0s
Sync Time: 0.0s
Last consensus protocol: GitHub - algorandfoundation/specs at bc36005dbd776e6d1eaf0c560619bb183215645c
Next consensus protocol: GitHub - algorandfoundation/specs at bc36005dbd776e6d1eaf0c560619bb183215645c
Round for next consensus protocol: 18935372
Next consensus protocol supported: true
Last Catchpoint:
Genesis ID: mainnet-v1.0
Genesis hash: wGH…
$ sudo -u algorand -E goal account addpartkey -a 6ZD… --roundFirstValid 18935400 --roundLastValid 22410739
Participation key generation successful
$ sudo -u algorand -E goal account changeonlinestatus -a 6ZD… -o=1 -t online.tx -d
Please enter the password for wallet ‘HandaWallet’:
$ sudo -u algorand -E algokey sign -k spendingkeyfile -t online.tx -o online.tx.signed
$ sudo -u algorand -E goal clerk rawsend -f online.tx.signed
Raw transaction ID BTRZ4I3NH6RLB773CO6KFY6RE2LEGPWSSMKFH5KIU57WRPF2EGVQ issued
Transaction BTRZ4I3NH6RLB773CO6KFY6RE2LEGPWSSMKFH5KIU57WRPF2EGVQ still pending as of round 18935400
Transaction BTRZ4I3NH6RLB773CO6KFY6RE2LEGPWSSMKFH5KIU57WRPF2EGVQ committed in round 18935402