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

"error": "address manager is locked" #869

Open
phanquocky opened this issue May 19, 2023 · 4 comments
Open

"error": "address manager is locked" #869

phanquocky opened this issue May 19, 2023 · 4 comments

Comments

@phanquocky
Copy link

I try to sign raw transaction but it got this error. These are my commands I use to sign
$ btcctl --wallet listunspent
[
{
"txid": "c17590fb7c92a29068f45e6902ce1fafefacf3f4a4e4e931bc002f780457b667",
"vout": 1,
"address": "mfmMfKWen1jecxtXhwgDNqtUF1WJqoQSXM",
"account": "default",
"scriptPubKey": "76a91402b954371b0ff733a36d3d53a3067f8dbf2f2ff688ac",
"amount": 0.00498507,
"confirmations": 1443,
"spendable": true
}
]

$ btcctl --wallet getnewaddress
n4TbMvRnSuVoFNS3JDhFYpxeQ9HyUN5YMj

$ btcctl --wallet createrawtransaction '''[{"txid": "c17590fb7c92a29068f45e6902ce1fafefacf3f4a4e4e931bc002f780457b667", "vout": 1}] ''' ''' {"'n4TbMvRnSuVoFNS3JDhFYpxeQ9HyUN5YMj'": 0.00488507}'''
010000000167b65704782f00bc31e9e4a4f4f3acefaf1fce02695ef46890a2927cfb9075c10100000000ffffffff013b740700000000001976a914fba82bbfab94162aaff94a3619e45a70f26da13188ac00000000

$ btcctl --wallet --testnet signrawtransaction "010000000167b65704782f00bc31e9e4a4f4f3acefaf1fce02695ef46890a2927cfb9075c10100000000ffffffff013b740700000000001976a914fba82bbfab94162aaff94a3619e45a70f26da13188ac00000000"
{
"hex": "010000000167b65704782f00bc31e9e4a4f4f3acefaf1fce02695ef46890a2927cfb9075c10100000000ffffffff013b740700000000001976a914fba82bbfab94162aaff94a3619e45a70f26da13188ac00000000",
"complete": false,
"errors": [
{
"txid": "c17590fb7c92a29068f45e6902ce1fafefacf3f4a4e4e931bc002f780457b667",
"vout": 1,
"scriptSig": "",
"sequence": 4294967295,
"error": "address manager is locked"
}
]
}

$ btcctl --wallet --testnet signrawtransactionwithwallet "010000000167b65704782f00bc31e9e4a4f4f3acefaf1fce02695ef46890a2927cfb9075c10100000000ffffffff013b740700000000001976a914fba82bbfab94162aaff94a3619e45a70f26da13188ac00000000"
-32601: Method not found

@guggero
Copy link
Collaborator

guggero commented May 19, 2023

Did you unlock your wallet?

@phanquocky
Copy link
Author

Oh, It is my problem. I forgot unlock my wallet? Thank you very much

@guggero
Copy link
Collaborator

guggero commented May 19, 2023

At least that would explain the address manager is locked error. Not sure what the command for unlocking is, I only really use btcwallet as a Golang library.
Not sure about -32601: Method not found, maybe that RPC only exists in bitcoind and not in btcd?

@phanquocky
Copy link
Author

This is the useful information for me, I didn't notice it. I appreciate that. Thank you

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