Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem: When using sendtoaddress, an exception occurred: -32603: insufficient funds available to construct transaction #2262

Closed
WarriorFromLongAgo opened this issue Oct 9, 2024 · 1 comment

Comments

@WarriorFromLongAgo
Copy link

btcd run

.\btcd.exe --configfile=.\btcd.conf --miningaddr=SQW4z4BsNZKR42GP1752JqjEiG91PuFa3R

2024-10-09 17:13:02.457 [INF] BTCD: Version 0.24.2-beta
2024-10-09 17:13:02.461 [INF] BTCD: Loading block database from 'C:\Users\65126\AppData\Local\Btcd\data\simnet\blocks_ffldb'
2024-10-09 17:13:02.466 [INF] BCDB: Detected unclean shutdown - Repairing...
2024-10-09 17:13:02.467 [INF] BCDB: Database sync complete
2024-10-09 17:13:02.467 [INF] BTCD: Block database loaded
2024-10-09 17:13:02.475 [INF] INDX: Committed filter index is enabled
2024-10-09 17:13:02.476 [INF] CHAN: Pre-alloacting for 251 MiB
2024-10-09 17:13:02.476 [INF] CHAN: Loading block index...
2024-10-09 17:13:02.478 [INF] CHAN: Chain state (height 26, hash 21b5486c9041c15f9ab09b5dd101c1077195c817a866f8b55bd3e390af82b30b, totaltx 27, work 54)
2024-10-09 17:13:02.481 [INF] RPCS: RPC server listening on 127.0.0.1:18556
2024-10-09 17:13:02.482 [INF] AMGR: Loaded 0 addresses from file 'C:\Users\65126\AppData\Local\Btcd\data\simnet\peers.json'
2024-10-09 17:13:02.482 [INF] CMGR: Server listening on [::]:18555
2024-10-09 17:13:02.482 [INF] CMGR: Server listening on 0.0.0.0:18555
2024-10-09 17:13:21.648 [INF] RPCS: New websocket client 127.0.0.1:53080

btcwallet run

btcwallet --configfile=.\btcwallet.conf --simnet

2024-10-09 17:25:11.364 [INF] BTCW: Version 0.15.1-alpha
2024-10-09 17:25:11.368 [INF] BTCW: Generating TLS certificates...
2024-10-09 17:25:11.377 [INF] BTCW: Done generating TLS certificates
2024-10-09 17:25:11.377 [INF] RPCS: Listening on 127.0.0.1:18554
2024-10-09 17:25:11.377 [INF] RPCS: Listening on [::1]:18554
2024-10-09 17:25:11.377 [INF] BTCW: Attempting RPC client connection to 127.0.0.1:18556
2024-10-09 17:25:11.381 [INF] CHNS: Established connection to RPC server 127.0.0.1:18556
2024-10-09 17:25:11.909 [INF] WLLT: Opened wallet
2024-10-09 17:25:11.911 [INF] WLLT: RECOVERY MODE ENABLED -- rescanning for used addresses with recovery_window=250
2024-10-09 17:25:11.921 [INF] WLLT: Started rescan from block 683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6 (height 0) for 0 addresses
2024-10-09 17:25:11.922 [INF] WLLT: Catching up block hashes to height 0, this might take a while
2024-10-09 17:25:11.923 [INF] WLLT: Done catching up block hashes
2024-10-09 17:25:11.923 [INF] WLLT: Finished rescan for 0 addresses (synced to block 683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6, height 0)
2024-10-09 17:25:47.365 [ERR] CHNS: Websocket receive error from 127.0.0.1:18556: websocket: close 1006 unexpected EOF
2024-10-09 17:25:47.365 [INF] CHNS: Failed to connect to 127.0.0.1:18556: dial tcp 127.0.0.1:18556: connectex: No connection could be made because the target machine actively refused it.
2024-10-09 17:25:47.365 [INF] CHNS: Retrying connection to 127.0.0.1:18556 in 5s
2024-10-09 17:25:52.374 [INF] CHNS: Reestablished connection to RPC server 127.0.0.1:18556
2024-10-09 17:25:52.374 [INF] WLLT: RECOVERY MODE ENABLED -- rescanning for used addresses with recovery_window=250
2024-10-09 17:25:52.375 [WRN] CHNS: Received unexpected reply: {"hash":"683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6","height":0} (id 15)
2024-10-09 17:25:52.408 [INF] WLLT: Started rescan from block 683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6 (height 0) for 1 address
2024-10-09 17:25:52.409 [INF] WLLT: Catching up block hashes to height 0, this might take a while
2024-10-09 17:25:52.409 [INF] WLLT: Done catching up block hashes
2024-10-09 17:25:52.409 [INF] WLLT: Finished rescan for 1 address (synced to block 683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6, height 0)
2024-10-09 17:26:49.580 [INF] WLLT: The wallet has been temporarily unlocked
2024-10-09 17:31:48.974 [INF] WLLT: The wallet has been locked
2024-10-09 17:59:05.289 [INF] WLLT: The wallet has been temporarily unlocked

btcctl run

.\btcctl.exe --configfile=.\btcctl.conf --simnet generate 10
[
  "3de301af7fc0410ddf215cd97129010bffc7289a1391ec508e90cab9524eb75e",
  "128716ed3c7cb6810096eeed85c1d6669be0f1e50fc82a485f94a9967117ff7e",
  "6ea7bf1cae39db21c887c6927cb1a2b5788da4d0f8dca2e94c12540af5265f79",
  "186d8b9db574f9d444408d43647f09fb4d86cdae770e6c235a0580de15236acc",
  "627c4ae9099f757f7d8739eefae47cb7a05367c40e535fe4b1bf38a14ba8df56",
  "4e38579a22461db94dc48d38fe0b12a2ef93d60548b627b32cc52f806646d538",
  "388444f3539c2e8f9f68ddfb9b800911d0d369ca25fa05bfd6c292ee393cf6e9",
  "04c23e4bd3720d920298ab23e9dfb6a6152ea83efd13a9b94935acf1f1334109",
  "179d391a0b7f3e66a5d615182adce2d7e72322fe5425fcc42e2419e2e199c6e0",
  "749f366be8b2f6b829ae5af5dc79bbb783f3129514759171c4bc68ea540fcb82"
]

.\btcctl.exe --configfile=.\btcctl.conf --simnet getbalance
0

.\btcctl.exe --configfile=.\btcctl.conf --simnet getreceivedbyaddress SQW4z4BsNZKR42GP1752JqjEiG91PuFa3R
500

.\btcctl.exe --configfile=.\btcctl.conf --simnet --wallet sendtoaddress "sb1q5hfl9hwlkkqtldwfywuhkksev8ecc8gy5w650w" 44
-32603: insufficient funds available to construct transaction

The address has funds from mining, but it's unable to transfer them to another address.

@Roasbeef
Copy link
Member

You need to mine 100 blocks before you can spend a coinbase output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants