This section provides practical, real-world examples demonstrating how to use the supra-python-sdk for most of the significant operations.
Each example is self-contained, focusing on a single use case, making it easy to understand and adapt for your own projects.
Before running the examples, ensure you have the following:
- Python 3.12+ installed on your system.
uv– used for packaging and dependency management.
Follow the official installation guide to install uv on your system.
You can run any example using the following syntax:
uv run python -m examples.<example_filename_without_py_extension>Running transfer_coin.py example:
uv run python -m examples.transfer_coin