Questions tagged [console]
The console tag has no usage guidance.
79
questions
1
vote
1answer
207 views
solc: exit status 1 when compiling my contract on my private blockchain
I was trying to compile an example contract as told in the official website: here
it was successful to setSolc and getCompilers ,but some errors occur when compiling the contract available on that ...
3
votes
2answers
318 views
Will a smart contract get deleted once Geth's console is closed?
Is there anyway to deploy a contract permanently on my private chain?
I tried the greeter contract and closed the console. After running the console again and trying to invoke my greet function I ...
1
vote
0answers
75 views
Javascript client generates transaction that is not found on etherchain
I'm having a tough time. I am trying to do a simple sendTransaction from the javascript console. I get a transaction id but it is invalid (or not found) on etherchain.org. I've already tried re-...
4
votes
1answer
130 views
int256 range on geth command line
When I do the following on the geth command line:
20000000000000000000-19999999999999999989
it returns 0
I'm guessing this is because of a 64 bit limit on ints.
Is there a way to get it to return ...
7
votes
2answers
4k views
How can I run scripted geth commands with specified command line parameters?
I have a contract running on the testnet, and every time I need to call a function, after opening Geth I have to type (or paste):
primary = eth.accounts[0];
personal.unlockAccount(primary, '...
3
votes
1answer
452 views
Inside `geth` how could I convert abi object into a string?
Inside geth how could I convert abi object into a string? I want to convert it into string to apply str.replace(/[\r\n]/g, ''); to remove new lines and make it more compact.
myContractCompiled.Array....
4
votes
6answers
2k views
Is there any software apart from Geth and Mist that offers the Javascript console? I want to use the console but I don't want to do all that syncing
Is there any software apart from Geth and Mist that offers the Javascript console? I want to use the console but I don't want to do all that syncing.
Parity does not have a console as far as I know ...
4
votes
1answer
1k views
personal.unlockAccount() Error: Invalid JSON RPC response and crashes Geth
It's launch of Geth:
geth --testnet --fast --rpc --verbosity 0
The start of interaction with console:
geth attach ipc:/.../geth.ipc
Console works great but when I inputs the following command:
...
3
votes
3answers
1k views
How to run multiple commands in single line in geth console?
Can I run multiple commands at once in geth's JavaScript console?
Can I do something like > api1.command1() && api2.command2("arg2") && api1.command3()?
1
vote
1answer
277 views
Unable to launch ethconsole with eth (cpp-ethereum) (Ubuntu 14.04)
I successfully launched a node. Everything works fine, even GPU mining. Except I'm unable to connect with ethconsole, as I get an error message :
$ethconsole
Connecting to node at /home/user/....
3
votes
1answer
548 views
Problems with sending eth from multisig wallet to account using geth console
I'm running simple tests using geth console before making implementation in java project.
I'm using geth 1.5.4 running as one private node with mining. Here is the command I use to start geth:
geth --...
3
votes
1answer
1k views
Printing into console: Events TypeError - 'watch' is not a function
Printing into console
I need to print out values like these green lines:
1) Tried returning
When I call a function that returns a string, the hexa transaction address gets printed instead of the ...
5
votes
2answers
482 views
Eth Console Won't Start: Invalid Argument Console
Can't Use "Eth Console" Command upon Installing Eth with Spacebrew
Hi everyone, I'm learning how to create my own d'apps on the Ethereum blockchain as part of a Master's thesis research process. So ...
3
votes
2answers
3k views
How to make a GUI with Geth
Actually, I'm not even sure if what I'm asking is possible.
At the moment, I can run a script in the Geth Console which is creating contract in local.
I would like to create a simple interface with 2 ...
7
votes
1answer
9k views
How to get string from hex on Smart Contracts results [duplicate]
On a Smart Contract called "mem" there is a function called "get()" that returns a bytes32 that is supposed to be a string. How can I decode the string? The result is an hex value. I have tried ...
4
votes
0answers
136 views
Geth console output: “broke chain ordering” and “potential rewrite attack” [duplicate]
I sometimes run geth with this command: 'geth -rpc' It usually prints a bunch of uninteresting status info, but this morning it started printing this:
I0916 07:49:32.384544 eth/handler.go:295] Peer ...
4
votes
1answer
632 views
JS Console for Browser Solidity?
Is there any way to connect a console to Browser-Solidity's JavaScript-VM? I'd like to send JS calls to contracts.
4
votes
0answers
302 views
How to add additional parameters to Ethereum Wallet?
I wish to add a few more fields to the wallet file & save it in the keystore so that I can manage them better. For instance, consider the following:
{
"address": "...
2
votes
1answer
85 views
How to automaticlly find the contract?
I created a private network using go-ethereum with 2 clien which are VMs(ubuntu 14.04).
On VM1, I created a contract:
N1greeterSource ='contract mortal { address owner; function mortal() { owner = ...
5
votes
2answers
1k views
Is it possible to unlock a geth wallet through JSON RPC? [duplicate]
I'm currently developing an application on top of Ethereum's JSON RPC. I would like to be able to unlock and lock the wallet as needed, similar to how Bitcoin does it. However, it seems that at the ...
21
votes
3answers
22k views
What's the Solidity statement to print data to the console?
Sometimes it would be really helpful to be able to see string representations of variable values in the Geth console, like of argument values in functions. Can I somehow print them to the Geth console?...
7
votes
1answer
4k views
Executing custom JavaScript Snippets through Non-Interactive console (geth --exec)
I have a JavaScript snippet to get the latest transaction to/from an account. After starting the geth instance, I did this in the interactive JS console:
jsFunction is a function in filename.js
&...
4
votes
3answers
4k views
Installing solidity in Debian Linux
I'm trying to install solidity but apparently there are no online repositories with all dependencies. I have tried using the methods described here.
sudo add-apt-repository ppa:ethereum/ethereum
...
4
votes
2answers
2k views
How do I delete the geth console history?
how do I delete the geth console history ?
I'm concerned with this, especially in light of this recent Mist hack :
On the console you can also unlock accounts (one at a time).
personal....
10
votes
4answers
3k views
Does parity include a console?
I can run geth console to get a command line interface spawned after launching geth. Similar also works for eth.
I tried parity console but that didn't work out.
~ $ parity console
Invalid ...
2
votes
1answer
643 views
What to do after running geth?
I'm new to ethereum, I followed the installation guide and chose to go with the Geth Go-implementation.
The first command i run was geth --console that downloaded all the blocks, one issue though is ...
11
votes
5answers
3k views
Geth Console - Sleep after mining a block?
I am running a local testnet with a low mining difficulty to test my contracts, and I am conscious that when I start another mining geth instance the total computation will hog my CPU.
My question ...
4
votes
3answers
13k views
Add existing wallet to geth with address and password
A few months ago I mined some Ethereum. I do not have the .json file anymore. But I do have the address and the password. Currently I'm running Geth (for the past 12 hours) but I'm not able to put in ...
2
votes
2answers
658 views
Can't enter any commands after starting eth on Windows
I'm running the eth client (0.9.41) on Windows 10 using the following command:
eth --frontier -b -i
as stated here.
The program hangs and I'm not able to enter any commands. The last produced ...