Получилось) А как получить из этого созданного адрес кошелька и как импортировать private key?
D:\Bitcoin\daemon>bitcoin-cli -conf=D:\Bitcoin\bitcoin.conf getwalletinfo
{
"walletname": "Test",
"walletversion": 169900,
"format": "bdb",
"balance": 0.00000000,
"unconfirmed_balance": 0.00000000,
"immature_balance": 0.00000000,
"txcount": 0,
"keypoololdest": 1694985896,
"keypoolsize": 0,
"keypoolsize_hd_internal": 0,
"unlocked_until": 1695045232,
"paytxfee": 0.00000000,
"private_keys_enabled": true,
"avoid_reuse": false,
"scanning": false,
"descriptors": false,
"external_signer": false
}
Пробовал hex/wif:
D:\Bitcoin\daemon>bitcoin-cli -conf=D:\Bitcoin\bitcoin.conf importprivkey "0000000000000000000000000000000000000000000000000000000000000001"
error code: -5
error message:
Invalid private key encoding
D:\Bitcoin\daemon>bitcoin-cli -conf=D:\Bitcoin\bitcoin.conf getnewaddress "" legacy
error code: -4
error message:
Error: This wallet has no available keys