Skip to main content

Overview

DynamicSvmWalletClient::export_private_key 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 wallet_properties.account_address to build a full solana-sdk 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 solana-sdk 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 usezeroize::Zeroize the seed bytes after forwarding them.
  • Transport over TLS only — never send the seed over an unencrypted channel.
Last modified on May 19, 2026