core lighting funds stuck in onchain wallet
I opened a core lighting channel with Bitcoinwell02 not sure what happen the channel was closed and now the funds are stuck in the onchain wallet havent been able to move or open a new channel
I opened a core lighting channel with Bitcoinwell02 not sure what happen the channel was closed and now the funds are stuck in the onchain wallet havent been able to move or open a new channel
Hi, core lightning team never asks to contact via gmail/call. Please ignore scammers.
@n2bassfishn can you share the output of listfunds and listpeerchannels (maybe obfuscating the hashes and peer_ids if you don't want to leak that information)? That could help us see who closed the channel, and therefore who must wait for the unilateral close timeout to expire.
@n2bassfishn can you share the output of
listfundsandlistpeerchannels(maybe obfuscating the hashes and peer_ids if you don't want to leak that information)? That could help us see who closed the channel, and therefore who must wait for the unilateral close timeout to expire.
I am stuck in a similar situation. Here is the output:
kamakhu@kamakhu:~/lightning$ docker exec lightningd lightning-cli listfunds
{
"outputs": [
{
"txid": "dcef4a39fb6c50cd93ee8b084a26e04213a887add07299686861ce7785a18f3d",
"output": 0,
"amount_msat": 96175000,
"scriptpubkey": "00142a0dbe0170f48bad98a7547603cc8b4a0627e89d",
"address": "bc1q9gxmuqts7j96mx9823mq8nytfgrz06yakm6eh7",
"status": "confirmed",
"blockheight": 926486,
"reserved": true,
"reserved_to_block": 926820
}
],
"channels": [
{
"peer_id": "03d07fbb3b2ed7e6811050dbe8dd519be5289354e1cb6fe3bf003dfbb9d2b70455",
"connected": false,
"state": "AWAITING_UNILATERAL",
"channel_id": "5a59f5eac090c2f6bff0e2a2052a2a763e966d13f8f03e298f48367c8312f1a3",
"our_amount_msat": 50000000,
"amount_msat": 50000000,
"funding_txid": "a3f112837c36488f293ef0f8136d963e762a2a05a2e2f0bff6c290c0eaf5595a",
"funding_output": 0
}
]
}
kamakhu@kamakhu:~/lightning$ docker exec lightningd lightning-cli listpeerchannels
{
"channels": [
{
"peer_id": "03d07fbb3b2ed7e6811050dbe8dd519be5289354e1cb6fe3bf003dfbb9d2b70455",
"peer_connected": false,
"channel_type": {
"bits": [
12,
22
],
"names": [
"static_remotekey/even",
"anchors/even"
]
},
"updates": {
"local": {
"htlc_minimum_msat": 1,
"htlc_maximum_msat": 49454000,
"cltv_expiry_delta": 34,
"fee_base_msat": 1000,
"fee_proportional_millionths": 10
}
},
"last_stable_connection": 1764907147,
"state": "AWAITING_UNILATERAL",
"scratch_txid": "03555f7feacfb62c412c5c56f8559eb73cefd8b65f0fb02f4af21faefc5117fd",
"last_tx_fee_msat": 1735000,
"lost_state": false,
"feerate": {
"perkw": 1250,
"perkb": 5000
},
"direction": 0,
"channel_id": "5a59f5eac090c2f6bff0e2a2052a2a763e966d13f8f03e298f48367c8312f1a3",
"funding_txid": "a3f112837c36488f293ef0f8136d963e762a2a05a2e2f0bff6c290c0eaf5595a",
"funding_outnum": 0,
"close_to_addr": "bc1p97pfz87l90x2suusx555jz742tegclssrjjkvedtg6ytsnmcmqtsj0f45k",
"close_to": "51202f82911fdf2bcca873903529490bd552f28c7e101ca56665ab4688b84f78d817",
"private": false,
"opener": "local",
"closer": "local",
"alias": {
"local": "7393337x9385005x12199"
},
"features": [
"option_static_remotekey",
"option_anchors"
],
"funding": {
"local_funds_msat": 50000000,
"remote_funds_msat": 0,
"pushed_msat": 0,
"psbt": "cHNidP8BAgQCAAAAAQMEGyMOAAEEAQEBBQECAQYBAwH7BAIAAAAAAQBxAgAAAAF+gxGQXoJWGJupWNZbf459ozLa6YorSlebtPNHcHtUgQEAAAAA/v///wKvdwEAAAAAABYAFCoNvgFw9IutmKdUdgPMi0oGJ+idT5cCAAAAAAAWABReqSDr+X3/P8DJmqhENwXDsUFEaAAAAAABAR+vdwEAAAAAABYAFCoNvgFw9IutmKdUdgPMi0oGJ+idAQhrAkcwRAIgFf0P5hM4NwOtCKbSPAZLFvAQetzehiQOFTmLtbullQsCIG/GFCAk3OTVOYviUWC7go7q0GSW2eOseIjnI/6R5Ym7ASEDt1jA85Rc6uZnwjExFI/Ap+hqZspWu8/eYHrctM/OPUoBDiA9j6GFd85haGiZctCth6gTQuAmSgiL7pPNUGz7OUrv3AEPBAAAAAABEAT9////DPwJbGlnaHRuaW5nAgIAAQz8CWxpZ2h0bmluZwEI78lUrPKhNfgAAQMIUMMAAAAAAAABBCIAICKAD/SfFWcsWpvZZQBf3eiJoIsFkNDu+GlMSCNjOfRMAAEDCLmzAAAAAAAAAQQiUSApAZQfjsOJ7bWOl5NzaoFo9c5Fu9cXkvho40T6FAyApyEHD0q6d6ddaeNYJ4URg1pS4RaTLYrURBQhcDgK3hH5pOAJAPi4CBQGAAAADPwJbGlnaHRuaW5nAQje04vkwQmsZAA=",
"withheld": false
},
"to_us_msat": 50000000,
"min_to_us_msat": 50000000,
"max_to_us_msat": 50000000,
"total_msat": 50000000,
"fee_base_msat": 1000,
"fee_proportional_millionths": 10,
"dust_limit_msat": 546000,
"max_total_htlc_in_msat": 18446744073709551615,
"their_max_htlc_value_in_flight_msat": 49500000,
"our_max_htlc_value_in_flight_msat": 18446744073709551615,
"their_reserve_msat": 546000,
"our_reserve_msat": 546000,
"spendable_msat": 45163000,
"receivable_msat": 0,
"minimum_htlc_in_msat": 0,
"minimum_htlc_out_msat": 1,
"maximum_htlc_out_msat": 49454000,
"their_to_self_delay": 144,
"our_to_self_delay": 144,
"max_accepted_htlcs": 30,
"state_changes": [
{
"timestamp": "2025-12-05T04:24:28.275Z",
"old_state": "CHANNELD_AWAITING_LOCKIN",
"new_state": "CHANNELD_SHUTTING_DOWN",
"cause": "user",
"message": "User or plugin invoked close command"
},
{
"timestamp": "2025-12-05T04:24:29.278Z",
"old_state": "CHANNELD_SHUTTING_DOWN",
"new_state": "AWAITING_UNILATERAL",
"cause": "user",
"message": "Forcibly closed by close command timeout"
}
],
"status": [
"Loaded from database"
],
"in_payments_offered": 0,
"in_offered_msat": 0,
"in_payments_fulfilled": 0,
"in_fulfilled_msat": 0,
"out_payments_offered": 0,
"out_offered_msat": 0,
"out_payments_fulfilled": 0,
"out_fulfilled_msat": 0,
"htlcs": []
}
]
}
kamakhu@kamakhu:~/lightning$
docker exec lightningd lightning-cli withdraw bc1qa6lgz6g5rvzdthu8488f2m50ewjel4m73l79g9 all slow 1 { "code": -1, "message": "Error broadcasting transaction: error code: -26\nerror message:\nmempool-script-verify-flag-failed (Script failed an OP_EQUALVERIFY operation), input 0 of 26427bacc0b2f994e83038d72b11b2c86c8b784f3e7b8f8a1802440d32e04a18 (wtxid 5009d9e0f4eb69539dec33fd7bbc5cd09ffa951cd5f17bff046128617397ed82), spending dcef4a39fb6c50cd93ee8b084a26e04213a887add07299686861ce7785a18f3d:0. Unsent tx discarded 020000000001013d8fa18577ce6168689972d0ad87a81342e0264a088bee93cd506cfb394aefdc0000000000fdffffff026d15010000000000160014eebe8169141b04d5df87a9ce956e8fcba59fd77ea86100000000000022512095b77daeb2a11721fd8916e4d6d6162311452584c44432db3c3084e8908ae9050247304402203702ab86dbf8c7963f0c89fd078c6c1e8bbed29a4d4aa78882a92678ea849e49022029800114afb15bb60ad2eb8a4c9aed329e83c606f989b5abb5c4f92b52b5f122012103b758c0f3945ceae667c23131148fc0a7e86a66ca56bbcfde607adcb4cfce3d4ac5230e00" }