Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

The tag has no usage guidance.

0
votes
0answers
29 views

Spending from an Ethereum Private Key Paper Wallet

I have an Ethereum paper wallet with the private key. I want to only spend a fraction of the ethereum on this private key. I also have a few USDC tokens on it that I want to also spend. How can I ...
0
votes
0answers
8 views

Truffle Console detecting a single key press as multiple key presses

So I have installed truffle using: npm install truffle -g, now when running the truffle console some of the key presses are being detected as two key presses for example, pressing up to load the last ...
0
votes
1answer
20 views

Which interface for GETH is the most ideal to learn? How do they differ?

In trying to learn Ethereum and its inner working, i came a crossed https://www.ethereum.org/cli . It states... "Geth and Eth are multipurpose command line tools that run a full Ethereum node. They ...
0
votes
1answer
110 views

Error npm installing consensys diligence takehome bignumber util

``` /sudo npm install Password: Unhandled rejection Error: Command failed: /usr/local/bin/git clone --depth=1 -q -b master https://github.com/debris/bignumber.js.git /Users/quantum/.npm/_cacache/tmp/...
0
votes
1answer
263 views

Infura tutorial no longer accurate, how to get the initial curl HTTPS POST to work?

Following the guide at https://blog.infura.io/getting-started-with-infura-28e41844cc89, step 2 after registering is to send a HTTPS POST using curl. The command is curl -X POST --data '{"jsonrpc":"2....
0
votes
1answer
480 views

Command line tool to interact with smart contract

I want to be able to interact with functions on a smart contract. I do not want to setup my own node using geth, and would like to use something like Infura as a remote node. Based on what I have ...
1
vote
1answer
256 views

When launching a GETH node to Ropsten do I have to define the --bootnodes flag?

These commands work for me I was just wondering if there is a way not to hardcode the enode addresses into the shell script. Here is what I am using and its working: geth --testnet --syncmode "fast" -...
0
votes
1answer
139 views

How to invoke a function?

I have a function as follows : /// @notice send `_value` token to `_to` from `msg.sender` /// @notice send `Pl_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient ...
0
votes
1answer
429 views

Write output into a text file

I am trying to write the output of a command of Geth into a text file. Something like this in the case of Windows: ipconfig /all > c:\my_directory\file_name.txt Is it possible? If yes, how?
1
vote
0answers
45 views

Issue downloading Truffle

I know that the command to download Truffle is 'npm install -g truffle'. When I enter this command using the command prompt, which website does it download the packages from? Does it download from ...
0
votes
1answer
646 views

installed truffle but cannot run commands on commandline [duplicate]

followed up from previous post I installed truffle however this is what I get PS C:\Users\user> npm install -g truffle C:\Users\user\AppData\Roaming\npm\truffle -> C:\Users\user\AppData\Roaming\...
0
votes
0answers
57 views

command line brings up code instead of running commands [duplicate]

I am trying to run truffle commands on commandline but it brings up the code file instead like this
-1
votes
2answers
449 views

Windows - Can mist be used from the command line?

I see that mist can be used from the command line in Linux, but the mist and/or ethereumwallet commands don't work in PowerShell or even Git bash in Windows. Is there any way to use Mist from the ...
0
votes
2answers
286 views

Error when attaching geth

cont from first question I get this error upon keying geth attach ipc:\.\pipe\geth.ipc. Fatal: Unable to attach to remote geth: Timed out waiting for pipe '\\.\pipe\geth.ipc' to come available ...
0
votes
1answer
1k views

How to call web3.js functions synchronous

Installed web3.js 1.0.0-beta.26 on macOS Running testrpc, Node.js based Ethereum client After running node in my terminal and initiating the web3 object listening to port 8545: > var Web3 = ...
2
votes
0answers
92 views

Parity chain specification - use remote file?

When using Parity with a private blockchain, you type: $ parity --chain /path/to/chainspec.json I wonder if there is a way to make this chain spec remote? Could be useful when using multiple nodes. ...
1
vote
1answer
2k views

GETH command --rpc

I want to learn how to use the GETH console. What does command "geth --rpc" do? Why are so many entries generated? What is it syncing? If it is a syncing process, when or what message means the ...
1
vote
1answer
484 views

Balance returns zero but shows ether with web3.eth.getBalance on testrpc

Issue: Using an account on testrpc I get 0 as my balance from within a program but I get the correct amount when I query balance at web3 command prompt: //here I'm calling a function (shown below) ...
2
votes
1answer
558 views

Command line command to get last block hash

In order to know last block hash in bitcoin I can just call bitcoin-cli getbestblockhash from command line. Is there something like that in ethereum or I should use RPC and curl?
2
votes
1answer
182 views

Is “networkID” hex or decimal?

In the parity chain spec file, there is a value for NetworkID. Is this in hex or decimal? On the geth command line, you can specify the network with "--networkid X". Is that hex or decimal? I am ...
0
votes
1answer
2k views

Solidity compiler command-line utility (solcjs) various problems

I am trying to compile a file using solcjs from a command-line, and running into various problems. First of all, I need to supply in the command-line all the files that are imported by the primary ...
2
votes
3answers
1k views

how to send ether on the testnet thru command line, specify gas cost & transaction cost

as you can see in the above screen capture, I'm trying to send some ethers through the command line. something slightly confusing is that from this documentation (I'm using geth), it doesn't seem to ...
2
votes
2answers
1k views

Deploy contract from command line

Is there any command or utility to deploy contract from .sol file to test-net? I've seen there is JSON API, so I can write some code to implement this. But isn't it done already? Thanx.
0
votes
1answer
2k views

Running mist command line

Following this example: http://remix.readthedocs.io/en/latest/tutorial_mist.html I'm trying to run mist via command line, but I get: command not found. I can run geth console, how to do run mist ...
7
votes
3answers
904 views

Alternative to deprecated Greeter example code?

After loads of research, it seems the Ethereum.org Greeter example code no longer works. Here's the GitHub issues thread: https://github.com/ethereum/go-ethereum/issues/3793. There are some ...
1
vote
1answer
158 views

June 2017: Most widely used and accepted Ethereum development framework on MacOSx?

For those getting started with Ethereum development, is there any insight to be offered for which framework to use for mac? There is also this post: Which one is suitable frameworks for Dapp ...
6
votes
1answer
728 views

How to use --trie-cache-gens value as performance tunning on downloading the blockchain (Geth)?

I would like to know how to use a specific command in geth. Geth lists "Performance tuning options: --trie-cache-gens value (number of trie node generations to keep in memory - default: 120). Thing ...
15
votes
3answers
16k views

How can i tell if geth is done running?

Well i am new trying to mine and i did the "C:>geth --rpc" and its still going how will i know when its done? i did all the steps leading to this but my pc just keeps running the INFO [05-18|23:32:...
1
vote
1answer
163 views

Limit number of Mist.exe processes

After a recent update I noticed Mist starts six mist.exe process instances, presumably one for each physical CPU core in my machine. I would like to limit this to just one. Is there a command-line ...
4
votes
1answer
519 views

Save array to text file from geth command line

I have an array myArray on the geth command line of 1000 elements. When I type myArray on the geth console, it prints to screen. I'd like to pipe this to a text file. My development setup uses testrpc ...
1
vote
0answers
250 views

Run code on an open geth command line, but initiated from OS command line

Say I have testrpc set up: testrpc -a 10 and have attached a geth console: geth attach rpc:http://localhost:8545 If I want to run a contract call from the open geth console, but call it from the ...
3
votes
2answers
1k views

geth --testnet error:“could not open database”

I am new to Ethereum. I cannot seem to use the geth cli on the testnet. geth and the GUI (synchronized with the testnet) work, but when I try to to get --testnet, I get: dyn1237-76:eth1 sam$ geth -...
2
votes
2answers
105 views

Difficulties to install Ethereum command line

I tried to install command line tools to Ethereum. I follow this tutorial I already do this commands : brew update brew upgrade brew tap ethereum/ethereum brew install ethereum And after I do ...
2
votes
0answers
1k views

Building ethminer on Win7 using CMake & VS2015

I'm trying to build ethminer on a windows box and am Visual Studio 2015 fails. The steps that I take are the following: Download ethminer/cpp-ethereum and install dependencies using the command line ...
4
votes
1answer
1k views

None of the Geth commands are working

I can not get geth commands to work. I read a lot of information that says use "this" command for "this". Such as --upgradedb or --removedb. These are not working. They reason im trying these ...
5
votes
2answers
2k views

Restart Geth from another process

I want to make a script to restart my server and it's prerequisites, which one of them is geth. I don't see a command line to restart it. I want something like geth --restart --xxxx --yyyyy Does ...
1
vote
1answer
413 views

flag provided but not defined: -targetgaslimit

I've typed targetgaslimit option, however it has returned the following error. enter preformatted text here flag provided but not defined: -targetgaslimit The following is the command. $ geth --...
2
votes
1answer
375 views

Any way to execute a Windows/Linux command from geth?

I am watching an event from a contract in geth, using the callback function, such as: MyEvent.watch(function(err,result),{...}) Once the event is detected, I would like to execute an external ...
5
votes
1answer
2k views

How to readin javascript code into the geth console?

In the contracts tutorial, quite a long piece of code is provided on the geth console to the client: [...] function(e, contract){ if(!e) { if(!contract.address) { console.log("Contract ...
2
votes
2answers
389 views

Buliding geth from source does not make Solidity available

I've made a fresh install of go-ethereum from source on Ubuntu and Fedora, launched it and expected to find Solidity available when doing eth.getCompilers(), but I get an empty list instead. I have ...
5
votes
1answer
589 views

How can I execute code locally at given address?

What's the simplest way of executing piece of code at specific address of the main blockchain locally using the command-line interface? In here it's demonstrated how to play mp3 file based on the ...
2
votes
3answers
977 views

How to build C++ Ethereum without GUI/Qt?

I want to have a clean install of the turbo ethereum C++ clients and command line tools without any GUI dependencies (Qt, etc.) - How to build C++ Ethereum without GUI/Qt? I see AlethZero and ...