CryptoCoinsInfoClub.com

Github Blockchain Api

Api - Coinigy, Professional Bitcoin & Cryptocurrency Trading Platform

Api - Coinigy, Professional Bitcoin & Cryptocurrency Trading Platform

var socketcluster = require('socketcluster-client'); // subscribe to TICKER channelvar channel = SCsocket.subscribe("TICKER"); channel.watch(function (data) { console.log(data); // live data streams here!}); class MyClientProtocol(WebSocketClientProtocol): def __init__(self, *args, **kwargs): print("Init client protocol.") self._callbacks = {} self._calls = {} self._cid = 0 self._auth = AuthHandler('coinigy.token') super(MyClientProtocol, self).__init__(*args, **kwargs)... $coinigy_api = new coinigy_api(); $coinigy_api->exchanges(); // list exchanges$coinigy_api->markets('CBEX'); // list Coinbase Exchange markets$coinigy_api->balances(12345); // get balances for account #12345$coinigy_api->addAlert('CBEX','BTC/USD',1200); // set email+sms alert at $1,200... #!/bin/bash#list exchangescurl -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST "data in json formatcurl -H "Content-Type: application/json" -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST -d '{"exchange_code":"BTCC"}' "data as paramscurl -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST -d 'exchange_code=BTCC' " Continue reading >>

A Blockchain In 200 Lines Ofcode

A Blockchain In 200 Lines Ofcode

I like programming and Careless Whisper. The basic concept of blockchain is quite simple: a distributed database that maintains a continuously growing list of ordered records. However, it is easy to get mixed up as usually when we talk about blockchains we also talk about the problems we are trying to solve with them. This is the case in the popular blockchain-based projects such as Bitcoin and Ethereum . The term blockchain is usually strongly tied to concepts like transactions , smart contracts or cryptocurrencies . This makes understanding blockchains a necessarily harder task, than it must be. Especially source-code-wisely. Here I will go through a super-simple blockchain I implemented in 200 lines of Javascript called NaiveChain . The first logical step is to decide the block structure. To keep things as simple as possible we include only the most necessary: index, timestamp, data, hash and previous hash. The hash of the previous block must be found in the block to preserve the chain integrity The block needs to be hashed to keep the integrity of the data. A SHA-256 is taken over the content of the block. It should be noted that this hash has nothing to do with mining , since there is no Proof Of Work problem to solve. To generate a block we must know the hash of the previous block and create the rest of the required content (= index, hash, data and timestamp). Block data is something that is provided by the end-user. A in-memory Javascript array is used to store the blockchain. The first block of the blockchain is always a so-called genesis-block, which is hard coded. At any given time we must be able to validate if a block or a chain of blocks are valid in terms of integrity. This is true especially when we receive new blocks from other nodes and must decide whe Continue reading >>

A Simple And Secure Blockchain Database Api Written Inpython

A Simple And Secure Blockchain Database Api Written Inpython

A simple and secure Blockchain Database API written inPython When we talk about Blockchain, we always relate it to peer-to-peer network and think that data must be distributed across the network. It will raise concern from people and think that Blockchain would breach the confidentiality of the data. Actually, the data architecture of Blockchain itself already provides a good solution for securing the data from unauthorized manipulation, given that the server is protected by sufficient controls, such as access control, network and system security control, and better to be in an internal network. Therefore, I try to build an database based on the data architecture of Blockchain by using Python, Sqlite and RESTful API framework. Blockchains Data Architecture and its Integrity Abstracted from Bitcoin: A Peer-to-Peer Electronic Cash System by Satoshi Nakamoto From the diagram above, each block of the data is consisted of previous hash, nonce and transactions. If you are not sure what is hash, you can read this article first. To simplify, hash value is an unique ID for the previous block. If we use this unique ID to verify the previous block, we will know whether the previous block has been modified or not. What is the implication? This mechanism allows us to ensure that no one is allowed to change the previously created data. If you need to modify the data, you have to create another records to modify or delete it. From the above example, Alice wrongly enter the journal entries for 123.4, but it should be 432.1. Alice has to create another records delete to reverse the previous entries. It seems that it is the basic function for most of the accounting system, but we cannot know whether it is simply controlled in the application level, creating a possibility that the data c Continue reading >>

Welcome To Hyperledger Fabric

Welcome To Hyperledger Fabric

Hyperledger Fabric is a platform for distributed ledger solutions, underpinnedby a modular architecture delivering high degrees of confidentiality, resiliency,flexibility and scalability. It is designed to support pluggable implementationsof different components, and accommodate the complexity and intricacies that existacross the economic ecosystem. Hyperledger Fabric delivers a uniquely elastic and extensible architecture,distinguishing it from alternative blockchain solutions. Planning for thefuture of enterprise blockchain requires building on top of a fully-vetted,open source architecture; Hyperledger Fabric is your starting point. Its recommended for first-time users to begin by going through the Getting Started section in order to gain familiarity with the Hyperledger Fabriccomponents and the basic transaction flow. Once comfortable, continueexploring the library for demos, technical specifications, APIs, etc. If you have questions not addressed by this documentation, or run intoissues with any of the tutorials, please visit the Still Have Questions? page for some tips on where to find additional help. Before diving in, watch how Hyperledger Fabric is Building a Blockchain forBusiness: Continue reading >>

Openchain - Blockchain Technology For The Enterprise

Openchain - Blockchain Technology For The Enterprise

Openchain is an open source distributed ledger technology. It is suited for organizations wishing to issue and manage digital assets in a robust, secure and scalable way. Anyone can spin up a new Openchain instance within seconds. The administrator of an Openchain instance defines the rules of the ledger. End-users can exchange value on the ledger according to those rules. Every transaction on the ledger is digitally signed, like with Bitcoin. Deploy your own private sidechain in seconds The consensus mechanism used by Openchain differs from other Bitcoin-based systems, it uses Partionned Consensus: Every Openchain instance only has one authority validating transactions. Instead of one single central ledger, each organization controls their own Openchain instance. Instances can connect to each other. Different transactions will be validated by different authorities depending on the assets being exchanged. Every asset issuer has full control on the transactions relevant to that asset. Openchain is more efficient than systems that use Proof of Work: Openchain uses a client-server architecture which is more efficient and reliable than a peer-to-peer architecture. There is no miner, transactions are directly validated by the asset administrator. Since there is no miner, transactions are instant and free. Validators validate and store transactions. Observers receive a read-only copy of the ledger. They do their own validation of the ledger and store their own copy. Validators and observers expose standard HTTP-based APIs. Clients and wallets connect to validators to submit digitally signed transactions. Smart contracts are independent actors receiving and sending transactions according to arbitrary business logic. Gateways create 2-way pegging between two Openchain instance Continue reading >>

Ibm Has Just Open-sourced 44,000 Lines Of Blockchain Code On Github

Ibm Has Just Open-sourced 44,000 Lines Of Blockchain Code On Github

IBM has just open-sourced 44,000 lines of blockchain code on GitHub Whether transparent, decentralizeddatabase technologies like blockchain become a tool for the masses or the few is still yet to be decided. In fact, a UN paper that looksat what blockchainis and what it could do just went live last week . But if youre as excited as the tech giants are to startputting stuff like this to work, IBM has just announced its open-sourcing a whole load of code on GitHub . A blockchain is an online, public ledgerwhere you can log just about any kind of transaction, rather than it being controlled by a central institution. Although much of the theory is yetto be tested, many believe itcould transform everything from financial exchanges to legal contracts. IBM is part of the Linux-based Hyperledger project, where the code will sit, whose founding members represent just about everyone who stands to lose if the whole world agrees to change the way it doesinteractions. Thats unless they ensure theyre all front and centre of the technologys development. Addressing some key areas in the implementation of technology like this, IBM has shared with devs a consensus algorithm to help with decision-making, crucial for a decentralized system like this, as well as a smart contracts template that can be coded inJava or Golang. Smart contracts are the cutting edge of this technology, so saysthe independent researcher and consultant on alternative finance Brett Scott, writing for the UN . Imagine a coded blockchain-based script that is activated when two parties sendbitcoins to an escrow Bitcoin account that is controlled by the script, and which willrelease the bitcoins in the future to whoever wins a bet on the average level of rainfallover a certain period. This smart-contract is programmed Continue reading >>

Build Your Own Blockchain The Basics

Build Your Own Blockchain The Basics

