#account-id #validation #facilities #unique #identifier #blockchain

near-account-id

This crate contains the Account ID primitive and its validation facilities

22 releases (6 stable)

new 1.1.4 Sep 7, 2025
1.1.3 Jul 14, 2025
1.1.1 May 5, 2025
1.0.0 Dec 22, 2023
0.10.0 Nov 22, 2021

#924 in Magic Beans

Download history 5075/week @ 2025-05-24 5934/week @ 2025-05-31 5738/week @ 2025-06-07 6801/week @ 2025-06-14 9832/week @ 2025-06-21 5903/week @ 2025-06-28 7038/week @ 2025-07-05 8057/week @ 2025-07-12 7301/week @ 2025-07-19 6409/week @ 2025-07-26 5133/week @ 2025-08-02 7965/week @ 2025-08-09 9225/week @ 2025-08-16 9163/week @ 2025-08-23 12770/week @ 2025-08-30 7786/week @ 2025-09-06

40,245 downloads per month
Used in 86 crates (20 directly)

MIT/Apache

68KB
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.65

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–720KB
~15K SLoC