Skip to content

Reference

loadStellarKeypair

Convenience alias for Keypair.fromSecret when hydrating persisted Stellar-format secrets.

Thin wrapper returning Keypair.fromSecret(secret).

Setup

import { loadStellarKeypair } from '@fairmint/canton-node-sdk';

Minimal example

const keypair = loadStellarKeypair('STELLAR_SECRET_SEED_STRING');

Parameters

  • secret — **S-prefixed Stellar secret seed string.

Returns

Keypair.

Errors

Propagates stellar-base parsing exceptions when malformed.

Source

src/utils/external-signing/stellar-utils.ts