Skip to content

ethereum

Note

This connector is currently being refactored as part of the Gateway V2 redesign. The current V1 version is working, but may have usability issues that will be addressed in the redesign.

📁 Folders

ℹī¸ Protocol Info

Ethereum Website | CoinMarketMap | CoinGecko

👷 Maintenance

  • Release added: 0.2.0 by CoinAlpha
  • Maintainer: CoinAlpha

🔑 Connection

There are two ways to connect your Ethereum wallet:

  1. Importing the wallet's keyfile
  2. Importing the wallet's private key

We recommend using the keyfile method over copying and pasting the private key. If your private key remains in your clipboard, there is a risk that a malicious website that you visit may utilize Javascript to access your clipboard and copy its contents.

Keyfile

To import your wallet using its JSON keyfile:

  1. Export the JSON keyfile from other wallets such as Metamask, MyCrypto, or MyEtherWallet
  2. Save the file in the /conf directory
  3. Rename the file to key_file_[address].json, where [address] is the public Ethereum address in the format 0xabc...def.
  4. Start Hummingbot
  5. Run connect command to confirm if keys are confirmed and added for ethereum.

When you import a wallet with Hummingbot, a JSON file named key_file_[address].json is created in the /conf directory. This JSON keyfile contains the encrypted private key of your wallet and can be imported into other dApps.

Private key

  1. Run the command connect ethereum in the Hummingbot client
  2. Enter your wallet private key
  3. Enter Ethereum node address (starts with https://)
  4. Enter the WebSocket connection address of your Ethereum node (starts with wss://)

Within the Hummingbot CLI, you can use the export_private_key command to display the private key associated with a wallet address. You can import your wallet to dApps like Metamask and MyCrypto using this private key as well.

📡 Node

Interacting with blockchain protocols requires access to a node through which you can send and receive data.

Run command config ethereum_rpc_url to use your Ethereum node with Hummingbot:

Which Ethereum node would you like your client to connect to? >>>

Ethereum node providers


Last update: 2021-12-15
Back to top