On mainnet, here is how to do it:
- start by creating the key with a non-existent node (here
xxx
does not exist !):
tezos-client -A xxx gen keys for_stackexchange
It will display some error messages and say nothing more. In fact, the key was created.
- call it again:
tezos-client -A xxx gen keys for_stackexchange
Error:
The secret_key alias for_stackexchange already exists.
The current value is unencrypted:edsk43pBvh7zPgiGWSG3XSHybCqdQV7XRosqcGPLA9TDBc5ens7oP4.
- display the associated address:
tezos-client show address for_stackexchange -S
Warning:
Failed to acquire the protocol version from the node
Rpc request failed:
- meth: GET
- uri: http://localhost:8732/chains/main/blocks/head/metadata
- error: Unable to connect to the node: "Connection refused"
Hash: tz1Rpm5To3JT8vpqbt681EMuxEaM4tL2MvRi
Public Key: edpkvPpcAmrCFUiwBPZ4SGEsDXQstVmLHJoXKQURE2ANXem7zQH2e9
Secret Key: unencrypted:edsk43pBvh7zPgiGWSG3XSHybCqdQV7XRosqcGPLA9TDBc5ens7oP4