Skip to main content
A self-custody wallet can export its raw private keys. This is the user’s escape hatch: their keys are theirs, and they can take them elsewhere.

Export

exportEvmKey() and exportSolanaKey() each run a passkey gesture and return the raw private key as a hex string. They are available only on a self-custody (own-origin) client.
In React, use useExport, which exposes both mutations with shared pending and error:
The EVM key is the root; the Solana key is a leaf derived from it. Export returns raw keys, never a mnemonic phrase. Avok never mints one.
An exported key is plaintext custody. Once it leaves the passkey sandbox, Avok’s guarantees no longer apply to that copy. Handle it in a user gesture, show it once, and never persist or transmit it.