Questions tagged [console]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
117 views

eth.sign() method giving error

I am using eth.sign from Ethereum wallet developer terminal and getting following error rejection Error: Returned Error: The method eth_sign does not exist/is not available Please advise whats the ...
1
vote
1answer
269 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, ...
0
votes
1answer
65 views

“gas required exceeds allowance” with eth.sendTransaction on geth CLI

I am trying to follow these instructions. I do not want to sync so I run ./geth-1.9.0 --maxpeers 0 console` and do this: FROM="0x..." TO="0x..." ETH_AMOUNT=0.1 NONCE=1 VALUE=web3.toWei(ETH_AMOUNT,...
0
votes
1answer
57 views

How to prevent to change coinbase address for geth?

I am trying to get test ether on ropsten testnet, so I set coinbase address like miner.setEtherbase("0xxxxxxxxxxxxxx") and started to mine from my node, miner.start(4); But someone changed the ...
0
votes
1answer
23 views

Deploy.js script is inifinite, does not show any errors

This is the deploy.js file: const assert = require('assert'); const HDWalletProvider = require('truffle-hdwallet-provider'); const Web3 = require('web3'); const cF =...
0
votes
1answer
26 views

Viewing transaction events by using web3 on geth console

According to https://web3py.readthedocs.io/en/stable/contracts.html#web3.contract.ContractEvents.myEvent web3 allows to extract the pertinent logs from a transaction receipt: tx_hash = contract....
1
vote
0answers
25 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 ...
3
votes
1answer
126 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 ...
1
vote
1answer
91 views

Topics in messages are ignored in filters from shh console

I have setup a private network for testing Whisper. I cannot make filters based on topics to be of any use, because regardless of how I set them, all messages are received. I already have found some ...
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)...
4
votes
6answers
7k 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', '...
1
vote
0answers
62 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
2answers
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 ...
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?
0
votes
1answer
81 views

How to SSH Quorum running on Azure VMs?

I have deployed a Quorum Network on Azure and now I would like to have ssh access. In the creation process I had to set a VM-user and a VM-password. But if I use them like this: ssh VM-user@Public-IP-...
0
votes
1answer
220 views

Using a Linux Socket to Connect to the JavaScript Console

I'm trying to programmatically connect to a JavaScript console (just like you get with geth attach) using the geth.ipc file that gets created in the chaindata folder. On Linux, it's a socket file, so ...
0
votes
1answer
126 views

cpp-ethereum Current block number is 0

I have using eth --private "customChain" --genesis-json genesis.json --db-path data" to create a private chain. and when I into ethconsole it shows: Connecting to node at \\.\pipe\geth.ipc Connection ...
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 ...
1
vote
1answer
63 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 ...
9
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 ...
1
vote
0answers
26 views

Compiling from remix onto geth console

I found how to deploy a contract onto MEW, but I do not understand, partially due to meta references and missing/assumed knowledge. I'm just looking from help on a walk through. I'm including the ...
0
votes
1answer
321 views

Can't see deployed contract in truffle console

As seen in the screenshot, I deploy a contract named TulkerSale using Ganache. Then in truffle console, TulkerSale.deployed() returns an error... How can I access the deployed contract in the console?...
0
votes
2answers
516 views

Get array values in Truffle console

Is there a way to print the values of an array in my contract to a console (using truffle or geth for example)? Suppose this is my contract: contract MetaCoin { uint256[] public someNumbers; ...
0
votes
0answers
73 views

geth exec interpreter persistence

Running geth --exec starts an interpreter. It allows to run geth console commands. I want to load a javascript function that runs continuously in background in geth. It basically continuously looks ...
11
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?
0
votes
0answers
13 views

Eth on unlocking auto transfers

Facing a weird issue on geth console on my private network. So, I was trying to unlock an account so that my web3 can access it. As soon as I unlocked, all my ethers just vanished in seconds.. I could ...
1
vote
1answer
399 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 ...
2
votes
1answer
210 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":["...
0
votes
0answers
41 views

Does the solC compiler work in the geth Javascript console anymore

does the solC compiler work in the javascript console anymore, and if it does how can I install it. I have tried using the compiler methods in the javascript console api however they do not work and ...
0
votes
3answers
1k views

How to see deployed “StandardToken” contract owner with truffle console

I have deployed on testrpc contract with ERC20 token which has following constructor: pragma solidity ^0.4.4; import 'zeppelin-solidity/contracts/token/StandardToken.sol'; contract TutorialToken is ...
0
votes
2answers
442 views

How to read values of Struct in Solidity contract?

I have developed the following smart contract and try to test it via the truffle js console: pragma solidity ^0.4.2; contract AddressRatings { struct Rating { mapping ( address => uint8 ) ...
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?...
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, '...
10
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 ...
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 ...
1
vote
1answer
89 views

External Javascript isn't updating account balance

I have a simple smart contract that is supposed to record input strings on the blockchain using events: pragma solidity 0.4.19; contract Recorder{ event Record( address _from, string ...
2
votes
2answers
172 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?
0
votes
1answer
176 views

Interacting with Contract Abstraction from file

In the official Truffle Docs over here, it is demonstrated how to interact with a deployed contract. So far, I've come across only the Truffle Console, which is everything but intuitive for larger ...
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 ...
0
votes
0answers
157 views

Executing custom script through non-interactive is different from executing through console

I have a private ethereum blockchain with a script, filename.js. miner.stop(); debug.verbosity(4) loadScript("path to FileStorage.js"); var DataStorageContract = web3.eth.contract(JSON.parse(...
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 ...
0
votes
1answer
2k views

Truffle Console not working, opens truffle.js instead. [duplicate]

Am currently trying to learn Dapps, and trying to initiate Truffle. But, when I use the command "truffle console" in the Git CMD window, rather than opening the console, it opens up the 'truffle.js' ...
1
vote
1answer
276 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
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/...
1
vote
1answer
349 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 ...
0
votes
1answer
869 views

Please confirm units in this sendTransaction are reasonable

Can you please double-check this command for me and tell me if I screwed up the units? eth.sendTransaction({ from: "blah", to: "blah", value:20000000000000000, nonce:5, gas:120000, gasPrice:...
3
votes
2answers
642 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 "...
0
votes
1answer
267 views

Cannot call function and send write-Transaction from geth-console

I have a contract which has this function: function registerSensor(bytes32 name, bytes32 unit, bytes32 location) returns (bool success) { sensors[msg.sender].exists = true; sensors[msg.sender]...
2
votes
1answer
3k 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 ...
1
vote
1answer
101 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: ...