Metadata-Version: 2.4
Name: near-account-py
Version: 1.0.0
Summary: PyPI Package - near-account-py
License: MIT
Project-URL: Homepage, https://github.com/worksOnMyFridge/near-account-py
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: aiohttp>=3.9
Requires-Dist: requests>=2.31

# near-account-py

Python package for account management on the NEAR Protocol.

**Python 3.9+** | `pip install near-account-py`

---

## Installation

pip install near-account-py

---

## Quick Start

from near_account_py import NearAccountPyClient

client = NearAccountPyClient()  # defaults to mainnet RPC

# Check if an account exists
exists = client.account_exists("alice.near")

# Get account details
account = client.get_account("alice.near")

# Get balance
balance = client.get_balance("alice.near")

---

## Usage

client = NearAccountPyClient(
    rpc_url="https://rpc.mainnet.near.org",  # optional
    timeout=30                                # optional
)

### Available Methods

| Method | Description |
|---|---|
| `get_account(account_id)` | Fetch account state |
| `account_exists(account_id)` | Check if account exists |
| `get_balance(account_id)` | Get account balance |
| `get_access_keys(account_id)` | List access keys |
| `send_transaction(signed_tx)` | Submit a signed transaction (sync) |
| `send_transaction_async(signed_tx)` | Submit a signed transaction (async) |
| `get_block(block_id)` | Fetch block by ID or `"latest"` |
| `get_network_info()` | Retrieve network info |
| `get_gas_price(block_id)` | Get gas price for a block |

---

## Networks

# Testnet
client = NearAccountPyClient(rpc_url="https://rpc.testnet.near.org")

---

## License

MIT
