Coder Social home page Coder Social logo

blockchain-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blockchain-api's Issues

unspent-outputs to return proper HTTP error when timing out

When asking for unspent outputs it sometimes times out which doesn't return a proper HTTP error.

https://api.biteasy.com/blockchain/v1/unspent-outputs?per_page=MAX&address%5B%5D=1KSBig8uywSV1SHjGucvNQsWxDAV1qw7tz

In apps, it looks like as if SSL handshake was broken:

SSL handshake aborted:
ssl=0x7779cbf8: Failure in SSL library, usually a protocol error
error:14077410:SSL
routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
(external/openssl/s23_clnt.c:741 0x72f7d7e8:0x00000000)

script_pub_key format?

I really need the "script_pub_key" in the same format that is provided by blockchain.info. Is there a way to convert it?
How could I do that?

Address Details not showing in Firefox on Android

when browsing addresses in Firefox on Android the site does not show any details. Just the website's header is loaded.
screenshot_2014-08-14-08-17-14

Details load fine in Chrome on Android. A little later than the main site, but details show up. Not so in Firefox.

Websockets failure

var mySocket = new WebSocket('wss://ws.biteasy.com/blockchain/v1');
WebSocket connection to 'wss://ws.biteasy.com/blockchain/v1' failed: Error during WebSocket handshake: Unexpected response code: 502

Websocket connection

is the websocket still available? If so, why can't i connect?

I tried connecting using the following:

wss://ws.biteasy.com/blockchain/v1
wss://ws.biteasy.com/blockchain/v1/
ws://ws.biteasy.com/blockchain/v1/
ws://ws.biteasy.com/blockchain/v1

but no luck. Any help appriciated. Thanks!

API documentation down?

I was hoping to look into the Biteasy API but the documentation site seems to be down. I'm visiting this URL: (that's from both the biteasy.com website as well as github)

https://support.biteasy.com/

But it shows some sort of Sirportly page not found error.

Make Money with Blochchain

biteasy is a easy way to learn It-Programming and make Money with blockmining to hash blocks and spend transactions

Add sort parameter for returned results

I have a use case that I need to get the first block of a specific date.

The endpoint /blocks returns the correct list but the block I need is in the end of that list so I have to paginate the whole list or search the previous day and search for the next_block. Both cases are sub-optimal.

Disable paging with &per_page=0

It would be nice if there was an easy way to disable paging. Currently, you have to append something like &per_page=9999999999999

The currently documented behaviour of not returning any results if you append &per_page=0 doesn't make any sense to me. When would you want to use that? Instead, it could disable paging.

Why do I get 403 Forbidden error?

I tried to use the API in a Java and Python applicatin. In both cases I get 403 error. What am I doing wrong?

My Python code:

import json
import urllib2

url = "https://api.biteasy.com/blockchain/v1/addresses/1TNtj2YPt1z7uNWkSzMT5Nvkj3PHKma1z"
data = json.load(urllib2.urlopen(url))    
print data

Push TX??

Now that we have the script_pub_key in a workable format, all we need is PushTX and we can drop the buggy blockchain.info forever. Any plans for this?

Add magic constant MAX to &per_page parameter

I'm opening a separate ticket for this idea, because it's independant from the other tickets.

The idea is that a client can use a stable URL if he wants to raise the number of results to whatever maximum the API will want to serve. The client will specify &per_page=MAX

Also see: #16 (comment)

(This is currently the blocking issue for releasing the swipe wallet feature of Bitcoin Wallet to the public.)

Incorrect Input Address Coming From Multisig Output

How to bypass CORS

How do I get around the CORS restriction on the Biteasy API?

The documentation mentions:

The REST API currently only supports JSON for the request and response formats. That means, that requests should always send the following header:
Content-Type: application/json

But to my knowledge a GET request doesn't even have a content type.

I could use JSONP and provide a callback function like https://api.biteasy.com/blockchain/v1/addresses/1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp/unspent-outputs?per_page=2&callback=callback-function` but Biteasy doesn't seem to understand it needs to wrap the response in the callback function.

/unspent-outputs returns spent outputs

I suspect the UXTO API returns bad results since a few days. Consider this call:

https://api.biteasy.com/testnet/v1/unspent-outputs?address[]=mm4RrYHaQWqSt1SpQATzMR8abTBVdMQ4Qz

It returns several unspent outputs. Now see the same address on this URL, its got a balance of 0:

https://www.biteasy.com/testnet/addresses/mm4RrYHaQWqSt1SpQATzMR8abTBVdMQ4Qz

I did not send any coins from or to this address for about 2 weeks. I think when I last checked, the above API call returned an empty list (as expected). It feels as if some server change during the last few days regressed the expected result to something unexpected.

Add two fields missing from transaction fetch API

If you look at the output for https://api.biteasy.com/blockchain/v1/transactions/d1ef46055a84fd02ee82580d691064780def18614d98646371c3448ca20019ac you will see that there is no way to determine that this transaction has an input with a nonstandard lock time (it's usually 0, but in this rare case it's not).

This makes is impossible to reconstruct the original transaction.

The transaction value for nSequence is not included in the output either, and probably should be for completeness. (I do not have any examples of transactions in the blockchain where this is a non-standard value at this time.)

The reason I want these values is so I can take the JSON and turn it into a binary that matches the original transaction. This is easy with other services; see https://github.com/richardkiss/pycoin/blob/master/pycoin/services/blockr_io.py for an example.

Differences between Blockchain and Biteasy

I am comparing the Blockchain.info and Biteasy API's. Here is an example of the unspent outputs endpoint for the same multisig address for both services. I understand there are small differences between both API's but they seem to differ heavily.

  • The tx_hash (db29...) and transaction_hash (9e07...) are not the same?
  • The tx_index (5480...) and transaction_index (0) are not even close, I guess the transaction_index from Biteasy matches with the tx_output_n?
  • The script (a914...) and script_pub_key (HASH...) are in a different format, I guess you can encode one in the other?

Do both API's simply use different ways to present the same data or is the data different between the two?

BLOCKCHAIN

https://blockchain.info/unspent?active=3CmmhMciChAx4FtGxHtYppoPBLpRLcBy1H

{
"tx_hash": "db29f6a52fa09bf852cefd514fdd71027894f2b19f6fc752cb5e001dc323079e",
"tx_index": 54805310,
"tx_output_n": 0,
"script": "a914798f9646eb0c7efdd33eaf019a35fc6e37bffb4287",
"value": 100000,
"value_hex": "0186a0",
"confirmations": 1369
}

BITEASY

https://api.biteasy.com/blockchain/v1/addresses/3CmmhMciChAx4FtGxHtYppoPBLpRLcBy1H/unspent-outputs

{
"transaction_hash": "9e0723c31d005ecb52c76f9fb1f294780271dd4f51fdce52f89ba02fa5f629db",
"script_pub_key": "HASH160 [798f9646eb0c7efdd33eaf019a35fc6e37bffb42] EQUAL",
"to_address": "3CmmhMciChAx4FtGxHtYppoPBLpRLcBy1H",
"value": 100000,
"transaction_index": 0,
"is_spent": 0,
"script_sent_type": "PAY_TO_HASH"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.