Skip to main content
Version: v1.7.0

Python SDK

GitHub

Getting Started

  1. [TODO] Install maestro-sdk package
# pip
pip install maestro-sdk

# poetry
poetry add maestro-sdk
  1. Create a Maestro API key.
  2. [TODO] Import the package
from maestro_sdk import MaestroSession

Local Development

  1. Get poetry
  2. Install package: poetry install
  3. Lock dependencies: poetry lock
  4. Run Python shell: poetry run python
>>> from maestro_sdk import MaestroSession
>>> maestro = MaestroSession("mainnet", "<API_KEY>")
>>> chain_tip = maestro.general.chain_tip(maestro)
>>> chain_tip
ChainTip(block_hash='7ed2439755445de6c42984de49c15b0a13326da8a5666e8050cf39fbfd295a7c', slot=94249308, height=8857750)

Documentation