A Rust library for interacting with the NEAR Protocol blockchain
This crate provides a high-level API for interacting with NEAR Protocol, including:
- Account management and creation
- Contract deployment and interaction with it
- Token operations (
NEAR,FT,NFT) - Storage management
- Staking operations
- Custom transaction building and signing
- Querying the chain data
- Several ways to sign the transaction
- Account nonce caching and access-key pooling mechanisms to speed up the transaction processing.
- Support for backup RPC endpoints
Example
In this example, we use Bob account with a predefined seed phrase to create Alice account and pre-fund it with 1 NEAR.
use ;
use FromStr;
# async
Features
ledger: Enables hardware wallet supportkeystore: Enables system keychain integrationworkspaces: Enables integration with near-workspaces for testing