Export an encrypted wallet secret for a specific chain. Send public_key as a non-empty base64-encoded DER/SPKI P-256 public key. The wallet secret is encrypted with HPKE before it leaves the API. For POL, the underlying plaintext is the wallet private key as a 0x-prefixed hex string. For SOL, the underlying plaintext is the wallet keypair encoded as a base58 string. The response returns only the HPKE ciphertext and encapsulated_key needed for client-side decryption.
Account secret API key.
Recipient HPKE public key as a base64-encoded DER/SPKI P-256 public key. Empty strings and non-base64 payloads are rejected.
"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE..."
Wallet exported