Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Wallet Options – ERC-8128
Skip to content

Wallet Options

The CLI supports multiple ways to provide an Ethereum wallet for signing requests.

Keystore (Recommended)

The most secure option. Uses an encrypted keystore file:

erc8128 curl --keystore ./keyfile.json https://api.example.com/data

For interactive password prompts:

erc8128 curl \
  --keystore ~/.ethereum/keystores/my-key \
  --interactive \
  https://api.example.com/data

You can also set the password via environment variable:

export ETH_KEYSTORE_PASSWORD=your-password
erc8128 curl --keystore ./keyfile.json https://api.example.com/data

Keyfile

A file containing a raw private key:

erc8128 curl --keyfile ~/.keys/bot.key https://api.example.com/data

Use - to read from stdin:

cat ~/.keys/bot.key | erc8128 curl --keyfile - https://api.example.com/data

Private Key

Pass a raw private key directly:

erc8128 curl --private-key 0x... https://api.example.com/data

Or via environment variable:

export ETH_PRIVATE_KEY=0x...
erc8128 curl https://api.example.com/data

Options Reference

OptionDescription
--keystore <path>Path to encrypted keystore file
--password <pass>Keystore password
--interactivePrompt for keystore password interactively
--keyfile <path>Path to raw private key file (use - for stdin)
--private-key <key>Raw private key
Environment VariableDescription
ETH_KEYSTORE_PASSWORDNon-interactive keystore decryption
ETH_PRIVATE_KEYRaw private key