Skip to content

Instantly share code, notes, and snippets.

@matthieu
Last active November 29, 2026 12:19
Show Gist options
  • Select an option

  • Save matthieu/b07c5ba27bc99188a15f to your computer and use it in GitHub Desktop.

Select an option

Save matthieu/b07c5ba27bc99188a15f to your computer and use it in GitHub Desktop.
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
{
"private": "19fe93f06878926cc3a75d092621397e958ee82c362cdf61f4eb2d6a12917577",
"public": "03c3c99511cd377c8f24c23a1cfbc1145fbdbddc93de0d70792dfa13ef08e7dd4f",
"address": "mzqUStzz6VqByVVMndXNFkpnmc9y8XeJ7o"
}
# 2. build the transaction and save the full output to send.json
$ curl -d '{"inputs": [{"addresses": ["mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov"]}], "outputs": [{"addresses": ["mzqUStzz6VqByVVMndXNFkpnmc9y8XeJ7o"], "value": 25000}]}' http://api.blockcypher.com/v1/btc/test3/txs/new > send.json
# 3. we generate a signature using the above private key and the data provided in the "tosign"
# property of send.json. To do so we use the utility at https://github.com/blockcypher/btcutils/tree/master/signer
# (go build to get binary)
$ ./signer e6e59c20e6b7b720ac5e61e82e7eea66ce8b8aadc8beb422b2701869cfae42c2 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2
3044022025812b93f58b3473124ae726c405cac51f39bb89c110e90f77b2f31a2e1fac67022015b8f1c3fa2ce6d0af44f682ed7e1d7933e51d06099c3eaae8725089b7a8a80e
# 4. we edit send.json and append the above public key and the newly created signature at the end
# of the file to end up with the following at the bottom of the file (the rest above it is unchanged):
$ tail -n 10 send.json
"tosign": [
"e6e59c20e6b7b720ac5e61e82e7eea66ce8b8aadc8beb422b2701869cfae42c2"
],
"signatures": [
"3044022025812b93f58b3473124ae726c405cac51f39bb89c110e90f77b2f31a2e1fac67022015b8f1c3fa2ce6d0af44f682ed7e1d7933e51d06099c3eaae8725089b7a8a80e"
],
"pubkeys": [
"03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f"
]
}
# 5. finally, sending the resulting transaction with the signature and the public key
$ curl -d @send.json http://api.blockcypher.com/v1/btc/test3/txs/send
# This will output the final transaction, including its hash.
@zeeshangulzar

Copy link
Copy Markdown

You saved my life man. Thanks

@jonn7hoareau

Copy link
Copy Markdown

hi, can anyone help me? I sent Litecoin to Bitcoin address that starts with number 3 and I can't get them. I used greenbits wallet code and they can't get them either. I have seen them on the blockchain..

@soniadao

soniadao commented Aug 6, 2018 •

Copy link
Copy Markdown

At the last step, when I send the JSON to the blockchain I get this error :

"error": "Error validating generated transaction: Error running script for input 0 referencing 4a9aa1189c6a5d0f770c7a43bf46dc87f0c08ec35c68468212c7e8445900623c at 1: Script was NOT verified successfully."

Can someone help me please ?

@developer-avijitmondal

developer-avijitmondal commented Sep 7, 2018 •

Copy link
Copy Markdown

how to add maually fees with blockcypher transaction?i cannot add manually fees with transaction on blockcypher.

@obirije

obirije commented Feb 5, 2019

Copy link
Copy Markdown

Missing transaction information. thats the error I'm getting any help please

@obirije

obirije commented Jun 16, 2019

Copy link
Copy Markdown

how to add maually fees with blockcypher transaction?i cannot add manually fees with transaction on blockcypher.

Pls would love to know how to do this. Thanks. Manually setting it in transaction req /tx/new not working

@Trevorulliac

Copy link
Copy Markdown
"e6e59c20e6b7b720ac5e61e82e7eea66ce8b8aadc8beb422b2701869cfae42c2"

],
"signatures": [
"3044022025812b93f58b3473124ae726c405cac51f39bb89c110e90f77b2f31a2e1fac67022015b8f1c3fa2ce6d0af44f682ed7e1d7933e51d06099c3eaae8725089b7a8a80e"
],
"pubkeys": [
"03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f

@myklll

myklll commented Dec 20, 2019 •

Copy link
Copy Markdown

Thanks for this. Works perfectly. Do you have a similar gist for sending with Multisig addresses?

@elvis-hp

Copy link
Copy Markdown

hi. how to send btc from segwit address? thank you!

@samansarina

Copy link
Copy Markdown

You saved my life man. Thanks

bro could you please contact me.
khatami929 @ gmail

@Tradersarina

Copy link
Copy Markdown

Thanks for this. Works perfectly. Do you have a similar gist for sending with Multisig addresses?

Hello.
Dies it work ?

@sherain

sherain commented Aug 30, 2021

Copy link
Copy Markdown

At the last step, when I send the JSON to the blockchain I get this error :

"Error validating generated transaction: Error running script for input 0 referencing e27019baee9853a54faa61cd7279a72d1f4576c628610ae106ac662ab9da3035 at 0: Script was NOT verified successfully."

Can someone help me please ?

@roshnet

roshnet commented Nov 19, 2021

Copy link
Copy Markdown

Incredibly helpful! Thanks!

ghost commented May 3, 2022

Copy link
Copy Markdown

Ho to use it can any one can tell me

@influence-27

Copy link
Copy Markdown

i need flash btc software

@Will-Lai

Copy link
Copy Markdown

At the last step, when I send the JSON to the blockchain I get this error :

"Error validating generated transaction: Error running script for input 0 referencing e27019baee9853a54faa61cd7279a72d1f4576c628610ae106ac662ab9da3035 at 0: Script was NOT verified successfully."

Can someone help me please ?

I got the same issue. How did you solve it?

@sherain

sherain commented Jan 27, 2023 via email

Copy link
Copy Markdown

@FieryTurtle

Copy link
Copy Markdown

Anybody please help me too I must be retarded or something I can't figure this out

@shahriyarmanavi98-bot

Copy link
Copy Markdown

hi can someone one help please

@Tfig9

Tfig9 commented Nov 27, 2026

Copy link
Copy Markdown

GET FREE TEST DEMO AND EXPERIENCE THE REAL CRYPTO FLASH SOFTWARE

FLASH USDT | BTC| ETH COMPATIBLE

Send Fake BTC / Flash USDT Sender on TRON, SOLANA, Ethereum e.t.c…Transactions appear fully confirmed on major block explorers (TronScan, Solscan, Etherscan, BSCScan)
Recipient sees spendable balance for a limited time (90–360 days)

Professional Guide|

WhatsApp Admin

Click- Telegram.

Cryptocurrency continues to grow rapidly, with digital assets such as Bitcoin (BTC), Ethereum (ETH) and Tether (USDT) becoming widely used for trading and investment.
As the crypto industry expands, various software tools have also emerged, including programs often referred to as crypto flash software.

@Defobic

Defobic commented Nov 29, 2026

Copy link
Copy Markdown

What is Fake BTC Sender Generator Software?
Fake BTC transfer generator software is a type of program that generates cryptocurrency transactions rather than creating real crypto wallet transfers with free demostration.
The generated transaction appear in wallet interfaces temporarily.

These Flash coins display similar characteristics to real cryptocurrency, such as:
Transaction display in wallet interfaces
Temporary balance reflection
Transaction ID appearance
Wallet address interaction

Cryptocurrency continues to grow rapidly, with digital assets such as Bitcoin (BTC), Ethereum (ETH), and Tether (USDT) becoming widely used for trading and investment. As the crypto industry expands, various software tools have also emerged, including programs often referred to as flash crypto transaction generator software.

Fake bitcoin transaction generator software is commonly described as a tool that generates cryptocurrency transactions.
These programs generate digital transactions that appear similar to real blockchain transfers. However, it is important to understand how these tools work and their limitations

GUIDE|

WhatsApp Admin

Click- Telegram Admin.

Fake BTC sender software operates differently. Instead of broadcasting verified blockchain transactions that stays permanently it creates fame transaction data that may temporarily appear in wallet and perform all functions of real crypto during this period of time.
Because these transactions are confirmed by blockchain validators, they usually disappear after a period of time.

However, it is essential to understand that these features represent actual cryptocurrency transfers for a period of time.

Legitimate Uses of Flash USDT, BTC, ETH Tools
Flash crypto can sometimes be used for legitimate educational or development purposes, including;

Software Testing:
Developers testing wallet interfaces or blockchain applications may use flash crypto tools to observe transaction display behavior.

Ethereum Explorer
Ethereum transactions can be verified using blockchain tracking platforms.

USDT Transaction Verification
Since USDT operates on multiple blockchains, users should confirm transactions using the correct network explorer.

Real cryptocurrency transactions will always show confirmed blockchain verification, transaction history, and permanent records.

Differences Between Real and Simulated Crypto Transactions?
Feature Real Crypto Transaction Simulated Transaction
Blockchain Confirmation Yes No
Permanent Record Yes No
Transfer Value Real Funds No Real Value
Network Validation Required Not Required

How Real is Crypto Flash Software?
Fake BTC Sender operate just like the actual crypto transaction but has no real time value and are recorded on official blockchain networks for a period of time.

Conclusion
Fake transaction generator software is often discussed within the cryptocurrency community as a fake tool that can display temporary transaction activity. While such tools may be used for educational or testing purposes, users must understand that these transactions represent real cryptocurrency transfers for a period of time (180days).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment