Skip to content

Instantly share code, notes, and snippets.

Matthieu Riou matthieu

Block or report user

Report or block matthieu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matthieu
matthieu / new_address_curl
Last active Aug 29, 2015
Get a new address and keys from BlockCypher
View new_address_curl
$ curl -X POST https://api.blockcypher.com/v1/btc/main/addrs
{
"private": "da01587298ff1721a968539e87329abe18f9b20cb46124eb650671662d3acd1a",
"public": "02d47eaaca7f9b96a977c996396d1668a729155c02a18a37429ca5be9cfda91893",
"address": "1PjfjXBM4GQs8FaNFESiUZzQwVxMHXdBXG",
"wif": "L4XV4V5ACQmrtJn7ombma3sdqNrn1T9FFfwjLUaHVmd7Qz5iNHTt"
}
@matthieu
matthieu / send_a_candy.json
Created Mar 11, 2015
Partial JSON to POST to BlockCypher for a candy-size microtransaction
View send_a_candy.json
{
"from_private": "da01587298ff1721a968539e87329abe18f9b20cb46124eb650671662d3acd1a",
"value_satoshis": 2000000,
"token": "37048cd01f250eca918ab55b658de3ec"
}
@matthieu
matthieu / encrypt_send_a_candy
Last active Aug 29, 2015
Encrypt a JSON file before POSTing to BlockCypher
View encrypt_send_a_candy
$ openssl enc -aes-256-cbc -base64 -in send_a_candy.json -out send_a_candy.json.aes256
You can’t perform that action at this time.