Constructs a new instance of the SingleAddressWallet.
The configuration object for the wallet.
Creates and initializes a new transaction builder with the wallet's current state.
A promise that resolves to a pre-configured TransactionBuilder instance.
This method simplifies transaction construction by automatically pre-populating the builder with:
The returned builder is ready for you to add outputs and other transaction details.
Returns the "network magic," a unique number identifying the Cardano network.
A promise that resolves to the network magic number (e.g., Mainnet: 764824073, Preprod: 1).
Fetches and parses all reward addresses controlled by the wallet.
A promise that resolves to an array of parsed RewardAddress objects.
Requests a CIP-8 compliant data signature from the wallet.
The address to sign with (as an Address object or Bech32 string).
The hex-encoded data payload to be signed.
A promise that resolves to the signature and public key.
Requests a signature for a transaction using the wallet's keys.
The transaction to be signed, provided as a CBOR hex string.
A flag to control which credentials are used for signing.
A promise that resolves to the deserialized VkeyWitnessSet.
StaticcreateCreates a new wallet instance from a mnemonic phrase.
This factory method is the primary way to instantiate a wallet from a user's seed phrase, handling the necessary key derivation and encryption.
The configuration options for creating the wallet.
A promise that resolves to the newly created wallet instance.
A simple, single-address wallet implementation for programmatic use.
SingleAddressWallet
Implements
Remarks
This class provides a straightforward wallet interface that manages a single payment and staking key pair derived from a specific path. It is not a full Hierarchical Deterministic (HD) wallet and does not perform address discovery. Its simplicity makes it ideal for testing, scripting, or backend applications where interaction with a single, known address is required.