1

Is there a way to get blockchain.info API call to know when the network sees an unconfirmed transaction? I'm also interested in any other method to get this result.

The API works fine on the first confirmation but I need a faster method; I can't use bitcoind.

Here's an example that uses chain.so. (I'd prefer to use blockchain.info for all my queries)

here is an address that has 1 BTC unconfirmed transaction by the time of writing: 12gZ9aUaQbu7Pnguot6aKKjuuzQyY15VAE

the API call is : https://chain.so/api/v2/get_address_received/btc/12gZ9aUaQbu7Pnguot6aKKjuuzQyY15VAE

and the output is :

{
  "status": "success",
  "data": {
    "network": "BTC",
    "address": "12gZ9aUaQbu7Pnguot6aKKjuuzQyY15VAE",
    "confirmed_received_value": "0.00000000",
    "unconfirmed_received_value": "1.00000000"
  }
}

unconfirmed_recieved_value is what I need.

  • 1
    blockchain.info doesn't have a callback for that, unless you're talking about their receive payments API. What do you mean by 'bestchain'? I assume that you're asking about the best blockchain, but you also say that you're asking for something faster than first confirmation. – Nick ODell Oct 22 '14 at 21:53
  • bestchain is the longest blockchain that has not been confirmed yet. what I need is a api call that I can check if a transaction has been added to the best chain yet or not, let's say if it's in pre-confirmed state or not. – Shayan Oct 22 '14 at 22:19
  • Blocks are not confirmed - blocks confirm transactions. – Nick ODell Oct 22 '14 at 22:21
  • I may had some mistakes with my wording but what I mean is that when a transaction is seen by the network. – Shayan Oct 22 '14 at 22:24
  • Also - do you want this to trigger on any transaction, or just to transactions to one of your addresses? – Nick ODell Oct 23 '14 at 3:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.