Questions tagged [cli]
23 questions
4
votes
2 answers
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 to this node and can use any of the CLI commands…
Barney Chambers
- 374
- 2
- 14
2
votes
0 answers
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 addresses using getnewaddress command from -cli
So…
user1140237
- 141
- 8
2
votes
1 answer
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 here)
Q
{
"complete": true,
"final":…
John Lee
- 21
- 2
1
vote
1 answer
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
The restore was good and I was able to get my balance to show up…
Toxnyc
- 303
- 1
- 8
1
vote
1 answer
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 because that CLI command can only be run on a…
Barney Chambers
- 374
- 2
- 14
1
vote
2 answers
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 return error message -7 "out of memory".
This…
Alex Brest
- 31
- 4
1
vote
0 answers
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-cli sendtoaddress "one-of-the-cold-wallet-address"…
lambogambo
- 11
- 2
1
vote
0 answers
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 world of blockchains.
Could you point please to an…
Luis Masuelli
- 135
- 3
1
vote
3 answers
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 it's from May 2014, and hopefully tooling has…
Adam Matan
- 619
- 7
- 19
1
vote
1 answer
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 command from (Central-) Europe, I never encountered…
pebwindkraft
- 5,086
- 2
- 13
- 34
1
vote
0 answers
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 API oder CLI-Tool which derives the addresses and…
steff123
- 153
- 3
1
vote
0 answers
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 them all in a transaction with txprepare, so I can…
Realistic_Attitude85
- 21
- 3
0
votes
2 answers
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)
and the identical
CLI signmessagewithprivkey $(bitcoin-cli dumpprivkey $(CLI getnewaddress))
Both times I get Error…
Sachin Meier
- 580
- 2
- 10
0
votes
1 answer
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?
Strob
- 21
- 3
0
votes
1 answer
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.
zzxcv
- 1
- 2