Crate near_api_lib
source ·Expand description
A comprehensive Rust library for interacting with the NEAR blockchain.
This crate simplifies the process of building applications on the NEAR platform by providing re-exports of key components necessary for interacting with the NEAR blockchain, including account management, transaction building and signing, provider interfaces for blockchain queries, and cryptographic utilities.
It is designed to offer Rust developers a streamlined, idiomatic way to create, sign, and broadcast transactions, manage accounts, and query blockchain state without dealing with the underlying complexity directly.
§Features
- Account management through
near_accounts
- Transaction construction, signing, and submission via
near_transactions
- Blockchain interaction through the
near_providers
withJsonRpcProvider
- Cryptographic operations facilitated by
near_crypto
- Access to NEAR blockchain primitives through
near_primitives
This crate aims to be a one-stop solution for Rust developers building on the NEAR platform, providing the necessary tools and abstractions to create robust, secure, and scalable applications.
Re-exports§
pub use near_providers as providers;
pub use near_primitives as primitives;
Modules§
- The
accounts
module provides functionalities for managing NEAR blockchain accounts, allowing for operations such as account creation, access key management, contract deployment, making change and view function calls, and transaction execution. It abstracts the complexities of transaction construction and signing, making it easier to perform account-related operations.
Structs§
- Represents a NEAR account, encapsulating account ID, signer, and provider for blockchain interaction.
- Signer that keeps secret key in memory.
- Represents a provider that uses JSON RPC to interact with the NEAR blockchain.