Skip to main content

Overview

DynamicSvmWalletClient::exportPrivateKey returns the wallet’s raw 32-byte Ed25519 secret seed, base58-encoded.
Solana’s Keypair format is 64 bytes (secret_seed || public_key). The SDK returns just the 32-byte secret seed — append the base58-decoded walletProperties.accountAddress() to build a full 64-byte keypair.
Once exported, the raw private key bypasses MPC — any holder can sign without your server’s involvement. Treat it as a one-way operation. Only use it for migration or disaster recovery, and rotate / abandon the wallet afterward.

Prerequisites

Export the Key

Building a 64-byte Keypair

Best Practices

  • One-way operation — don’t continue using the wallet through MPC after exporting; rotate to a fresh wallet.
  • Never log the seed — redact it from all logs and error messages.
  • Zero memory after use — null the byte[] arrays after forwarding them to their destination.
  • Transport over TLS only — never send the seed over an unencrypted channel.

Next Steps

Last modified on May 25, 2026