Crates.io | near-api |
lib.rs | near-api |
version | 0.6.1 |
created_at | 2021-10-04 12:40:28.810916+00 |
updated_at | 2025-07-05 06:09:08.227651+00 |
description | Rust library to interact with NEAR Protocol via RPC API |
homepage | |
repository | https://github.com/near/near-api-rs |
max_upload_size | |
id | 460113 |
size | 417,718 |
The near-api
is a simple Rust library that helps developers interact easily with the NEAR blockchain. The library was highly inspired by the API of the near-cli-rs
library. The library extensively utilizes builder patterns, this way we guide the users through the user flow, preventing most of the errors and focusing on each step.
Currently, the library provides:
The minimum required version is located in the rust-version field of the Cargo.toml
file.
ledger
: Enables integration with a Ledger hardware signer for secure key management.keystore
: Enables integration with a system keystore signer for managing keys securely on the local system.workspaces
: Provides integration with near-workspaces
for testing purposes. This feature allows you to convert near-workspaces
networks (such as sandbox, testnet, etc.) into a NetworkConfig and use near-workspaces
Account
object as a signer for testing and development.The library is in good condition, but lacks a few points to be even better:
nearcore
as a dependency (#5)The crate provides examples that contain detailed information on using the library.