Expand description
§smplx-sdk
The smplx-sdk crate is a standalone set of modules of a larger Smplx framework that can be used separately to interact with Simplicity smart contracts.
It also streamlines building, signing, and broadcasting transactions on Liquid.
§Functionality
signer- Securely parse BIP39 mnemonics, manage keys, sign transactions, and work with confidential addresses.provider- Connect to existing Elements nodes via RPC or Esplora APIs to query UTXOs and broadcast transactions.transaction- High-level builder abstractions overFinalTransaction,UTXO,PartialInput, andPartialOutput.program- Load and interact with Simplicity (.simf) smart contracts.
The smplx-sdk can be used as a standalone SDK, however, check out Smplx for a complete Simplicity development experience.
§Features
By default, smplx-sdk is wasm-incompatible with provider functionality turned on. Disable a provider feature to make the SDK wasm-compatible.
§Quick Start
Read simplex/README.md.
§Disclaimer
Secure DeFi. On Bitcoin.
Modules§
- constants
- Common constants and identifiers used across the Simplex SDK.
- global
- Global state, configuration, and shared context used throughout the SDK.
- program
- Core abstractions, definitions, and errors for compiling and evaluating Simplicity programs.
- provider
- Interfaces and implementations for interacting with blockchain nodes and APIs.
- signer
- Traits and mechanisms for signing transactions and satisfying witness requirements.
- transaction
- Building Elements transactions for the
Signerto complete. - utils
- General utility functions, conversions, and helper tools.