Skip to main content
Hook that provides a wrapped function to export Solana account private keys with authentication checks. This hook uses useEnforceAuthenticated to ensure the user is signed in before attempting to export.

Returns

Example

Deprecated

This function will be removed soon. Use useSolanaKeyExportIframe instead for a more secure key export experience that never exposes the private key to your application’s JavaScript context.

See

useSolanaKeyExportIframe