Skip to content

Instantly share code, notes, and snippets.

@matthieu
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save matthieu/e4d139ada2419b4ed5fb to your computer and use it in GitHub Desktop.
Save matthieu/e4d139ada2419b4ed5fb to your computer and use it in GitHub Desktop.
Decrypts and send the send_a_candy JSON to BlockCypher to create a microtransaction
#!/bin/bash
openssl enc -d -aes-256-cbc -base64 -in send_a_candy.json.aes256 2>&1 | \
curl -H "Content-Type: application/json" -d @- https://api.blockcypher.com/v1/btc/main/txs/micro?to_address=$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment