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
Metadata
Release files for near-account-py 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| near_account_py-1.0.0.tar.gz | 3.1 kB | Without provenance | Details for near_account_py-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| near_account_py-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for near_account_py-1.0.0-py3-none-any.whl |
Total release size: 6.6 kB
Release files / near_account_py-1.0.0.tar.gz
| Download URL | near_account_py-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7b1cf4b09f9f1dd0fcc189f144bf77d883796d3c85496285a977ff2b2ab13e8
|
|
BLAKE2b-256 checksum How to use checksums |
2680883089d4f30a6643864d2139ae23fcd74ff84aac37edda67a6bb5ce09011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / near_account_py-1.0.0-py3-none-any.whl
| Download URL | near_account_py-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d50350c6edf708b1627bc986496860b7b4c1de440b1a36b336bf9ff8240dd8a2
|
|
BLAKE2b-256 checksum How to use checksums |
6ac852f209e43ee6a7210c9ba007ba08634a7d9e42696e242869a8b080272ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for near-account-py 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.