Skip to content
English
Keychain provides one SolanaSigner interface across many key-management backends: in-memory keys, cloud KMS/HSM, and managed wallet services. Write your signing code once, then switch backends through configuration. The example below signs and sends a transfer with an in-memory signer. The same code works with any backend that signs a transaction you own (most of them); only the signer’s construction changes. Crossmint and Fordefi native modes rewrite or broadcast the transaction themselves, so they cannot act as a Kit client signer: call them through signAndSendTransaction() from @solana/keychain-core instead.
Kit
Output from a local Surfpool network
Output
The in-memory signer holds a raw private key: use it for development and tests. In production, use a managed backend so keys stay in dedicated infrastructure. See Choosing a backend.

​Use a production backend

To sign with a production backend, install its package (or the umbrella @solana/keychain) and construct the signer through the unified factory. For backends that sign a transaction you own, the signing code stays the same.
AWS KMS
HashiCorp Vault
See the TypeScript guide for every backend’s configuration, or Choosing a backend to compare custody models.