Bitcoin Forum

Economy => Web Wallets => Topic started by: YouMC on January 13, 2016, 08:47:43 AM



Title: Blockchain API help?
Post by: YouMC on January 13, 2016, 08:47:43 AM
Hi. Not sure if this is the right topic, but whatever :P

I am trying to make something where i need to send many microtransactions. (<10000 satoshi)

The thing is, when i send any sort of transaction using an APi, i can't send any others unless the previous one is confirmed.

I get this error: {"error":"Insufficient Funds Available: 0 Needed: 10010"}

Anyone knows a way how to send money, and be able to send more without waiting the first one to get confirmed?

P.S: I sent it with a good fee: 0.0001 BTC


Title: Re: Blockchain API help?
Post by: shorena on January 13, 2016, 11:40:32 AM
If the API does not allow to use unconfirmed inputs to be used there is nothing you can do but switch do a different API or use bitcoin core directly. It might be risky to use unconfirmed inputs though.


Title: Re: Blockchain API help?
Post by: RocketSingh on January 13, 2016, 12:21:11 PM
Are you using blockcypher API ?


Title: Re: Blockchain API help?
Post by: YouMC on January 13, 2016, 04:00:26 PM
If the API does not allow to use unconfirmed inputs to be used there is nothing you can do but switch do a different API or use bitcoin core directly. It might be risky to use unconfirmed inputs though.

I am not receiving the payments.

When i try sending money from a wallet it sends it successfully, but i cant send another transaction unless the first one is confirmed. I want to be able to use the remaining money to send another transaction without waiting first one to confirm.


Title: Re: Blockchain API help?
Post by: shorena on January 13, 2016, 04:28:47 PM
If the API does not allow to use unconfirmed inputs to be used there is nothing you can do but switch do a different API or use bitcoin core directly. It might be risky to use unconfirmed inputs though.

I am not receiving the payments.

When i try sending money from a wallet it sends it successfully, but i cant send another transaction unless the first one is confirmed. I want to be able to use the remaining money to send another transaction without waiting first one to confirm.

Yes, you want to spend unconfirmed inputs. You "receive" change the same way you receive payments from someone else. You can somewhat mitigate this if you have several inputs available, but that might make your transactions bigger (in byte) and thus more expensive (in fees) over time.


Title: Re: Blockchain API help?
Post by: BTCMINERSdotINFO on January 13, 2016, 07:19:21 PM
how about blockhain api V2?


Title: Re: Blockchain API help?
Post by: YouMC on January 14, 2016, 05:09:50 AM
how about blockhain api V2?
Haven't tried it yet. But i guess i'll have to.