API Call when a transaction is unconfirmed

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.

Shayan

Posted 2014-10-22T21:38:46.317

Reputation: 281

1blockchain.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 2014-10-22T21:53:37.537

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 2014-10-22T22:19:22.177

Blocks are not confirmed - blocks confirm transactions.Nick ODell 2014-10-22T22:21:24.930

I may had some mistakes with my wording but what I mean is that when a transaction is seen by the network.Shayan 2014-10-22T22:24:18.310

Also - do you want this to trigger on any transaction, or just to transactions to one of your addresses?Nick ODell 2014-10-23T03:52:56.113

If there would be a way to query on an address to see if there is an unconfirmed amount on the account, that's what I need. I added an example to the questionShayan 2014-10-23T18:15:56.197

No answers