# strledger - Sign Stellar Transaction with Ledger on the command line.
![example](https://github.com/lightsail-network/strledger/blob/main/img/example.png)
## 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 ledgerctl, you can check ledgerctl for
more features.
Options:
-v, --verbose Display exchanged APDU.
--help Show this message and exit.
Commands:
app-info Get Stellar app info.
get-address Get Stellar public address.
sign-auth Sign a base64-encoded soroban authorization...
sign-tx Sign a base64-encoded transaction envelope.
sign-tx-hash Sign a hex encoded transaction hash.
version Get strledger version info.
```
## Library Usage
```python
from strledger import get_default_client
client = get_default_client()
# 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()}")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/overcat/strledger",
"name": "strledger",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "stellar, ledger",
"author": "overcat",
"author_email": "4catcode@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/12/e3/773a1a7a3f21158c52154419e4c58304ee9bb82778fbb91188b34962cff1/strledger-0.6.1.tar.gz",
"platform": null,
"description": "# strledger - Sign Stellar Transaction with Ledger on the command line.\n\n![example](https://github.com/lightsail-network/strledger/blob/main/img/example.png)\n\n## Installation\n```shell\npip install -U strledger\n```\n\n## Cli Usage\n```text\nUsage: strledger [OPTIONS] COMMAND [ARGS]...\n\n Stellar Ledger commands.\n\n This project is built on the basis of ledgerctl, you can check ledgerctl for\n more features.\n\nOptions:\n -v, --verbose Display exchanged APDU.\n --help Show this message and exit.\n\nCommands:\n app-info Get Stellar app info.\n get-address Get Stellar public address.\n sign-auth Sign a base64-encoded soroban authorization...\n sign-tx Sign a base64-encoded transaction envelope.\n sign-tx-hash Sign a hex encoded transaction hash.\n version Get strledger version info.\n```\n\n## Library Usage\n\n```python\nfrom strledger import get_default_client\n\nclient = get_default_client()\n# Use the Stellar Python SDK to build a transaction, see https://github.com/StellarCN/py-stellar-base\ntransaction_envelope = ...\nclient.sign_transaction(transaction_envelope=transaction_envelope, keypair_index=0)\nprint(f\"signed tx: {transaction_envelope.to_xdr()}\")\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Sign Stellar Transaction with Ledger on the command line.",
"version": "0.6.1",
"project_urls": {
"Bug Tracker": "https://github.com/lightsail-network/strledger/issues",
"Documentation": "https://github.com/overcat/strledger",
"Homepage": "https://github.com/overcat/strledger",
"Repository": "https://github.com/overcat/strledger"
},
"split_keywords": [
"stellar",
" ledger"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c06dab7893797d8aaa3d20bd8866ac2053b540bd651618599a483942e6753121",
"md5": "537323c0341328701afa652e3d1a74e3",
"sha256": "d37c6087215c1e7fe3ef45041858ab7428a78f4e3293392d10bbbf9c44ab2db8"
},
"downloads": -1,
"filename": "strledger-0.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "537323c0341328701afa652e3d1a74e3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 8721,
"upload_time": "2024-04-23T12:42:22",
"upload_time_iso_8601": "2024-04-23T12:42:22.350839Z",
"url": "https://files.pythonhosted.org/packages/c0/6d/ab7893797d8aaa3d20bd8866ac2053b540bd651618599a483942e6753121/strledger-0.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "12e3773a1a7a3f21158c52154419e4c58304ee9bb82778fbb91188b34962cff1",
"md5": "304afd690baef263784dcee312016d64",
"sha256": "0038d4704346398a8dd8acadbc046ad9a4ced2f515fd9d79ca539867891a2d84"
},
"downloads": -1,
"filename": "strledger-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "304afd690baef263784dcee312016d64",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 6490,
"upload_time": "2024-04-23T12:42:24",
"upload_time_iso_8601": "2024-04-23T12:42:24.017786Z",
"url": "https://files.pythonhosted.org/packages/12/e3/773a1a7a3f21158c52154419e4c58304ee9bb82778fbb91188b34962cff1/strledger-0.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-23 12:42:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "overcat",
"github_project": "strledger",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "strledger"
}