#account-id #validation #facilities #identifier #near-protocol #blockchain #syntactically

near-account-id

This crate contains the Account ID primitive and its validation facilities

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

Download history 12371/week @ 2025-12-10 10882/week @ 2025-12-17 8016/week @ 2025-12-24 5703/week @ 2025-12-31 8095/week @ 2026-01-07 10435/week @ 2026-01-14 10506/week @ 2026-01-21 12174/week @ 2026-01-28 13815/week @ 2026-02-04 14097/week @ 2026-02-11 14838/week @ 2026-02-18 11955/week @ 2026-02-25 17661/week @ 2026-03-04 18084/week @ 2026-03-11 14925/week @ 2026-03-18 14956/week @ 2026-03-25

67,891 downloads per month
Used in 99 crates (20 directly)

MIT/Apache

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.

crates.io Documentation MIT or Apache 2.0 licensed

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

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