TransactionPool.Remember: transaction ... overspend

I’ve moved your post to a new topic as it is a different error.
I’ve also written your code in triple backquotes ``` for better readability,

Now, the issue is that your account is overspent. Which means that either you don’t have enough funds in your account or your node is not synced.

  • Are you sure you put funds there?
  • Is your node synced? – Unable take account online - Couldn't sign tx - #2 by fabrice – prefix by ./sandbox as you seem to be using sandbox
  • Are you on the right network? If you are on sandbox private network, you need to fund from sandbox account, not from TestNet dispenser. And vice-versa