curl --request POST \ --url https://api.privy.io/v1/wallets/{wallet_id}/export \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --header 'privy-app-id: <privy-app-id>' \ --data '{ "encryption_type": "HPKE", "recipient_public_key": "<base64-encoded-recipient-public-key>" }'
{ "encryption_type": "HPKE", "ciphertext": "N3rWFx85foeomDu8054VcwNBIwPkVNt4i5m2av1sXsXeWrIicVGwutFist12MmnI", "encapsulated_key": "BECqbgIAcs3TpP5GadS6F8mXkSktR2DR8WNtd3e0Qcy7PpoRHEygpzjFWttntS+SEM3VSr4Thewh18ZP9chseLE=" }
Export a wallet’s private key.
HPKE