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
After funding dogecoin multisig address unable to spend from that wallet address getting spendable false. #3405
Comments
Below is my debug.log.file ~/.dogecoin$ sudo tail -n 100 /mnt/dogedrive/.dogecoin/testnet3/debug.log |
Below I once again tried with 3 fresh signer wallet and generate new address on that wallet and tried to create multisig address and funded it and imported its redeemscript and address by using import method but still getting spedable = false solvable = false . ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli getnewaddress SINAC798FF0CnUsNYFBZXtKzjFpPaF5gLKwzuKkMYbcKsd
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli getnewaddress SINBFC94C70CncRiNeKt5kyCFyx7xPa8XQfeaWxK1eAxAE
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli getnewaddress SIN6EA95D70CnW4ac3dY21R58R9wVQWUWezkWdPULruoVq
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli createmultisig 3 '["nUsNYFBZXtKzjFpPaF5gLKwzuKkMYbcKsd","ncRiNeKt5kyCFyx7xPa8XQfeaWxK1eAxAE","nW4ac3dY21R58R9wVQWUWezkWdPULruoVq"]'
{
"address": "2N9LcDezM8QD3EZ5DZQhxk9T6MLQFTRcTq9",
"redeemScript": "5321039f0b5d474f082e0ba6a60248ea903dc65b6535bc142d5e7359a2f979cf5055e7210318bb70a17ff8d85a8dab210e038bb02ac7b9c11b0a0faeda656c4df16cafa0222103356efa507756281e0a544a4913705f4a2e633da9b8ed4ebebce2aacd1d6261fc53ae"
}
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli sendtoaddress 2N9LcDezM8QD3EZ5DZQhxk9T6MLQFTRcTq9 2
f10f1a3b1e6fcf4ac8977a93ccb72339cd7e676c64e548272f6bd018e17cb96b
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli importaddress 5321039f0b5d474f082e0ba6a60248ea903dc65b6535bc142d5e7359a2f979cf5055e7210318bb70a17ff8d85a8dab210e038bb02ac7b9c11b0a0faeda656c4df16cafa0222103356efa507756281e0a544a4913705f4a2e633da9b8ed4ebebce2aacd1d6261fc53ae "new" false
error code: -4
error message:
The wallet already contains the private key for this address or script
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli listunspent 0 9999999 '["2N9LcDezM8QD3EZ5DZQhxk9T6MLQFTRcTq9"]'
[
]
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli importaddress 2N9LcDezM8QD3EZ5DZQhxk9T6MLQFTRcTq9 "new" false
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli listunspent 0 9999999 '["2N9LcDezM8QD3EZ5DZQhxk9T6MLQFTRcTq9"]'
[
{
"txid": "f10f1a3b1e6fcf4ac8977a93ccb72339cd7e676c64e548272f6bd018e17cb96b",
"vout": 1,
"address": "2N9LcDezM8QD3EZ5DZQhxk9T6MLQFTRcTq9",
"account": "new",
"scriptPubKey": "a914b086a64422cff6b4c8655c7b9ffa9a050765b53d87",
"amount": 2.00000000,
"confirmations": 1,
"spendable": false,
"solvable": false
}
] |
|
Basically I want to sign manually 3 signer should sign the transaction one by one. |
This time i made changes and create fresh signer wallet but when i am doing fundraw transaction that time i unable sign getting error. here u can see complete transaction details. Previously to resolve this error I used "sudo /home/ubuntu/dogecoin/src/dogecoind -rescan" so then the wallet fund were reflecting but this process takes too much time. Give me correct solution. Because i want to sign transaction manually each time.
|
If you don't generate the keys inside your wallet, but have the redeemscript imported as above, you can simply use the
So you'd do something like: $ dogecoin-cli signrawtransaction <unsigned_tx> '[]' '["<wif>"]'
{ "hex": "<partially_signed_tx>", "complete": false } and iterate that over |
Please check here i unable to do fundrawransaction getting error |
🤣 |
If i don,t use fundrawtransaction then it will not send change to change address. remaining will get as Total Fee i checked that condition. You can see on this transaction hash which i perform multisig transaction. |
When I am using p2sh flag on importaddress getting error. ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli importaddress 532102324c886c67e43b7cb38493182f093e4f8d725e0cc316c690c4cb27db80da77d021032fbea33ba3b8aabde800649a753b36c84ba6e67b1fc14891f6e289c06d89bca121034518a1d55b5e07cfab0969da5be36d55c2bb5a84c0c63e2be5d283a2475c801353ae "krishna_redeem" true p2sh |
the value you need to give is |
After setting value "true" and importing redeemScript still issue has not been resolved getting error when i am doing listunspent getting spendable false. And one more thing if i sign transactions without fundraw transaction then it is taking remainig amount as an fee. you can see in this transaction. |
> After setting value "true" and importing redeemScript still issue has not been resolved getting error when i am doing listunspent getting spendable false.
@patricklodder Please reply for this i am facing big issue due it. |
Hi @patricklodder Please help me for this matter.
|
The only way how I can reproduce this is by importing the p2sh before
|
What About this how we can calculate fee without fundraw transaction method, because if i am not wrong it calculate transaction fee and set default address as change address, |
with tx overhead: 10 bytes for each input:
for each p2sh output: 24+8 = 32 bytes for each p2pkh output: 28+8 = 36 bytes For example, if you have a tx with 2 inputs, 1 p2pkh output and 1 p2sh output for change:
Say the feerate given by estimatesmartfee is 0.05 DOGE/kB:
you then assign that change back to your p2sh address (or a change address) by adding an additional output. |
@patricklodder @alamshafil
I created multisig address using 3 differant signer wallet addresses and after i send some fausets on that multisig address.
Import address using import method but when i am doing listunspent then i am getting spendable false. why dont know. Here are the steps which i perform.
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli importaddress 2MupaczJX6DgQkPVC8PLDkBGDp3VbAXjGqX "sameb" false
ubuntu@ip-172-31-35-31:
/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli listunspent 0 9999999 '["2MupaczJX6DgQkPVC8PLDkBGDp3VbAXjGqX"]'/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoin-cli sendfrom sameb neU1Ha9cuhbGWmT7xFTLntjWizxnoZskw3 1[
{
"txid": "d407b89fd72efb3528a1b0b9f551765856e140c8050d296adc57de8ba1d57859",
"vout": 0,
"address": "2MupaczJX6DgQkPVC8PLDkBGDp3VbAXjGqX",
"account": "sameb",
"scriptPubKey": "a9141c3f33a4f2c1385c0306a50df3cf67d96245d77287",
"amount": 3.00000000,
"confirmations": 18,
"spendable": false,
"solvable": false
}
]
ubuntu@ip-172-31-35-31:
error code: -6
error message:
Account has insufficient funds
I tried to resolve this error using rescan but not solved.
ubuntu@ip-172-31-35-31:~/dogecoin$ sudo /home/ubuntu/dogecoin/src/dogecoind -rescan
The text was updated successfully, but these errors were encountered: