Unique Features
BlockchainAPI was designed from the ground up to be the most easy-to-use Bitcoin payment processor system possible. No need to register an account, deal with external pages, or set up complicated API clients.
Please note that payments of less than 1.0E-5 BTC will be ignored by our server and will not be forwarded. Additionally, you should know that the amount to be forwarded is computed as follows (the variable $amount is the original payment amount and 546 is the Bitcoin Core dust threshold): (min(floor($amount * ((100 - 1) / 100)), floor($amount - 50)) / 100000000) - 3.0E-5
Using the API
Making use of our bitcoin payment API is extremely easy! Simply make a GET request to our bitcoin payment gateway API endpoint using the create
method and receive a deposit address for your customer!
Configure your deposit system to call the following URL, replacing the value of the address
parameter with your destination address and the value of the callback
parameter with your server's callback URL:
https://blockchainapi.org/api/receive?method=create&address=1LisLsZd3bx8U1NYzpNHqpo8Q6UCXKMJ4z&callback=http://example.com/callback?invoice_id=1234
The customer's deposit address will be contained in the input_address
property of the response.
{
"fee_percent": 1,
"destination": "1LisLsZd3bx8U1NYzpNHqpo8Q6UCXKMJ4z",
"input_address": "1E2VSRsaW3Kb1gDkdRUGDo6knAKfi9iYsb",
"callback_url": "http://example.com/callback?invoice_id=1234"
}
After a payment is made to the deposit address, we will forward the Bitcoin directly to the destination address you supplied and our server will send a callback GET request to your server that looks like this:
http://example.com/callback?invoice_id=1234&secret=7j0ap91o99cxj8k9&value=100000000&input_address=1E2VSRsaW3Kb1gDkdRUGDo6knAKfi9iYsb&confirmations=3&transaction_hash=0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098&input_transaction_hash=4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b&destination_address=1LisLsZd3bx8U1NYzpNHqpo8Q6UCXKMJ4z
Please see the official documentation for many more details and examples.
Try it out now
Test our API methods right here and now in your browser! Just click the button below to be taken to the demo section of our documentation.
What exactly is Bitcoin?
Bitcoin is a digital currency (also called crypto-currency) that is not backed by any country's central bank or government. Bitcoins can be traded for goods or services with vendors who accept Bitcoins as payment.
What does BlockchainAPI do?
BlockchainAPI is a Bitcoin payment processor. Bitcoin has been growing very quickly into a very popular and unique currency, so it is becoming increasingly desirable for merchants to accept Bitcoin as a payment method on their websites.
How does BlockchainAPI work?
Your server will send a request to our API for a unique payment address which it can present to the customer. Our server will send callbacks/notifications to your server immediately after payments are received and confirmed 1 times.