Questions tagged [console]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
21
votes
3answers
21k 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?...
13
votes
4answers
5k views

How to open the JavaScript console on Parity?

There is nothing like parity console. How to open the JavaScript console on Parity?
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 ...
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 ...
8
votes
3answers
3k views

JavaScript console on Parity: unable to unlock account. Error: Method not found

How to open the JavaScript console on Parity? guide us to open a console for communicate with Parity. Inside the console I was not able to unlock my eth.account using personal.unlockAccount(). I ...
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 ...
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, '...
7
votes
1answer
3k 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 &...
7
votes
1answer
810 views

Buy Gnosis tokens with geth

How to participate to Gnosis pre-sale using geth javascript console? In gnosis official blog is described how to do it using parity but there's no information on how to do it using geth.
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 ...
5
votes
2answers
479 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 ...
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
6answers
8k views

Web3: How do I get just the first account on testrpc using web3.eth.getAccounts()?

When I run this code in web3 web3.eth.getAccounts().then(e => console.log(e)); The console returns this: [ '0x772f437b0f15e1F205C8BD923b5C8357e9c0c429', '...
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
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 ...
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....
4
votes
1answer
128 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 ...
4
votes
1answer
2k views

Truffle console.log is not working

I've installed Truffle by npm, and running testrpc, but console.log is not working in Truffle console. A simple console.log('test'); do nothing. Any idea?
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: ...
4
votes
1answer
630 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
135 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
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": "...
3
votes
2answers
309 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 ...
3
votes
1answer
450 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....
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()?
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 ...
3
votes
1answer
168 views

“ app.candidates is not a function” getting these error while caling the function through truffle console with "app.candidate'

pragma solidity ^0.5.0; contract Election { //Model a Candidate struct Candidate { uint id; string name; uint voteCount; } //Store Candidate //Fetch ...
3
votes
2answers
664 views

geth attach not working on osx, problem with geth.ipc?

According to this information, I should be able to attach to geth with the following command on my OSX machine: geth attach ipc://somePath/geth.ipc in consideration of what to do about that "...
3
votes
1answer
544 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 ...
3
votes
0answers
117 views

Geth private chain hashrate lower on higher versions

Using Geth I am running a private development chain (locally) with one node, starting it as follows: geth --networkid 12321 --datadir=".embark/development/datadir" --password config/development/...
2
votes
2answers
3k views

How to get a deployed contract instance in truffle console that was deployed without a migration?

I have a contract deployed with truffle to a testrpc local testnet. This contract has has a function that deploys a new contract. This new contract I can check the address in the testrpc console ...
2
votes
1answer
4k views

geth --dev mining

Newbie here. I ran geth --dev and then geth --dev attach on another console and everything is looking fine. When I run miner.start() I can see on my geth --dev window that there are some blocks ...
2
votes
2answers
654 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 ...
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 = ...
2
votes
1answer
641 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 ...
2
votes
3answers
2k views

How to import account form geth console to metamask (private blockchain)

I want to import accounts from geth console(private network) but I can't. I have UTC file when I create account with geth but when I open file and copy mac and paste to metamask (private key) account ...
2
votes
1answer
234 views

Listing filters in geth. Do they timeout and expire?

Suppose I make a JSON-RPC call to create a new filter as follows (from the documention page): // Request curl -X POST --data '{"jsonrpc":"2.0","method":"eth_newFilter","params":[{"topics":["...
2
votes
2answers
182 views

Console application for generating addresses and private keys

Is there a Windows console application that can generate addresses and private keys as output to the console window?
2
votes
3answers
2k views

Start Mining Operation = null (cannot mine private eth chain)

not sure if anyone has seen this before: I'm trying to mine a private chain. For whatever reason, after I was able to mine two blocks, I tried to mine the chain again and I get the following...(below)...
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/....
1
vote
1answer
418 views

Check if node is running in private network

Is there a command in the geth javascript console to check if node is running in private net or if it is public? For now I always had to check it in the left hand corner in mist if it's private or ...
1
vote
1answer
368 views

What is the equivalent to eth.pendingTransactions when running Parity?

I'm running parity --geth and attaching to it with geth attach. I can use the web3.js that is built into that attached console. For example, I can get the latest block info. However, when looking up ...
1
vote
1answer
102 views

Splitter contact: is payable modifier missing?

I am using the geth javascript console, trying to split pre-fork ETH using the ReplaySafeSplit v2 contract 0xaBbb6bEbFA05aA13e908EaA492Bd7a8343760477 (code here). I am doing this as follows: ...
1
vote
2answers
518 views

Truffle console + javascript

I have a question for you guys. I have 2 contracts: contract House { uint public idHouse; ... } contract ArrayHouse { House[] public arrayHouse; function getHouse(uint n) returns(House){ ...
1
vote
1answer
202 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 ...
1
vote
0answers
38 views

MAC OSX geth console error

I have installed Geth on my mac Mojave 10.14.3 by brew tap ethereum/ethereum and brew install ethereum Just the same as the instruction and everything goes well, but when I run geth console ...
1
vote
1answer
325 views

web3 is not defined problem

This is my simple html source code for my website. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewpoint" content="width=device-width, ...
1
vote
0answers
71 views

geth console - web3.isConnected function and not a function?

I am trying to find out if my node is connected. So I attach geth via geth attach in another terminal. But if I run web3.isConnected it returns function(). But when I run it as a function web3....
1
vote
1answer
66 views

Cannot find accounts while using personal.listAccounts

While following this udemy tutorial and configuring the geth client I am presented with the following problem. The instructor hasn't responded yet so I thought I should ask here. The thing is, on ...