eth_eoa_address
Derive an EOA's Ethereum address and public key from its private key.
Instructions
Derive an EOA's Ethereum address and public key from its private key.
The public key is the curve point k*G, serialized uncompressed (0x04 || X || Y);
the address is the last 20 bytes of keccak256(X || Y), EIP-55 checksummed. This
is the externally-owned-account counterpart to eth_contract_address — it
derives, it does not create an account. Returns {address, public_key}; the
private key is never echoed back.
Exactly one of private_key (inline hex) or private_key_file (a path the
server reads, which keeps the key out of the conversation) is required.
Example: eth_eoa_address( "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80") -> address="0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| private_key | No | A 32-byte secp256k1 private key as hex (0x prefix optional). Never echoed back in the result. Give this or `private_key_file`. | |
| private_key_file | No | Path of a file holding the private key as 64 hex digits (0x and surrounding whitespace optional) or as 32 raw bytes; `~` is expanded. The server reads the file itself, so the key appears in neither the call nor the result, and no error quotes the file's contents. Give this or `private_key`. |