Questions tagged [console]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
29 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 ...
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
27 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....
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 =...
3
votes
1answer
127 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 ...
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 ...
1
vote
1answer
272 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
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....
0
votes
2answers
118 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 ...
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
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 ...
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
2answers
517 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
74 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 ...
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
211 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
2answers
443 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 ) ...
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 ...
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
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?...
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 ...
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 ...
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
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 ...
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
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', '...
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' ...
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 ...
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/...
0
votes
1answer
871 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:...
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 ...
2
votes
2answers
173 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?
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?
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 ...
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
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: ...
0
votes
1answer
138 views

ENS Registrar Initializing …

I am trying to bid on a domain. However it says "Initializing ENS Registrar" ... So ... I check the JavaScript Console (as recommended) and here is what it says: However I don't know what to do now.....
1
vote
0answers
67 views

Tech challenges related to coinbase account recovery

I am trying to reacquire access to a coinbase account that I used as the repository for ethereum I was mining almost 2 years ago. I have the json file corresponding to the correct address. I have ...
1
vote
0answers
107 views

Could we run `Parity` where we could have access to web3.debug on javaScript console?

Parity does not return anything for web3.debug on java script console. The way I run Parity: parity --chain parity.json --network-id 23422 --reserved-peers myPrivateNetwork.txt --jsonrpc-apis web3,...
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
807 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.
1
vote
0answers
332 views

Mining in geth Panic:Ethash_full_new IO or memory error

i have already created my own private network and created my own account, i wanted to try to mine but when i do mining suddenly stops and i do not know what are the error that causes it i just see ...
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?
1
vote
2answers
514 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){ ...