29 releases (13 stable)
Uses new Rust 2024
| 2.6.0 | Mar 17, 2026 |
|---|---|
| 2.5.0 | Dec 15, 2025 |
| 2.0.0 | Sep 26, 2025 |
| 1.1.4 | Sep 7, 2025 |
| 0.10.0 | Nov 22, 2021 |
#2 in #near-protocol
67,891 downloads per month
Used in 99 crates
(20 directly)
90KB
1.5K
SLoC
near-account-id
This crate provides a type for representing a syntactically valid, unique account identifier on the NEAR network, according to the NEAR Account ID rules.
Usage
use near_account_id::AccountId;
let alice: AccountId = "alice.near".parse()?;
assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f)
See the docs for more information.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Minimum Supported Rust Version (MSRV)
1.85
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~0–0.8MB
~17K SLoC