Bitcoin: Transferring BTC using Node js code fails with error “No signed inputs”