synor/sdk/python/synor_wallet/__init__.py
Gulshan Yadav 59a7123535 feat(sdk): implement Phase 1 SDKs for Wallet, RPC, and Storage
Implements comprehensive SDK support for three core services across
four programming languages (JavaScript/TypeScript, Python, Go, Rust).

## New SDKs

### Wallet SDK
- Key management (create, import, export)
- Transaction signing
- Message signing and verification
- Balance and UTXO queries
- Stealth address support

### RPC SDK
- Block and transaction queries
- Chain state information
- Fee estimation
- Mempool information
- WebSocket subscriptions for real-time updates

### Storage SDK
- Content upload and download
- Pinning operations
- CAR file support
- Directory management
- Gateway URL generation

## Shared Infrastructure

- JSON Schema definitions for all 11 services
- Common type definitions (Address, Amount, UTXO, etc.)
- Unified error handling patterns
- Builder patterns for configuration

## Package Updates

- JavaScript: Updated to @synor/sdk with module exports
- Python: Updated to synor-sdk with websockets dependency
- Go: Added gorilla/websocket dependency
- Rust: Added base64, urlencoding, multipart support

## Fixes

- Fixed Tensor Default trait implementation
- Fixed ProcessorType enum casing
2026-01-27 00:46:24 +05:30

68 lines
1.3 KiB
Python

"""
Synor Wallet SDK
A Python SDK for wallet management, key operations, and transaction signing
on the Synor blockchain.
Example:
>>> from synor_wallet import SynorWallet
>>> async with SynorWallet(api_key="sk_...") as wallet:
... result = await wallet.create_wallet()
... print(f"Address: {result.wallet.address}")
"""
from .client import SynorWallet, WalletError
from .types import (
WalletConfig,
Network,
WalletType,
Priority,
Wallet,
CreateWalletResult,
StealthAddress,
TransactionInput,
TransactionOutput,
Transaction,
SignedTransaction,
SignedMessage,
UTXO,
Balance,
TokenBalance,
BalanceResponse,
FeeEstimate,
GetUtxosOptions,
ImportWalletOptions,
BuildTransactionOptions,
)
__all__ = [
# Client
"SynorWallet",
"WalletError",
# Config
"WalletConfig",
# Enums
"Network",
"WalletType",
"Priority",
# Types
"Wallet",
"CreateWalletResult",
"StealthAddress",
"TransactionInput",
"TransactionOutput",
"Transaction",
"SignedTransaction",
"SignedMessage",
"UTXO",
"Balance",
"TokenBalance",
"BalanceResponse",
"FeeEstimate",
# Options
"GetUtxosOptions",
"ImportWalletOptions",
"BuildTransactionOptions",
]
__version__ = "0.1.0"