-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path__init__.py
More file actions
50 lines (43 loc) · 1.04 KB
/
__init__.py
File metadata and controls
50 lines (43 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""Mina Protocol Python SDK.
Provides a typed client for the Mina daemon's GraphQL API with
currency arithmetic, automatic retries, and context manager support.
Quick start::
from mina_sdk import MinaDaemonClient, Currency
with MinaDaemonClient() as client:
status = client.get_sync_status()
account = client.get_account("B62q...")
print(f"Balance: {account.balance.total} MINA")
"""
from mina_sdk.daemon.client import (
DaemonConnectionError,
GraphQLError,
MinaDaemonClient,
)
from mina_sdk.types import (
AccountBalance,
AccountData,
BlockInfo,
Currency,
CurrencyFormat,
CurrencyUnderflow,
DaemonStatus,
PeerInfo,
SendDelegationResult,
SendPaymentResult,
)
__all__ = [
"AccountBalance",
"AccountData",
"BlockInfo",
"Currency",
"CurrencyFormat",
"CurrencyUnderflow",
"DaemonConnectionError",
"DaemonStatus",
"GraphQLError",
"MinaDaemonClient",
"PeerInfo",
"SendDelegationResult",
"SendPaymentResult",
]
__version__ = "0.1.0"