Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.15 KB

README.md

File metadata and controls

34 lines (27 loc) · 1.15 KB

Coinbase Auto Withdraw

Python script that can make Bitcoin auto-withdrawals from Coinbase.

Use Case:

I want to withdraw to my cold storage wallet any time I have a Bitcoin balance over a certain amount.

Environment Variables

Env Var description
COINBASE_API_KEY coinbase's API key
COINBASE_API_SECRET coinbase's API secret
BITCOIN_WALLET bitcoin address to withdraw to
XPUB_ADDRESS xpub to be used to generate a bitcoin address. Only used if BITCOIN_WALLET is null.

Deploy to microk8s

  1. build docker image
make build
  1. import image to microk8s
make microk8s
  1. insert base64 encoded secrets into k8s/secret.yml file
  2. deploy to microk8s
microk8s.kubectl apply -f k8s/secret.yml
microk8s.kubectl apply -f k8s/cronjob.yml