Hot answers tagged

7

Using Geth 1.5.3 and later, it's 2 steps: Run geth --testnet removedb to delete your blockchain database for the Morden network. Run geth --testnet ORIGINAL: When you use geth init, the datadir should end with /testnet. For example: /Users/sam/Library/Ethereum/testnet When you use other commands like geth console, the datadir should be the parent ...


5

In March 2016, Gav Wood wrote: we don't yet have a javascript interface, however it should be possible to use eth console or geth console to connect to a running parity client i haven't tried that yet, though...


5

running parity --geth allows to use eth attach or geth attach to spawn a console.


4

Not yet possible as this issue here suggests. ethconsole depends on IPC, which will be available as of Civility (1.1).


4

here is how to do it(Ubuntu): mv ~/.local/share/io.parity.ethereum/keys/DevelopmentChain ~/someFolder cd ~/someFolder/DevelopmentChain parity account import . --chain dev Caveat: if you don't specify the chain, it will import to HOMESTEAD by default.


3

I assume you are referring to the web3.js Javascript library for interfacing with the Ethereum blockchain? I agree. It is great. so why don't upgrade the idea to a general-purpose, handy terminal tool? Because doing so would be reinventing the wheel. Javascript can be executed in all sorts of different environments nowadays. If you want to use it through ...


3

The return value false means that your file in that relative path cannot be found. First try running the file from within the same folder from which you started your geth. Be reminded that this function will not print the return value to the console like that, you need some console.log. You could write an output with the following file that you store as ...


3

In your second call there is a space between -- and datadir, so probably you are running geth with the wrong data directory and therefore you are using the wrong genesis block. Try running geth --datadir /Users/sam/Library/Ethereum/testnet/geth/chaindata/ --networkid 3 console instead of geth -- datadir /Users/sam/Library/Ethereum/testnet/geth/chaindata/ ...


2

geth attach only lets you use webjs methods at the moment. By using nodejs console with @parity/api package you can access parity methods. Install package globally and launch concole : $ npm install @parity/api $ node On node console use parity package : >// import the actual Api class >const Api = require("@parity/api"); >// do the setup >...


2

Both JS api and RPC methods are possible. Creating a contract using the web3 JS api: You only need a running node to connect your web3 and the contract source code. Then you could have a look at the web3 api wiki and use the Ethereum Wallet Dapp multisig contract source code. First, compile the source code (using solc is nice or from an RPC call) then ...


2

You make a function in the contract that can accept row-wise inputs. It can be secured with onlyOwner() or similar, as appropriate. The function is indifferent to the original source of the values. Something like uint[] public myArray'; function appendArray(uint value) public returns(bool success) { myArray.push(value); return true; } Then you ...


2

For Geth, a good entry point is https://geth.ethereum.org/. You can find the binary downloads at https://geth.ethereum.org/downloads. For Parity, the site is https://ethcore.io/parity.html. Downloads are found at the bottom of the page. Both projects are managed as open-source efforts on github. They are both actively maintained, but sometimes links get ...


2

Only a partial answer, I'm afraid... ...and as the node runs I keep seeing the same numbers coming up far more often than randomness would dictate, why for instance does 384 come up so frequently? Good question. I'd speculate that 384 is the largest number of variables of a particular data type that will fit into a "trie node data blob" (i.e. the "...


2

Yes geth --nodkey=key.txt will (re)generate the same enode url repeatedly as the cli options would suggest. It wasn't working for me due to the unfortunate combination of a typo in my sh script and a bad nodekey file.


2

If by CLI you mean shell script, one way is echo 'eth.getTransactionReceipt("<txn hash>")' | geth attach <your web3 provider>


2

If the first account is your addreess you can use geth --exec "web3.fromWei(eth.getBalance(eth.accounts[0]), 'ether')" attach For example you can ask for an arbitrary address replacing eth.coinbase with such address geth --exec "web3.fromWei(eth.getBalance('0xFBb1b73C4f0BDa4f67dcA266ce6Ef42f520fBB98'), 'ether')" attach


1

You're using those options correctly, but the issue here is that Parity UI has been unmaintained for a while now. Every parity version since 2.0.0 doesn't support the UI anymore, and hence most functionality is likely broken. the UI github page mentions some alternatives you can use instead of the UI if you really need a GUI. Otherwise you can pass the ...


1

No, ethereum does not have internal RPC documentation, the only documents are on github wiki https://github.com/ethereum/wiki/wiki/JSON-RPC


1

check out this wiki page https://github.com/ethereum/wiki/wiki/JSON-RPC you can use tab to get the available functions in a specific namespace: exp admin.+tab gives you but you need to refer to the documentation to get the explanation of each function.


1

I have extensively used Geth and Geth-CLI. As far as I know, the only way we can interact with ethereum-cpp is using one of the methods mentioned in the documentation. I didn't even expect geth and ethereum-cpp to have same/similar commands. Geth has a CLI based off the golang debugger. Although, all types of ethereum node can be interacted using the web3 ...


1

There is no --chain option for geth. You can build geth and start it at private blockchain, as follows: Install go Clone go-ethereum project by git clone https://github.com/ethereum/go-ethereum.git Rebuild all commands by make all. For example geth Test whether everything is ok. ./build/bin/geth --datadir=./dev/data0 --networkid 2 console. At first you ...


1

How did you install parity? From source or some sort of binary installer? Where are the keys kept? The keys may be in ~/.local/share/io.parity.ethereum/keys They may also be in ~/.parity/keys The difference is annoying but seems to be the result of building from source vs. installing from binary. The binary is very likely in ~/parity/target/release/...


1

If you installed Parity via Mac-Installer, the executable is not in your default $PATH of your terminal emulator. You can, however, access it directly by executing: /Applications/Parity\ Ethereum.app/Contents/MacOS/parity --help To generate a new signer token, type: /Applications/Parity\ Ethereum.app/Contents/MacOS/parity signer new-token Disclosure, I ...


1

CodeTract is always running a monitor. Since we are currently in the progress of forking, I'll share it for future references: https://fork.codetract.io/ I do not know of any other methods to natively monitor the fork though. https://www.ethernodes.org/network/1 does list client distribution, but the charts are hard to read when it comes to client ...


1

You can use geth. Ubuntu installation instructions: https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu Launch in testnet: geth --fast --rpc --testnet And you can interact with geth via curl (See Ethereum JSON RPC API documentation for examples) Also you need to generate some testnet ethers for yourself first (takes ~1 hour ...


Only top voted, non community-wiki answers of a minimum length are eligible