Bitcoin Forum
May 02, 2024, 05:59:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core won't allow me to spend unconfirmed BTC  (Read 147 times)
Nergon (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 7


View Profile
August 12, 2020, 01:49:01 PM
Merited by ABCbits (1), HCP (1)
 #1

Hello,
I setup a Bitcoin Full Node (Bitcoin Core 0.20.0) for a website and i want to use it with rpc for a website. The website involves sending BTC to another walllet while they are still unconfirmed. The problem is that Bitcoin core won't let me spend Bitcoin from unconfirmed transactions (i always get a "Insufficent founds" error. I tried using -zeroconfspend=1 but it didin't work either. Do you guys know what im doing wrong?
Im using sendtoaddress command for sending btw.
1714629592
Hero Member
*
Offline Offline

Posts: 1714629592

View Profile Personal Message (Offline)

Ignore
1714629592
Reply with quote  #2

1714629592
Report to moderator
1714629592
Hero Member
*
Offline Offline

Posts: 1714629592

View Profile Personal Message (Offline)

Ignore
1714629592
Reply with quote  #2

1714629592
Report to moderator
1714629592
Hero Member
*
Offline Offline

Posts: 1714629592

View Profile Personal Message (Offline)

Ignore
1714629592
Reply with quote  #2

1714629592
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714629592
Hero Member
*
Offline Offline

Posts: 1714629592

View Profile Personal Message (Offline)

Ignore
1714629592
Reply with quote  #2

1714629592
Report to moderator
1714629592
Hero Member
*
Offline Offline

Posts: 1714629592

View Profile Personal Message (Offline)

Ignore
1714629592
Reply with quote  #2

1714629592
Report to moderator
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 12, 2020, 02:23:55 PM
Merited by ABCbits (1)
 #2

I tried using -zeroconfspend=1 but it didin't work either. Do you guys know what im doing wrong?
AFAIK, there is no -zeroconfspend option... the only option similar to this for Bitcoin Core is -spendzeroconfchange, but that is for change outputs... not UTXOs from "incoming" transactions.

The problem is that the sendtoaddress API option will only work with confirmed coins (or your unconfirmed change). Basically, the UTXOs that you can see using listunspent command (with default options)... and if those aren't available, then only unconfirmed UTXOs that we created and are then "trusted". If you want to send unconfirmed coins that were not created by your wallet, you'll need to manually create, sign and send a "raw" transaction.

Refer: https://github.com/bitcoin/bitcoin/issues/3288#issuecomment-28939903

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Nergon (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 7


View Profile
August 12, 2020, 03:39:18 PM
Merited by HCP (2), LFC_Bitcoin (1)
 #3

I tried using -zeroconfspend=1 but it didin't work either. Do you guys know what im doing wrong?
AFAIK, there is no -zeroconfspend option... the only option similar to this for Bitcoin Core is -spendzeroconfchange, but that is for change outputs... not UTXOs from "incoming" transactions.

The problem is that the sendtoaddress API option will only work with confirmed coins (or your unconfirmed change). Basically, the UTXOs that you can see using listunspent command (with default options)... and if those aren't available, then only unconfirmed UTXOs that we created and are then "trusted". If you want to send unconfirmed coins that were not created by your wallet, you'll need to manually create, sign and send a "raw" transaction.

Refer: https://github.com/bitcoin/bitcoin/issues/3288#issuecomment-28939903

Thank you for your fast reply. I implemented it with a "raw" transaction and it works now
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!