Download the full Jupyter/iPython notebook from Github here This tutorial will walk you through the basics of how to build a blockchain from scratch. Focusing on the details of a concrete example will provide a deeper understanding of the strengths and limitations of blockchains. For a higher-level overview, Id recommend this excellent article from BitsOnBlocks . Transactions, Validation, and updating system state At its core, a blockchain is a distributed database with a set of rules for verifying new additions to the database. Well start off by tracking the accounts of two imaginary people: Alice and Bob, who will trade virtual money with each other. Well need to create a transaction pool of incoming transactions, validate those transactions, and make them into a block. Well be using a hash function to create a fingerprint for each of our transactions- this hash function links each of our blocks to each other. To make this easier to use, well define a helper function to wrap the python hash function that were using. import hashlib, json, sysdef hashMe(msg=""): # For convenience, this is a helper function that wraps our hashing algorithm if type(msg)!=str: msg = json.dumps(msg,sort_keys=True) # If we don't sort keys, we can't guarantee repeatability! if sys.version_info.major == 2: return unicode(hashlib.sha256(msg).hexdigest(),'utf-8') else: return hashlib.sha256(str(msg).encode('utf-8')).hexdigest() Next, we want to create a function to generate exchanges between Alice and Bob. Well indicate withdrawals with negative numbers, and deposits with positive numbers. Well construct our transactions to always be between the two users of our system, and make sure that the deposit is the same magnitude as the withdrawal- i.e. that were neither creating nor destroying money. Continue reading >>

Github - Blockchain/receive-payments-demos: Blockchain.info Receive Payments Api V2 Demos

Github - Blockchain/receive-payments-demos: Blockchain.info Receive Payments Api V2 Demos

Blockchain.info Receive Payments API V2 Demos If nothing happens, download GitHub Desktop and try again. If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. This repository contains simple examples of how to use the blockchain.info receive payments API V2 to process bitcoin payments. To use Receive Payments v2 you'll need an xPub address corresponding to an HD wallet. If you don't already have this, you can obtain one by creating a new wallet . You'll also need a V2 API Key please note that this new API key is mandatory for Receive API v2, and is distinct from the (optional) API key you might already use elsewhere in the Blockchain API. Further documentation & explanation can be found at: You'll find samples written in several languages in this repository. The workflow implemented in all these samples is: Show the user an invoice with a javascript payment button. On receiving payment, redirect to a status page When the payment is fully confirmed, give the user the product (in this case, show the user nutsandbolts.jpg) This code is intended as educational reference material and is not written for production use. Continue reading >>

Ethereum Developers Apis

Ethereum Developers Apis

[Beta] The Event Log API was designed to provide an alternative to the native eth_getLogs . Below are the list of supported filter parameters: topic0, topic1, topic2, topic3 (32 Bytes per topic) topic0_1_opr (and|or between topic0 & topic1), topic1_2_opr (and|or between topic1 & topic2), topic2_3_opr (and|or between topic2 & topic3), topic0_2_opr (and|or between topic0 & topic2) * fromBlock and toBlock accepts the blocknumber (integer, NOT hex) or 'latest' (earliest & pending is NOT supported yet) * Topic Operator (opr) choices are either 'and' or 'or' and are restricted to the above choices only * fromBlock and toBlock parameters are required * Either the address and/or topic(X) parameters are required, when multiple topic(X) parameters are used the topicX_X_opr (and|or operator) is also required * For performance & security considerations, only the first 1000 results are return. So please narrow down the filter parameters Here are some examples of how this filter maybe used: Get Event Logs from block number 379224 to 'latest' Block, where log address = 0x33990122638b9132ca29c723bdf037f1a891a70c and topic[0] = 0xf63780e752c6a54a94fc52715dbc5518a3b4c3c2833d301a204226548a2a8545 Makes a call or transaction, which won't be added to the blockchain and returns the used gas, which can be used for estimating the used gas [Beta] The WebSocket API allows developers to receive Real-Time notifications about new transactions. The Websocket Demo Page can be useful for seeing how this works. The following policies apply: * To keep the socket connection alive send a {"event":"ping"} every 20 seconds * Maximum number of 30 subscriptions per client * Maximum of 10 concurrent socket connections per/IP * After connecting to the socket you have to subscribe to an event within the next 60 Continue reading >>

Github - Blockchain/api-v1-client-php: Blockchain Bitcoin Developer Apis - Php

Github - Blockchain/api-v1-client-php: Blockchain Bitcoin Developer Apis - Php

An official PHP library for interacting with the blockchain.info API. Download the source or clone the repository. This php library works with the Composer package manager. Navigate to the root of the repository and run This will create the /vendor folder in the repository root. In order to use Wallet and CreateWallet functionality, you must provide an URL to an instance of service-my-wallet-v3 .Before using these functionalities, call \Blockchain\Blockchain::setServiceUrl to set the URL to the instance of of service-my-wallet-v3 . // Include the autoload.php from its vendor directoryrequire 'vendor/autoload.php'// Create the base Blockchain class instance$Blockchain = new \Blockchain\Blockchain();// Needed before calling $Blockchain->Wallet or $Blockchain->Create$Blockchain->setServiceUrl('All functionality is provided through the Blockchain object. The official documentation lists API call limits, which may be bypassed with an API code. If you use a code, enter it when you create the Blockchain object: $Blockchain = new \Blockchain\Blockchain('$my_api_code); If you need an API code, you may request one here . Set the cURL timeout, in seconds, with the setTimeout member function: $Blockchain->setTimeout($timeout_seconds); The default network timeout is 60 seconds. All Bitcoin values returned by the API are in string float format, in order to preserve full value precision. It is recommended that all arithmetic operations performed on Bitcoin values within PHP utilize the bcmath functions as follows: $result = bcadd("101.234115", "34.92834753", 8); // "136.16246253" $result = bcsub("101.234115", "34.92834753", 8); // "66.30576747" $result = bcmul("101.234115", "34.92834753", 8); // "3535.940350613" $result = bcdiv("101.234115", "34.92834753", 8); // "2.89833679" The 8 i Continue reading >>

Howto Connect Blockchains With Apis And Anypoint Platform

Howto Connect Blockchains With Apis And Anypoint Platform

HowTo Connect Blockchains with APIs and Anypoint Platform Blockchains are slowly creeping their way into the enterprise and gaining acceptance. As Harvard researchers reveal, No matter what the context, theres a strong possibility that blockchain will affect your business. The very big question is when. But what are Blockchains? Heres a primer that gives a pretty good overview. But in short, a Blockchain is a digital transaction ledger that, instead of resting with a single provider, is shared among a distributed network of computers. Each transaction is shared and continually reconciled across the network. So where does MuleSoft come in when considering Blockchains as part of your enterprise? Through our API-led connectivity approach, Anypoint Platform provides a holistic way to connect Blockchains through reusable, built-for-purpose APIs. And in this blog post, I will show you how MuleSoft gives you granular control around sharing data and monitoring transactions within and outside the Blockchain. The guide provides a way to setup your own Blockchain using MultiChain and deploy a pre-built Mule application with an API to expose those capabilities. In this guide, I provide a public AWS AMI image for you to start up and play around with Blockchains and learn about nodes, assets, orders, and streams. If you have MultiChain already setup, you can jump to Step 3 and configure it for your node. The image has two MultiChain Blockchain nodes installed and includes the Web Demo Interface that allows you to play around with the Blockchain environment. Additionally, you can start up the MultiChain Explorer that allows you to read the MultiChain block file. Steps to Creating Blockchain with Anypoint Platform In this step, youll start an Amazon EC2 instance using an AMI that has Continue reading >>

Github - Alejonext/blockchain-api: Is The Most Complete!!!

Github - Alejonext/blockchain-api: Is The Most Complete!!!

If nothing happens, download GitHub Desktop and try again. If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. An unofficial node.js client for the blockchain.info wallet api . var chain = require('blockchain-api').chain, blockChain = new chain(); // Basiclet callback = (err, data) => console.log(err, data);// BasicsblockChain.createWallet({ password : 'MyPass', api_code : API_KEY, priv : null, label : null, email : null}, callback);blockChain.chart('typeChart', callback);blockChain.stats(callback);blockChain.ticker(callback);blockChain.toBTC('USD', 100, callback);// Exec/* WALLET */let wallet = blockChain.wallet(GUID, PASS1, PASS2);let options = { from : 'Send from a specific Bitcoin Address (Optional)' fee : 'Transaction fee value in satoshi (Must be greater than default fee) (Optional)' note : 'A public note to include with the transaction -- can only be attached to transactions where all outputs are greater than 0.005 BTC.(Optional)'};wallet.balance(callback);wallet.list(callback);wallet.addressBalance(address, confirmations, callback);wallet.payment(to, amount, [options,] callback);wallet.sendMany({ 'Adrress1' : 2, 'Adrress2' : 1, ...}, [options,] callback);wallet.newAddress(name, callback);wallet.archiveAddress(address, callback);wallet.unarchiveAddress(address, callback);wallet.autoConsolidate(days, callback);/* QUERY */let query = blockChain.query();let params = {}; // Params is no definequery.getDifficulty( params, callback);query.getBlockCount( params, callback);query.latesthash( params, callback);query.bcperBlock( params, callback);query.totalBc( params, callback);query.probability( params, callback);query.hashestowin( p Continue reading >>

The Evolution Of Blockchain Technology | Deloitte Insights

The Evolution Of Blockchain Technology | Deloitte Insights

