Remove address sub from blockchain websocket API

1

Our WebSocket API allows developers to receive Real-Time notifications about new transactions and blocks. The Websocket echo test can be useful for debugging.

Connection URL:

wss://ws.blockchain.info/inv

Status Updates

Regardless of channel subscription you may receive status messages. This should be displayed to the user.

{"op":"status", "msg", "Connected, Subscribed, Welcome etc..."}

Once the socket is open you can subscribe to a channel by sending an "op" message.

Keep Alive

In order to prevent the connection from closing, every 30 seconds or so, make sure to interact with the websocket in any way. If you do not need any data, but want to keep it open, you should send a ping every 30 seconds.

{"op":"ping"}

Subscribing to Unconfirmed transactions

Subscribe to notifications for all new bitcoin transactions.

{"op":"unconfirmed_sub"}

Subscribing to an Address

Receive new transactions for a specific...

0 0
2

According to the docs, Blockchain.info provides a websocket API that streams a few things:

All unconfirmed transactions using "op: unconfirmed_sub"

New blocks & the data they contain using "op: blocks_sub"

All new tx that are detected at a subscribed address using "op: addr_sub", "addr": the address you want notifications.

I'm mostly interested in #3. If I send the "op: addr_sub" command, my websocket client will show all new tx from the moment of that subscription until the socket connection is closed. That's all well and good, but......

Is there a way to UNSUBSCRIBE from an address in the addr_sub list?

There appears to be a socket command "op: unconfirmed_unsub" which will halt the subscription for all unconfirmed tx, but no analog for individual address.

Does anyone know the answer for this? How to unsubscribe from an individually watched address? If my purposes have been satisfied for watching an address and I wish to free up...

0 0
3

BlockCypher runs the Main and Test Bitcoin, Litecoin and Dogecoin block chains. The BlockCypher API is a simple, mostly RESTful JSON API, accessed over HTTP or HTTPS from the api.blockcypher.com domain. All URLs are versioned. We provide push-style APIs using WebSockets and allow you to register a URL to POST to via WebHooks.

Alternatively, libraries native to multiple programming languages can be used.

Several code samples are provided throughout this documentation. If you would like to check them first, they're listed here:

Low volume access to our APIs is fully open but obtaining an API token is recommended to avoid rate limiting. Please contact us if you have any questions.

Language Specific Libraries

Multiple libraries exist for most mainstream programming languages, either provided by BlockCypher or by the community:

RESTful Resources

Most resources exist under a given block chain. The URLs to Bitcoin, Dogecoin, Litecoin, Uro...

0 0
4
...
0 0
5

In computer programming, an application programming interface (API) is a set of routines, protocols, and tools for building software and applications.

An API expresses a software component in terms of its operations, inputs, outputs, and underlying types, defining functionalities that are independent of their respective implementations, which allows definitions and implementations to vary without compromising the interface. A good API makes it easier to develop a program by providing all the building blocks, which are then put together by the programmer.

An API may be for a web-based system, operating system, or database system, and it provides facilities to develop applications for that system using a given programming language. As an example, a programmer who develops apps for Android may use an Android API to interact with hardware, like the front camera of an Android-based device.

In addition to accessing databases or computer hardware like hard disk drives...

0 0
6

Balance

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...

0 0
7

Curl

$ curl https://chain.so/api/v2/short/DOGE/DSfnDweXHwQmUYhprkNpmGo3nuvKepF851

EXAMPLE RESPONSE

{ "status": "success", "data": { "address": "DSfnDweXHwQmUYhprkNpmGo3nuvKepF851", "short": "jvg", "network": "DOGE", "link": "https://chain.so/a/jvg" }, "code": 200, "message": "" }

Send Transaction

Takes a signed transaction in hex format and sends it to the specified network. This is a POST(!) method.

ENDPOINT

POST /api/v2/send_tx/{NETWORK}

REQUEST

Provide a JSON object which contains the following fields:

tx_hex: string
A hex representation of the signed transaction.

200 - SUCCESSFUL RESPONSE

The transaction was delivered to the specified network.

{ "network": "DOGE" "txid": "..." }

404 - FAILED RESPONSE

The transaction was rejected by the specified network.

