{"id":22915024,"url":"https://github.com/stratisproject/pystratis","last_synced_at":"2026-03-06T08:01:54.825Z","repository":{"id":44664019,"uuid":"381733021","full_name":"stratisproject/pyStratis","owner":"stratisproject","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-17T14:45:25.000Z","size":7321,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-12T13:52:33.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stratisproject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-30T14:37:40.000Z","updated_at":"2022-08-20T08:53:19.000Z","dependencies_parsed_at":"2023-01-23T05:31:22.100Z","dependency_job_id":null,"html_url":"https://github.com/stratisproject/pyStratis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stratisproject/pyStratis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratisproject%2FpyStratis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratisproject%2FpyStratis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratisproject%2FpyStratis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratisproject%2FpyStratis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stratisproject","download_url":"https://codeload.github.com/stratisproject/pyStratis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stratisproject%2FpyStratis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30166859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T05:18:20.152Z","updated_at":"2026-03-06T08:01:54.803Z","avatar_url":"https://github.com/stratisproject.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pystratis\nPython package for interacting with Stratis (STRAX) full node and Cirrus/Interflux sidechain.\n\n## Installation\n### From the Python Package Index (PyPi)\n`pip install pystratis`\n\n### Most recent (from GitHub)\n`pip install git+https://github.com/stratisproject/pystratis.git`\n\n### Install from PyPi with test dependencies\n`pip install pystratis[test]`\n\n## Tutorials\n- [Node and network basics](https://github.com/stratisproject/pyStratis/blob/master/tutorials/NodeAndNetworkBasics.md)\n- [Using Pystratis.core](https://github.com/stratisproject/pyStratis/blob/master/tutorials/CoreBasics.md)\n- [Wallet basics](https://github.com/stratisproject/pyStratis/blob/master/tutorials/WalletBasics.md)\n- [Sending a transaction](https://github.com/stratisproject/pyStratis/blob/master/tutorials/SendingTransaction.md)\n- [Smart contract basics](https://github.com/stratisproject/pyStratis/blob/master/tutorials/SmartContracts.md)\n- [Sending a CrossChain Transaction](https://github.com/stratisproject/pyStratis/blob/master/tutorials/SendingCrossChainTransaction.md)\n- [ColdStaking](https://github.com/stratisproject/pyStratis/blob/master/tutorials/ColdStaking.md)\n\n## Basic examples\n\n### Create a wallet\n\n```python\nfrom pystratis.nodes import StraxNode\n\nnode = StraxNode()\n\n# Back up the mnemonic phrase, that's the only thing that could restore your wallet.\nmnemonic = node.wallet.create(name='MyWallet', password='qwerty12345', passphrase='')\n```\n\n### Send funds\n\n```python\nfrom pystratis.nodes import StraxNode\nfrom pystratis.core.networks import StraxMain\nfrom pystratis.core.types import uint256, Money, Address\nfrom pystratis.core import Outpoint, Recipient\n\nnode = StraxNode()\n\n# Get first spendable transaction.\ns_tx = node.wallet.spendable_transactions(wallet_name='MyWallet').transactions[0]\n\n# Set our own address as recipient of change, use Money arithmetic for amount calculations.\nrecipient_self = Recipient(destinationAddress=s_tx.address, amount=s_tx.amount - Money(1.0),\n                           subtraction_fee_from_amount=True)\n\nrecipient_another = Recipient(destinationAddress=Address('\u003canother address\u003e', network=StraxMain()), amount=Money(1.0),\n                              subtractFeeFromAmount=False)\n\n# Spend utxo from our transaction.\noutpoint = Outpoint(transaction_id=s_tx.transaction_id, index=s_tx.index)\n\nbuilt_transaction = node.wallet.build_transaction(wallet_name='MyWallet', password='qwerty12345', outpoints=[outpoint],\n                                                  recipients=[recipient_self, recipient_another], fee_type='high')\n\nnode.wallet.send_transaction(built_transaction.hex)\n```\n\n## Testing guide\n\n- Unit tests: `pytest -m \"not integration_test\"`\n- Strax integration tests: `pytest -m \"strax_integration_test\"`\n- Cirrus integration tests: `pytest -m \"cirrus_integration_test\"`\n- Interflux integration tests: `pytest -m \"interflux_integration_test\"`\n- Mainnet integration tests: `pytest -m \"mainnet_test\"`  \n- Integration tests: `pytest -m \"integration_test\"`\n- Everything: `pytest`\n- Coverage: `coverage run -m pytest`\n- Coverage report: `coverage report -m`\n\n## ReadTheDocs documentation\nReadTheDocs API documentation can be found at [http://pystratis.readthedocs.io](http://pystratis.readthedocs.io).\n\nDocumentation can be build locally with the following commands: \n```commandline\ncd doc_build\nmake html \n```\n- Other output options: `make help`\n- After building, documentation for `make html` can be found in [docs/html/index.html](docs/html/index.html), open with your favorite browser. \n\n# Credit\n\nThanks goes to [@TjadenFroyda](https://github.com/tjadenfroyda) for his contributions in kickstarting this repository.\n\n# ChangeLog\n### Version 1.1.2.1\nFixed dependencies\n### Version 1.1.2.0\n- Adopted new declarative configuration script (pyproject.toml)\n### Version 1.1.1.0 (StratisFullNode release/1.1.1.0)\n- Added voting/polls/expired/whitelist and voting/polls/expired/members endpoints\n- Updated voting/polls/tip response model\n- Fixes for calling RPC through api\n### Version 1.1.0.1 (StratisFullNode release/1.1.0.13)\n- Added externalapi route and endpoints\n- Added blockstore/getutxosetforaddress endpoint\n- Added voting/schedulevote-kickmember and voting/polls/tip endpoints\n- Added node/rewind and node/datafolder/chain endpoints\n- Added federationgateway/transfer and federationgateway/transfers/deletesuspended endpoints\n- Added multiple interop endpoints, removed interop/status endpoint\n- Added federation/federationatheight and federation/mineratheight endpoints\n### Version 1.0.6.0 (StratisFullNode release/1.0.9.6)\n- SignalR added to cirrusminernode\n### Version 1.0.5.0 (StratisFullNode release/1.0.9.5)\n- Added 'retrieve-filtered-utxos' endpoint for coldstaking\n### Version 1.0.4.0 (StratisFullNode release/1.0.9.4)\n- No API updates for SFN release/1.0.9.4\n### Version 1.0.3.0 (StratisFullNode release/1.0.9.3)\n- No API updates for SFN release/1.0.9.3\n### Version 1.0.2.0 (StratisFullNode release/1.0.9.2)\n- Add optional block_height to LocalCallContractTransactionRequest\n- Added new node definition (cirrusunity3dnode) with unity3d endpoints\n### Version 1.0.1.0 (StratisFullNode release/1.0.9.1)\n- Updates for SFN release/1.0.9.1\n  - Note: wallet.history strax integration test fails due to negative fee returned when address specified.\n  - Added contract_swagger and dynamic_contract endpoints\n### Version 1.0.0.7 (StratisFullNode release/1.0.9.0)\n- Initial pystratis release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstratisproject%2Fpystratis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstratisproject%2Fpystratis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstratisproject%2Fpystratis/lists"}