Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seangeleno/092bba2daf1676c8b4063ce0ca5661bb to your computer and use it in GitHub Desktop.
Save seangeleno/092bba2daf1676c8b4063ce0ca5661bb to your computer and use it in GitHub Desktop.
#!/bin/bash
# bash script to withdraw btc from coinbasepro programatically with electrum wallet
electrum -v daemon start -w $HOME/.electrum/wallets/default_wallet -s electrums3lojbuj.onion:50001:t -p socks5:127.0.0.1:9050 && electrum -v daemon load_wallet -w $HOME/.electrum/wallets/default_wallet && ccxt coinbasepro withdraw BTC $(ccxt coinbasepro fetchBalance | grep -e "BTC: [0-9].[0-9]\{8\}" | head -1 | cut -c 18-27) $(electrum getunusedaddress)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment