https://github.com/lightsail-network/strledger
Ledger Hardware Wallet Stellar Python bindings.
https://github.com/lightsail-network/strledger
cli ledger stellar
Last synced: 6 months ago
JSON representation
Ledger Hardware Wallet Stellar Python bindings.
- Host: GitHub
- URL: https://github.com/lightsail-network/strledger
- Owner: lightsail-network
- License: mit
- Created: 2021-08-21T06:07:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-09-01T13:08:36.000Z (11 months ago)
- Last Synced: 2025-10-27T01:31:39.816Z (9 months ago)
- Topics: cli, ledger, stellar
- Language: Python
- Homepage: https://pypi.org/project/strledger/
- Size: 1.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strledger - Ledger Hardware Wallet Stellar Python bindings.

## Installation
```shell
pip install -U strledger
```
## Cli Usage
```text
Usage: strledger [OPTIONS] COMMAND [ARGS]...
Stellar Ledger commands.
This project is built on the basis of ledgerwallet, you can check
ledgerwallet for more features.
Options:
-v, --verbose Display exchanged APDU.
--help Show this message and exit.
Commands:
app-info Get Stellar app configuration info.
get-address Get Stellar public address.
sign-auth Sign a base64-encoded soroban authorization...
sign-hash Sign a hex encoded hash.
sign-message Sign a base64-encoded message.
sign-tx Sign a base64-encoded transaction envelope.
version Get strledger version info.
```
## Library Usage
```python
from strledger import StrLedger
client = StrLedger()
# Use the Stellar Python SDK to build a transaction, see https://github.com/StellarCN/py-stellar-base
transaction_envelope = ...
client.sign_transaction(transaction_envelope=transaction_envelope, keypair_index=0)
print(f"signed tx: {transaction_envelope.to_xdr()}")
```