{ "status": "fail", "data": { "network": "Network is required (DOGE, DOGETEST, ...)", "tx_hex": "A valid signed...
0 0
8

The most easiest way to receive EDC payments. Just use one method to start receive payment to your wallet. Fill the registration form to start working with EDC!

To use the API methods, the user needs token.User registration and generation of tokens occurs in manual mode.

In order to create a new address for the receipt of payments, you must call a request

POST https://receive.edinarcoin.com/new-account/:token

With the following settings

account – account to which all payments will be transferred from the the generated accounts hook – url, to which a POST request will be sent in the case of a new incoming payment. The body of the request is an internal identifier of payment, address, to which came the payment, and its amount.

Url for the hook is optional.

For example:

In response comes a new address

After that, all payments received to the address will be transferred to the user’s account specified in account field.

The...

0 0
9
author m1xolyd1an 12 mounths ago

Video tutorial on using blockchain.info's websocket API to monitor a specific Bitcoin address in real-time.
Building Bitcoin Websites Book: https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X
Google Chart API url for QR code: http://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=

How do you start working in the Blockchain field?

In this tutorial I show how you can use JavaScript to stream live data from the bitfinex Bitcoin exchange using their websocket API. Building Bitcoin Websites Book: https://www.amazon.com/Building-Bitcoin-Websites-Beginners-Development/dp/153494544X BTC: 1NPrfWgJfkANmd1jt88A141PjhiarT8d9U

The blockchain is a distributed ledger technology that underlies cryptocurrencies like Bitcoin. It provides a way to record and transfer data that is transparent, safe, auditable, and resistant to outages. The blockchain has the ability to make the organizations that use...

0 0
10

APIs can be fairly called a force that powers innovative solutions bright entrepreneurs come up with in FinTech and beyond. APIs significantly ease and speed up innovation across industries as they allow businesses to not start from scratch and focus on improving the service instead of building the back-end that powers it. Probably, the vast majority of FinTech companies nowadays are either using APIs or moving towards implementation. The LTP team has covered a wide array of insanely useful APIs startups can access right now to enhance their operations and services.

Another technology that seems to be gaining extraordinary momentum is blockchain. Needless to say, 2016 will be the year of distributed ledger technology application across industries with financial services probably being the one the most transformed by blockchain.

At the crossroads of APIs and blockchain, there are players that seek to empower startups and developers interested in the implementation of...

0 0
11

Make sure to always use HTTPS when calling the API. Non-TLS HTTP requests cause error 403 to be returned. Using non-TLS requests can leak your authentication credentials.

Make sure that your client validates the server's SSL certificate. Many libraries (e.g. urllib2 in Python2) don't validate server certificates by default. Failing to verify the server certificate makes your application vulnerable to man-in-the-middle attack.

Timestamps are always represented as an integer number of milliseconds since the UTC Epoch (a Unix timestamp).

Prices and volumes are always represented as a decimal strings e.g. "123.3432". We use strings instead of floats to preserve the precision.

Parameters for POST calls are sent as URL-encoded forms (application/x-www-form-urlencoded).

Calls to the Market Data APIs are rate limited to 1 call per 10 seconds. All other API calls are rate limited to 1 call per...

0 0
12

Basic MultiSig Wallet API ()

Our Basic Multi-Signature addresses by default require two signatures for all withdrawals: yours, and Block.io's. This method provides exponentially higher security for your Wallets and applications than single-signature addresses. This way, you spend coins yourself, without trusting Block.io with your credentials.

All addresses generated using this API are considered Green, i.e., they can send and receive funds without waiting for confirmations. This is possible since Block.io guarantees coins can never be spent twice. Furthermore, all transactions occur on the Blockchain.

If you require a more elaborate configuration to customize your applications' security, inquire about our Distributed Trust framework by going here. This framework allows up to 5 signatures per address. The use cases are endless!

Getting Started

First, you will need your API Keys, which we provide for Bitcoin, Dogecoin, Litecoin, and their...

0 0
13

How do imagine the future of the world financial system? E-banking, contactless payment, cryptocurrency markets are among the things that are already real. The ability to make transactions and payments in a secure way without having to pay commission fees can fundamentally change the financial industry in the future. This is possible with Blockchain technology. Let's find out what else the new technology is capable of.

According to the

research conducted by Gartner

, a business based on blockchain technologies will cost about $10 billion and will go into different sectors of the economy by 2022. The potential use of technology will vary from e-voting to managing medical records. So, it's about time we found out what benefits for business blockchain technologies will bring.

For the first time, the term Blockchain appeared as the name of a distributed database based on the bitcoin cryptocurrency. Blockchain can serve both as a way of storing data and a digital...

0 0