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
51
52
53
54
55
56
57
58
//! Client module for interacting with NEAR Protocol.
//!
//! This module provides the core client infrastructure:
//!
//! - [`Near`] — The main client, the single entry point for all operations
//! - [`NearBuilder`] — Fluent builder for configuring the client
//! - [`RpcClient`] — Low-level JSON-RPC client with retry logic
//!
//! # Signers
//!
//! Signers are used for transaction signing. Several implementations are available:
//!
//! | Signer | Use Case |
//! |--------|----------|
//! | [`InMemorySigner`] | Simple scripts with a private key in memory |
//! | [`FileSigner`] | Load from `~/.near-credentials` (near-cli compatible) |
//! | [`EnvSigner`] | CI/CD via `NEAR_ACCOUNT_ID` / `NEAR_PRIVATE_KEY` env vars |
//! | [`RotatingSigner`] | High-throughput with multiple keys (avoids nonce collisions) |
//!
//! # Query Builders
//!
//! Query builders provide a fluent API for read operations:
//!
//! - [`BalanceQuery`] — Get account balance
//! - [`AccountQuery`] — Get full account info
//! - [`AccountExistsQuery`] — Check if account exists
//! - [`AccessKeysQuery`] — List access keys
//! - [`ViewCall`] — Call view functions on contracts
//!
//! # Transaction Builders
//!
//! Transaction builders provide a fluent API for write operations:
//!
//! - [`TransactionBuilder`] — Multi-action transaction builder
//! - [`CallBuilder`] — Function call builder (part of transactions)
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use KeyringSigner;