Stack Exchange Network

Stack Exchange network consists of 174 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 [console]

The tag has no usage guidance.

1
vote
0answers
15 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
0answers
23 views

Fatal: Failed to start the JavaScript console: api modules: context deadline exceeded [duplicate]

I am trying to attach a console to a running geth on local machine but each time it says "context deadline exceeded". I have tried all these but same error: geth attach /path/to/ipc/geth.ipc geth ...
-1
votes
0answers
26 views

Issues with starting geth console

I am having trouble opening up a geth console for my private Ethereum network - I get a lot of ssdp errors. I am sure it is something simple I have missed but cannot put my finger on it. All help ...
0
votes
1answer
29 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
29 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
31 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
23 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
237 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
33 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
12 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 ...
0
votes
0answers
28 views

ethereum console in a web page

I didn't find this, but it may exists already. I'm looking for a web based Ethereum console that, along the same lines of remix, can use metamask as injected web3 provider.
0
votes
1answer
263 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
107 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
22 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
206 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
875 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
118 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
0answers
67 views

not able to retrive inserted attributes with keccak256 hash in geth (works with remix)

contract: pragma solidity ^0.4.6; contract UserCrud { struct UserStruct { bytes32 userEmail; uint userAge; uint index; bytes32 hash1; } mapping(bytes32 => UserStruct) ...
0
votes
1answer
209 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?...
1
vote
2answers
2k 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
80 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
77 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
163 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
140 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
127 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(...
3
votes
4answers
4k 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
1k 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
104 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
593 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
274 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
155 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
1k 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
587 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
233 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 ...
0
votes
0answers
895 views

Geth private net hangs indefinitely after mapping network port

I've been trying to initialize geth but it always hangs after "mapped network port". Sometimes it continues after a few attempts, but recently it's been pretty consistent. I've tried removedb, ...
2
votes
3answers
1k 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
98 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
129 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
64 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
103 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,...
9
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
801 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
292 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
470 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
178 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 ...
2
votes
1answer
257 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 ...