open source bitcoin wallet php

The Problem We Solve Blockchain Technology Requires An Infrastructure Cryptocurrency projects are currently developed in isolation from each other due to the lack of a common infrastructure.As a result, the capacity to innovate is limited and projects waste time and money in solving the same problems over and over again.Blockchain technology companies and projects need a way to leverage from the achievements of each other - they need a SuperNET.Decentralized Organization Our decentralized organizational structure and open source development makes our efforts transparent and ensures others can leverage from our technology and achievements.We stay open to the world, collaborate with others, and follow the most promising decentralized technologies.Open Source Technology Our platform is modular by design and all its components complement each other.SuperNET technology adds to the existing Bitcoin infrastructure by connecting all the different blockchains together.Developers can utilize our framework to make further advancements in our cryptocurrency industry for the benefit of all.
Fintech Products We are building products that make cryptocurrencies easy, secure, and private to use.All that we do is decentralized from the core, but still designed with the average user in mind.Through our products we offer various financial services to both everyday users as well as businesses.About Us Open Source Development of Decentralized Technologies and Applications We are a horizontally structured organization which is building decentralized open source solutions for anyone to use.Our community and team is a loosely formed group working tirelessly to make our vision a reality.Everyone is welcome to join us and start their own project.Becoming part of SuperNET is just a few clicks away 20 team members 400+ active users 2.75M messages since 2014 Our Technology A Powerful Blockchain Platform We produce open source solutions for the blockchain industry.A wide range of decentralized products and services can be built with our platform.
We will power the blockchain technology used by people around the world.kiem bitcoin bang androidIguana Core Bitcoin Protocol A new implementation of Bitcoin protocol serves as a bridge between Bitcoin, our platform, and other altcoins.ethereum initial saleView more Privacy Technology Anonymous online payments powered by a technology called ‘Zcash zero-knowledge proofs’ View more Decentralized High Capacity Servers Part of our infrastructure is run by powerful servers located throughout the world.ethereum mh/s gpuView more Atomic Cross-Chain Swap Protocol Allows our applications to do peer to peer coin exchange without any counter-party risk.View more Distilled RAM Databases Enable fast random access queries to the essential blockchain information with a minimum resource usage.
View more Delayed Proof of Work A new consensus mechanism that uses Bitcoin and Komodo to give a second security layer to any other blockchain.View more Assetchains A technology that allows anyone to create new bitcoin compatible blockchains that integrate into our blockchain network.View more Geckochains Smart contract and conditional logic based blockchains.View more Komodo notary nodes Cryptocurrencies no longer need to waste resources and electricity to secure their blockchain, they can simply use the Komodo notary nodes to secure their systems in a cost-effective way, thus making Bitcoin the heartbeat of this new generation of cryptocurrencies.Our Product An Open Source Decentralized Application Our main product is a powerful application called Agama.Everything inside the app works seamlessly together and is decentralized from the ground up.These features make it the most advanced cryptocurrency application on the market.Bitcoin Compatible Supports all Bitcoin compatible coins and any blockchain created within our platform.
View more Basilisk Mode A decentralized lightweight mode that allows users to use our app instantly without any blockchain download.View more Rapid Syncing Fast blockchain syncs powered by a new Bitcoin protocol.View more Parallel Syncing An ability to sync multiple coins within our multi-coin wallet View more Decentralized Exchange Easily exchange cryptocurrencies via a ShapeShift like service.View more Komodo Wallet A native Komodo wallet gives you an access to anonymous payments.View more Multi-Coin Wallet Store your coins without a counterparty risk.View more Atomic Explorer An universal local explorer ensures you don’t have to query information from a centralized server.View more Our Business ModelHow We Monetize Our Decentralized Organization Independent Modules SuperNET builds modules that in combination create our open source platform.We are developing software products on top of that technology, and those will give us revenue streams.
Revenue flows can be hard coded into our technology.SuperNET Assets These different technological modules and services each have an asset.When our platform grows, we can issue a new asset which we can use to fund our platform further.The assets work like any other cryptocurrency, and anyone can acquire them.Revenue Network A decentralized organization needs to decentralize its revenue sources.Thus many assets own a stake in another asset, and thus their income will flow from asset to asset ensuring that the ecosystem as a whole stays healthy.Follow SuperNET Stay Ahead With Info Straight From The Source Sign-up to our Newsletter Agama Updates Developer Insights Komodo Updates Development Resources Investment Opportunities PartnersBalance Returns balance and unconfirmed amount(Amount waiting 2 confirmations) of multiple addresses.Balance units are in satoshis.Definition POST https://www.blockonomics.co/api/balance Request body: {"addr": } Example Request curl -d '{"addr":"1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp 1dice97ECuByXAvqXpaYzSaQuPVvrtmz6"}' https://www.blockonomics.co/api/balance Example Response {"response": [{"confirmed": 189412205, "addr": "1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp", "unconfirmed": 012211 }, {"confirmed": 746599881, "addr": "1dice97ECuByXAvqXpaYzSaQuPVvrtmz6", "unconfirmed": 0}]} History Returns transaction history of multiple bitcoin addresses considering them part of the same wallet.
For each transaction following paramters are returned:unix timestamp, txid, net value transacted from wallet in satoshis and subset of address involved in transaction.Transactions are sorted by latest time and a limit of 200 tx are returned.Pending transactions (having less than 2 confirmations) are returned in pending dict with status .Status codes: 0 - Unconfirmed, 1 - Partially Confirmed.Definition POST https://www.blockonomics.co/api/searchhistory Request body: {"addr": } Example Request curl -d '{"addr":"1JJ5taVeiHcD6DXNkLLfocbHcE9Nzio1qV, 13A1W4jLPP75pzvn2qJ5KyyqG3qPSpb9jM"}' https://www.blockonomics.co/api/searchhistory Example Response {"pending": [{"status": 1, "addr": ["1JJ5taVeiHcD6DXNkLLfocbHcE9Nzio1qV"], "time": 1443423780, "value": 497100500, "txid": "5e4e03748327a22288623b02dab1721ac9f8082c7294aaa7f9581be49dced2c5"}], "history": [{"time": 1231660825, "addr": ["13A1W4jLPP75pzvn2qJ5KyyqG3qPSpb9jM"], "value": 5000000000, "txid": "2d05f0c9c3e1c226e63b5fac240137687544cf631cd616fd34fd188fc9020866"}]} Transaction Detail Returns detail of input transaction id.
List of transaction inputs and outputs are returned.time is the received unix timestamp of transaction, value is the amount of tx input/output in satoshis, fee is the transaction fees in satoshis, size is the transaction size in bytes.Definition GET https://www.blockonomics.co/api/tx_detail?txid= Example Request curl https://www.blockonomics.co/api/tx_detail?txid=5e4e03748327a22288623b02dab1721ac9f8082c7294aaa7f9581be49dced2c5 Example Response {"status": "Confirmed", "fee": 10000, "vout": [{"value": 497100500, "address": "1JJ5taVeiHcD6DXNkLLfocbHcE9Nzio1qV"}, {"value": 1256580430, "address": "1KsKNxMVnFhZaK5Doa6SMTcerPGYorD6M2"}], "vin": [{"value": 1753690930, "address": "14SxzkZ5kVnHTA7pRFzQknwypi7rRYrtG8"}], "time": 1443423780, "size": 107} Transaction Receipt Transaction receipt is an easy to share permalink for any bitcoin transaction/payment.User addresses' in the tx are highlighted and net amount is calculated accordingly Format https://www.blockonomics.co/api/tx?txid=&addr= Example For same transaction, here is the payer receipt and here is the payee receipt Limits You can query max 20 addresses at a time.
For higher number you should upgrade your plan and set your API Key in http authorization header.Please limit API calls to 2 requests/min.Higher rates can lead to banning of your IP.Bitcoin blocks only arrive at an average rate of once in 10 minutes.So querying multiple times a second won't return you any new data.For realtime transaction updates on address, use our websocket API.API Key All wallet watcher api requests require apikey for access.To generate apikey goto Wallet Watcher > Settings > Generate new API Key.To use apikey set the Authorization header of the https request.Authorization: Bearer Insert/Update/Delete Use this to insert/modify bitcoin address to you want monitor Definition POST https://www.blockonomics.co/api/address Request body: {"addr": , "tag":} DELETE https://www.blockonomics.co/api/address Request body: {"addr": } Example Request curl -d '{"addr":"1C1ENNWdkPMyhZ7xTEM4Kwq1FTUifZNCRd", "tag":"mining"}' -H 'Authorization: Bearer 2cDNOlCN985d7Rx3atSDOlmMeYaxzho2uPmHheIw4eU' https://www.blockonomics.co/api/address Get Use this to get balances of bitcoin addresses you are monitoring.
Returns: createdon which is the timestamp when address was added into wallet watcher, balance in satoshis, address and tag Definition GET https://www.blockonomics.co/api/address Example Request curl -H 'Authorization: Bearer 2cDNOlCN985d7Rx3atSDOlmMeYaxzho2uPmHheIw4eU' https://www.blockonomics.co/api/address Example Response [{"createdon": 1424097689.582884, "balance": 0, "tag": "mining", "address": "1AraZwQD3euXSeEJSTEiy8m2GSCvRMVkLY"}, {"createdon": 1442657078.386882, "balance": 5000000000, "tag": "", "address": "1BW18n7MfpU35q4MTBSk8pse3XzQF8XvzT"}] Using payments API you can easily receive bitcoin payments into your own bitcoin wallet.It enables you to quickly start accepting bitcoin payments on your website.To get started add your xpub into wallet watcher and also generate api key from settings.Feel free to copy code from our open source shopping cart.New Address This will return a new address from your wallet to which the payer must send the payment.
This call will increment index on server, so that each time you get a new address.To reset index you can use parameter reset=1.This will reset index to last unused address before generating new address, and is useful for testing purposes.If you have multiple xpubs under same emailid, you can choose the source xpub using the parameter match_account.This will match given string within your xpub to find matching account Definition POST https://www.blockonomics.co/api/new_address POST https://www.blockonomics.co/api/new_address?reset=1 POST https://www.blockonomics.co/api/new_address?match_account=6D9qFC Example Request curl -d '' -H 'Authorization: Bearer 2cDNOlCN985d7Rx3atSDOlmMeYaxzho2uPmHheIw4eU' https://www.blockonomics.co/api/new_address curl -d '' -H 'Authorization: Bearer 2cDNOlCN985d7Rx3atSDOlmMeYaxzho2uPmHheIw4eU' https://www.blockonomics.co/api/new_address?reset=1 curl -d '' -H 'Authorization: Bearer 2cDNOlCN985d7Rx3atSDOlmMeYaxzho2uPmHheIw4eU' https://www.blockonomics.co/api/new_address?match_account=6D9qFC Example Response {"address": "14gaB2Xb7T1gGx65Sy2vdP37oU2TrJHWAA"} {"address": "13C84DfUxXWsbi5haUc1uYacP9DmXg6bsc", "reset": 1} {"address": "13C84DfUxXWsbi5haUc1uYacP9DmXg6bsc", "account": "xpub6D9qFCtaxyyP3aAMy..."}
PHP Python array( 'header' => 'Authorization: Bearer '.$api_key, 'method' => 'POST', 'content' => $data ) ); $context = stream_context_create($options); $contents = file_get_contents($url, false, $context); $object = json_decode($contents); $db = new SQLite3('payments_db.sqlite'); //Associate address with itemid in DB $stmt = $db->prepare("INSERT into payments(invoiceid, addr) values(:invoiceid, :addr)"); $stmt->bindParam(":invoiceid", $invoiceid); $stmt->bindParam(":addr", $object->address); $stmt->execute(); echo 'For item#'.$invoiceid.' waiting for payment on ' .$object->address; import requests api_key = 'INSERT_API_KEY_HERE'; url = 'https://www.blockonomics.co/api/new_address'; headers = {'Authorization': "Bearer " + api_key} r = requests.post(url, headers=headers) address = r.json()['address'] print ('Payment receiving address ' + address) HTTP Callback Blockonomics will send http callback for payments on your address.
For each callback following parameters are returned: status is the status of tx.0-Unconfirmed, 1-Partially Confirmed, 2-Confirmedaddr is the receiving addressvalue is the recevied payment amount in satoshistxid is the id of the paying transaction A callback succeeds when the server returns 200 HTTP status.Callback are retried 7 times with an exponential backoff of 4 seconds.Use Merchant Wizard to configure callback for your server.Your callback url can also contain a secret paramater for additional security.Example Callback /api/callback_url?status=2&addr=1C3FrYaGgUJ8R21jJcwzryQQUFCWFpwcrL&value=10000&txid=4cb3 0849ffcaf61c0e97e8351cca2a32722ceb6ad5f34e630b4acb7c6dc1e73b PHP prepare("UPDATE payments set addr=:addr,txid=:txid,".
"value=:value where addr=:addr"); $stmt->bindParam(":addr", $addr); $stmt->bindParam(":txid", $txid); $stmt->bindParam(":value", $value); $stmt->execute(); ?> Payment Notification Use this to get realtime notification of payment on your bitcoin address (Suitable for client side/browser notification).Parameters: addr is your bitcoin address, timestamp is an optional parameter (default value is current timestamp).Only payments received after the given unix timestamp are notified.It is recommended to set this as the time of checkout/payment request.A websocket message is returned on successful payment containing the following fields: status is the status of tx.0-Unconfirmed, 1-Partially Confirmed, 2-Confirmedtimestamp is the unix timestamp of txvalue is the recevied payment amount in satoshistxid is the id of the paying transaction Definition Websocket connection to wss://www.blockonomics.co/payment/?timestamp= Example Request var wsuri = "wss://www.blockonomics.co/payment/189CEMECgP36iXpCKQoBbRQn3dTCUPi5dm?timestamp=1470371384" Example Response {"status": 0, "timestamp": 1470371749, "value": 167377096, "txid": "aed36253434b90e45ded86ccf1729f5d2acd78bd7665c54e62d5000035a8f6d8"} {"status": 1, "timestamp": 1470371749, "value": 167377096, "txid": "aed36253434b90e45ded86ccf1729f5d2acd78bd7665c54e62d5000035a8f6d8"} Following are examples of source code using blockonomics API in various languages.