2022 Developer Survey is open! Take survey.

Hot answers tagged

53 votes
Accepted

How to import a plain private key into geth or Mist?

Paste the key into a text file, save it to disk and use the path to that file with geth account import. Here are some example Windows instructions that might help: Open Notepad Paste key into notepad ...
user avatar
24 votes

How to import a plain private key into geth or Mist?

Use the following command in the geth console web3.personal.importRawKey("<Private Key>","<New Password>")
user avatar
  • 438
20 votes
Accepted

"SyntaxError: Unexpected token import" on truffle test

All it needed was to add a package.json file to the project directory with some babel dependencies and doing an 'npm install'. Also, adding a '.babelrc' file to the truffle project directory. Finally, ...
13 votes

geth import vs copying chaindata

geth saves its internal states for the main network in the chaindata directory. You can find it in the directory: ~/.ethereum on linux ~/Library/Ethereum on OS X ~/AppData/Roaming/Ethereum It uses ...
user avatar
  • 2,314
12 votes

How to import a plain private key into geth or Mist?

Mist has no way to import via GUI, so you need to import using command line (geth). It will show up in your Mist immediately. For Mac: Open TextEdit Paste key into TextEdit without any extra ...
user avatar
  • 15.1k
10 votes
Accepted

How should we set a import path in solidity?

Files and paths are explained in detail here: http://solidity.readthedocs.org/en/latest/layout-of-source-files.html Key points: Paths In import "filename";, filename is always treated as a path ...
user avatar
  • 15.1k
9 votes

geth import vs copying chaindata

Copying the .ethereum/chaindata folder is a good idea. I've done that on my Rpi2 and everything worked fine. Also, if it's not fully synced on the original machine, the RPi2 will just start syncing ...
user avatar
7 votes

How to import a plain private key into geth or Mist?

For Linux: when you download the mist wallet, you'll get a folder. Inside the folder is where the mist wallet is. After you run the mist wallet, you need to get on cli. Go to /...
user avatar
6 votes

"SyntaxError: Unexpected token import" on truffle test

I tried i_robot's solution, and it almost* worked, I had to add: require('babel-register')({ ignore: /node_modules\/(?!zeppelin-solidity)/ }); require('babel-polyfill'); at the top of my truffle....
user avatar
  • 199
6 votes
Accepted

Importing private key: Why is it so fast?

I guess the speed comparison is against importing a Bitcoin private key. If so, the cause of the difference is due to Bitcoin is based on unspent transaction outputs (UTXO). Each bitcoin transaction ...
user avatar
  • 2,197
5 votes
Accepted

Add existing wallet to geth with address and password

You won't be able to access your account without the private key which is not the same as the password. Your private key is stored in the keystore directory within the Ethereum data directory (per ...
user avatar
  • 388
5 votes

How to import a plain private key into Parity?

In addition to stone.212's answer, here is another way: Simply follow the instructions to import a private key into Geth, and then copy your keystore file into Parity's keys folder.
user avatar
  • 2,502
5 votes

How do I import from / install OpenZeppelin properly?

Here are the full steps starting from a blank truffle project. You could replace truffle init with truffle unbox <package> if you want to start from a Truffle box. Create a new directory ...
user avatar
4 votes
Accepted

Can I test different OS and combine the keystore folder later?

Answer The short answer to your question is yes you can test your keys/wallets on different OS's. Important Note: KEEP MULTIPLE BACKUPS OF YOUR KEYS IN SECURE/SEPARATE PLACES Other Comments If ...
user avatar
4 votes
Accepted

Possible to Import wallet from keystore folder?

Copy the "Keystore" folder into the .ethereum (Hidden folder in Ubuntu) then run geth -updatedb to syncronize
user avatar
  • 779
4 votes

Migration from Geth to Parity: Is there anything to copy/export?

No, you cannot import/export blockchain between geth and parity. However you can import/export wallets between clients. To import to geth you can actually try the --fast command with geth. If it is ...
user avatar
  • 9,273
4 votes
Accepted

Is there a way to manually import a private key into Mist?

Copy your private key into a file, eg privatekey.txt In Linux or Mac, from your Ethereum Wallet (Mist) subdirectory, type ./resources/node/geth/geth account import privatekey.txt In Windows, from ...
user avatar
4 votes

geth import vs copying chaindata

I exported the full blockchain on 1.088.000 Blocks in 13 min. (1.00 GB) To import it on a Ubuntu 14.04 machine and not bad Hardware it tooks over 8 Hours! So import or fully synch from scratch is not ...
user avatar
4 votes
Accepted

How to import solidity libraries in mix?

So it turns out there is an issue in the current release...they have been notified. The work around is to use the full path. I also didn't realize that the full path is case sensitive.
user avatar
  • 391
4 votes

How to import solidity libraries in mix?

You can't import Truffle libraries to any contract in Mix. The thing is that Truffle use your imports to build an only .sol file, so the compiler doesn't import anything. If you want to debug your ...
user avatar
4 votes

solc not importing from github

According to this, solc does not allow to import from github directly. You need to clone the repo and remap the directory path to be able to use them like in browser-solidity.
user avatar
  • 418
4 votes

Solidity: accessing a library constant in a contract that imports the library

Try pragma solidity ^0.4.7; library lib { bytes1 public constant flag = 0x01; function g() constant returns (bytes1){ return flag; } } contract test { bytes1 x = lib.g(); }
user avatar
  • 17.4k
4 votes
Accepted

How to import an account in parity using CLI?

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 ...
user avatar
  • 4,077
4 votes
Accepted

How to import a plain private key into Parity?

I seem to remember just copying them into .local/share/io...../keys. The keys I had were generated on myetherwallet though, not geth. Or depending on how you installed, it might be ~/.parity/keys. ...
user avatar
  • 1,984
4 votes
Accepted

How can import one contract functions in solidity

You can do this by putting this contract in your directory and importing it in your main contract and inherit it. You can import any file by using this syntax on the top of your file: import <...
user avatar
  • 3,405
4 votes

"onlyOwner" Function restrict the call from child contract

Sammu Sundar. It happens because your Logic contract is not an owner/creator of the Storage contract (from what I understood). In this case, it would be better to introduce an additional access ...
user avatar
4 votes

What happens if GitHub path for import changes?

I see where your doubt is coming from. Remix allows imports directly from github for quick development. But development environments such as truffle & hardhat do not support HTTP/HTTPS imports. ...
user avatar
  • 522
4 votes

How to use contracts from project dependencies in Brownie scripts?

You're close. The dependencies section identifies where you want to download. You've correctly placed that part using github syntax. You want to download organization OpenZeppelin with repo ...
user avatar
3 votes

Migration from Geth to Parity: Is there anything to copy/export?

This is documented at https://wiki.parity.io/Importing-a-Chain-from-Geth.html In essence, you can create a fifo using mkfifo, and then run geth export /tmp/yourfifo Put that in the background, and ...
user avatar
3 votes
Accepted

Migration from Geth to Parity: Is there anything to copy/export?

Nothing special needs to be done. Private keys will be imported automatically. On a typical machine, it will take around 1 hour to sync with the network.
user avatar
  • 401

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