Questions tagged [cli]
The cli tag has no usage guidance.
26 questions
4
votes
2
answers
1k
views
Bitcoin-cli how to get balance of a wallet on different node?
I am making a bitcoin mobile application, and I an trying to get the balance of a wallet that is on the mobile phone, from a daemon that is running on a separate node. The mobile wallet is connected ...
2
votes
1
answer
44
views
Need Coldcard CLI doc clarification
I'm looking at the documentation for the Coldcard CLI and I'm a little confused as to what specifically the -p, --path TEXT command does. In the documentation, it says the following:
% ckcc msg --...
2
votes
1
answer
2k
views
How to broadcast transaction through Bitcoin-cli on public node
I have my Bitcoin WIF on a mobile application, and I want to use a Bitcoin-cli node running externally on a server to broadcast my transaction request from my mobile device. I cannot use SendToAddress ...
2
votes
0
answers
200
views
How to load multiple wallet ? Proper way to handle multiple wallet like account wise wallet
I am trying understand the multiple wallet.I took the reference from this link
What I want to do ?
Right now in single wallet we can create multiple accounts and each accounts can have multiple ...
2
votes
1
answer
226
views
I can't send a transaction from electrums cli
I am trying to send a transaction in the cli using electrum with the command ~$
electrum --testnet payto mvYrQck9VfujSanmwvQxiLab3fLuywGdvh 0.01 -f 0.002
Password: (I entered the correct password ...
1
vote
2
answers
381
views
getblocktemplate returns out of memory
I tried on a few different machines, vps etc. Also, few different altcoin litecoin included. Most were with 4 GB of ram, if this matters.
Every time when I enter the command getblocktemplate , I get ...
1
vote
3
answers
456
views
Standard CLI tool to calculate a public key out of a private key
Is there a standard, or at least well-accepted, CLI tool that calculates the public key out of a private key?
I've done my homework erading How do you get a Bitcoin Public Key from a Private Key, but ...
1
vote
1
answer
953
views
Getting current Bitcoin Fees from Command LIne?
I have a shell script, that fetches current bitcoin fees from https://bitcoinfees.21.co/ with this command:
curl -sS -L --insecure https://bitcoinfees.21.co/api/v1/fees/recommended
When I run this ...
1
vote
1
answer
107
views
Can I read blockchain's information from Electrum's python console?
I wanted to use Electrum's python console, but the documentation just gives a few examples.
Is there a more complete documentation about python commands inside Electrum ?
Main tasks I currently want ...
1
vote
1
answer
461
views
Electrum: Transaction Error with Restored Wallet
I am trying to import my bitcoin privatekey to my electrum wallet and use that wallet to create transactions.
I restored the wallet using the command electrum restore <private key>
The restore ...
1
vote
0
answers
158
views
CLI Tool or API for btc address generation given a xpub
I'd like to script a short tool on the commandline. Therefore I need all used addresses of my wallets derived from a given xpubs.
Don't like to implement it by myself. Is there an already implemented ...
1
vote
0
answers
56
views
Preparing a transaction with many outpts
What would be the exact command to prepare a transaction with multiple outputs, to a specific address?
I'm able to list all my outputs with lightning-cli listfunds, but I'm not sure how to include ...
1
vote
1
answer
768
views
Electrum Gap Limit from CLI
Is there any way to change wallet gap limit in Electrum from command line? If yes, how? If not, could it be bypassed using some kind of external script? I really need to avoid GUI. Thank you in ...
1
vote
0
answers
216
views
sendtoaddress not deducting from account
I have two accounts called "hot" and "cold" and have few address and transactions in each of them. I am trying to move some funds between "hot" to "cold" and using sendtoaddress like this
bitcoin-...
1
vote
0
answers
48
views
Where is documentation for the CLI for the GameCredits Core for Windows?
I am using GameCredits. I installed the node software locally and synced all the content. However, no helpfile seems to come with the software and I don't know how to start. I am quite new to this ...
0
votes
2
answers
345
views
signmessage and verifymessage CLI commands not accepting Address from getnewaddress?
I am trying the following commands on my v0.19.0.1 Core implementation:
CLI signmessage $(CLI getnewaddress) <message>
and the identical
CLI signmessagewithprivkey $(bitcoin-cli dumpprivkey $(...
0
votes
1
answer
93
views
In bitcoin-cli getpeerinf call what does "-1" mean as a "synced_headers" or "synced_blocks" value?
Sometimes I see this in getpeerinfo:
"synced_headers": -1,
"synced_blocks": -1,
sometimes it's only synced blocks at -1.
What does that mean?
0
votes
1
answer
488
views
How to use bitcoin from the command line in Windows?
Do there exist any stable and audited bitcoin wallets that can be used from the cli on Windows? I have looked but have been unable to find any that I can use for automated tasks.
0
votes
1
answer
278
views
Sweep all functionality for a Bitcoin Lightning private key using mobile, desktop, or cli wallet?
Bitcoin wallets have a sweep all function to transfer all coins from one private key to another. Is there such a feature in a bitcoin lightning wallet where you can sweep all coins from a lightning ...
0
votes
1
answer
101
views
How to spend from the "master_private_key": “df484533kf5mzv83892a234a44ae9z83m832987a82mqwmdkks018121204v95las9"
I made a backup of an outdated command line interface BTC wallet, here is an example:
"master_private_key": “df484533kf5mzv83892a234a44ae9z83m832987a82mqwmdkks018121204v95las9"
How can I import this ...
0
votes
2
answers
361
views
How can I -abort ./bitcoind -reindex-chainstate?
I made files re-accessible. Now we could return to a later, already synchronized state with the files. I tried to put ./bitcoind -reindex-chainstate=0, also in a bitcoin.conf, also directly calling ...
0
votes
2
answers
160
views
Unexpected behaviour Bitcoin RPC getbalance
I am seeing a smaller amount of BTC when I run ./bitcoin-cli getbalance compared to ./bitcoin-cli getbalance "" Here is the documentation on GetBalance from the BTC wiki, which highlights why I am ...
0
votes
1
answer
274
views
Delete a specific private key from an Electrum 3.3.8 wallet via the command line?
I imported a few private keys into my electrum wallet via the command line. Now I want to delete these specific private keys from electrum 3.3.8 - What is the command to delete these keys from my ...
0
votes
1
answer
429
views
Creating watch wallet from master public key at command line?
I know that by electrum -w WALLET_PATH create a usual wallet can be created. I'm now looking for way to create wallet file from master public key.
Question
Given I have master master public key, e....
-1
votes
1
answer
41
views
how import in my client
bitcoin-cli -rpcwallet=leg importprunedfunds getrawtransaction gettxoutproof
after that I get only read only, what am I doing wrong?
-1
votes
1
answer
42
views
how multi sample run bitcoin-qt on windows
c:\data\bitcoin-qt -wallet=c:\dir\wal\ -datadir=c:\btcdata\
and
c:\data\bitcoin-qt -wallet=c:\dir\wal2\ -datadir=c:\btcdata2\
take error
sqlitedatabase: unable to obtain an exclusive lock on the ...