Repositories reveal interesting trends about organizations The core code supporting Bitcoin was published in April 2009. Since then, the number of projects on GitHub related to blockchain has grown significantly, averaging more than 8,600 new projects a year. In 2016 alone, there were almost 27,000 new projects (figure 3). The growth in the number of projects has been matched by the rapid growth of content produced to develop these blockchain technologies. Please see figure 4, and Repositories by year in our interactive dashboard. In analyzing blockchain repositories and their content, we noticed that increasingly more organizations appear to be getting involved. In 2010, organizations developed less than 1 percent of all projects. By 2017, their blockchain projects accounted for 11 percent (organizations currently account for 7 percent of totalnot just blockchainsoftware development on GitHub). And recent data about the rate at which commercial organizations can find success with blockchain initiatives through open source seems promising; some high-profile, large commercial entities are already doing so. (Please refer to Repositories by organization in our interactive dashboard.) Of particular significance, some projects that organizations have developed have resulted in new platforms (such as Ethereum, Ripple, Corda, and Quorum) which some developers now use to build applications. Organization-owned projects also tend to be updated more frequently than those developed by users, and are reportedly five times more likely to be copied, implying that the blockchain community has deemed them most relevant. When a project is copied, all of the content becomes available to the account that copied the project, thus working as a de facto knowledge-transfer mechanism. This pro Continue reading >>

Mobius Api Reference

Mobius Api Reference

# You can pass API key as a query parametercurl "or via request headercurl "\ -H "X-Api-Key: API_KEY_HERE" import Mobius from '@mobius-network/mobius-node';const mobius = new Mobius({ apiKey: 'API_KEY_HERE',}); getAppStore($APP_UID); from pymobius import Mobiusmobius = Mobius(api_key='API_KEY_HERE') import Mobius from '@mobius-network/mobius-reactnative';const mobius = new Mobius({ apiKey: 'API_KEY_HERE',}); Mobius uses API keys to allow access to the API. You can view your API key at our developer portal . Mobius expects for the API key to be included in all API requests to the server in a query parameter api_key, orusing X-Api-Key http header. You must replace API_KEY_HERE with your personal API key. curl -G "\ -H "x-api-key: API_KEY_HERE" \ -d "app_uid=APP_UID" \ -d "email=EMAIL" mobius.appStore .balance({ appUid: 'APP_UID', email: 'EMAIL', }) .then(data => { ... }); getBalance($EMAIL);printf(PHP_EOL.'Balance for %s is : %s' .PHP_EOL,$EMAIL,$userBalance); mobius.app_store.balance(app_uid='APP_UID', email='EMAIL') mobius.appStore .balance({ appUid: 'APP_UID', email: 'EMAIL', }) .then(data => { ... }); Returned JSON (in JavaScript all keys converted to camelCase) Get balance of credits for email. Users transfer credits into apps on the DApp store and you can then query the number of credits a user currently has in your app. The email of the user whose balance you want to query. curl "\ -H "x-api-key: API_KEY_HERE" \ -d "app_uid=APP_UID" \ -d "email=EMAIL" \ -d "num_credits=NUM_CRED Continue reading >>

Github - Blockchain/service-my-wallet-v3: Blockchain Wallet Api Service

Github - Blockchain/service-my-wallet-v3: Blockchain Wallet Api Service

To use this API, you will need to run small local service which be responsible for managing your Blockchain.info wallet. Your application interacts with this service locally via HTTP API calls. Start the server: $ blockchain-wallet-service start --port 3000 Reference the documentation and start interacting with your wallet programmatically! Note that blockchain-wallet-service is designed to be run locally on the same machine as your application and therefore will only accept connections from localhost. If you modify this service to accept external connections, be sure to add the appropriate firewall rules to prevent unauthorized use. An API code is required for wallet creation and higher request limits. For basic usage, no API code is required. Request an API code here . If you already have an application that uses Blockchain.info's Wallet API , you will need to complete the steps in the Getting Started section above and then, in your application code, replace calls to blockchain.info/merchant/... with localhost:/merchant/.... All endpoints present in the API documentation above are supported in Blockchain Wallet API V2. The differences between two are: The "consolidate addresses" endpoint has been omitted All endpoints can be called with GET or POST, and can only be accessed from localhost. password - main wallet password (required) api_code - blockchain.info wallet api code (required) priv - private key to import into wallet as first address (optional) label - label to give to the first address generated in the wallet (optional) email - email to associate with the newly created wallet (optional) { "guid": "05f290be-dbef-4636-a809-868893c51711", "address": "13R9dBgKwBP29JKo11zhfi74YuBsMxJ4qY", "label": "Main address"} to - bitcoin address to send to (required) amount Continue reading >>

More in cryptocurrency