Skip to content

Instantly share code, notes, and snippets.

@Daymannovaes
Daymannovaes / bitcoin_fake_transaction_example.json
Last active February 16, 2024 12:15
A fake bitcoin transaction
{
"version": 1,
"hash": "b657e22827039461a9493ede7bdf55b01579254c1630b0bfc9185ec564fc05ab",
"block_height": 477230,
"inputs": [
{
"n": 0,
"address": "1GLctvTi81GDYZF5F6nif2MdbxUnAGHATZ",
@matthieu
matthieu / gist:b07c5ba27bc99188a15f
Last active June 15, 2023 06:45
Create and send a Bitcoin transaction using the BlockCypher Transaction API
# In this example we're sending some test bitcoins from an address we control to a brand new test
# address. We'll be sending the coins using the following address, public and private keys (please
# don't abuse).
# address : mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov
# public : 03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f
# private : 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2
# 1. generate a one-shot dummy address we're going to send money to
$ curl -X POST http://api.blockcypher.com/v1/btc/test3/addrs
{