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.
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. |
- build docker image
make build
- import image to microk8s
make microk8s
- insert base64 encoded secrets into
k8s/secret.yml
file - deploy to microk8s
microk8s.kubectl apply -f k8s/secret.yml
microk8s.kubectl apply -f k8s/cronjob.yml