{"library":"stellar-sdk","title":"Stellar SDK","type":"library","description":"The Python Stellar SDK provides APIs to build transactions, interact with Horizon and Stellar RPC servers, and support Soroban smart contracts. Version 13.2.1 supports Protocol 23, SEP-45, and async operations. Released roughly monthly on GitHub.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install stellar-sdk"],"cli":null},"imports":["from stellar_sdk.server import Server","from stellar_sdk.transaction_builder import TransactionBuilder","from stellar_sdk.keypair import Keypair","from stellar_sdk.soroban_server import SorobanServer"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://stellar.org","github":"https://github.com/StellarCN/py-stellar-base","docs":"https://stellar-sdk.readthedocs.io/","changelog":"https://github.com/StellarCN/py-stellar-base/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/stellar-sdk/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from stellar_sdk.keypair import Keypair\nfrom stellar_sdk.server import Server\n\nserver = Server(horizon_url=\"https://horizon-testnet.stellar.org\")\nkeypair = Keypair.random()\nprint(f\"Public: {keypair.public_key}, Secret: {keypair.secret}\")\naccount = server.load_account(keypair.public_key)\nprint(f\"Sequence: {account.sequence}\")","lang":"python","description":"Generate a random keypair and load its account from the testnet.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}