#account-id #facilities #near-protocol #blockchain #near-account-id

near-account-id

This crate contains the Account ID primitive and its validation facilities

18 releases (2 stable)

new 1.1.0 Apr 23, 2025
1.0.0 Dec 22, 2023
1.0.0-alpha.4 Nov 24, 2023
0.18.0 Dec 14, 2023
0.10.0 Nov 22, 2021

#2 in #near-protocol

Download history 3807/week @ 2025-01-01 5551/week @ 2025-01-08 6841/week @ 2025-01-15 7802/week @ 2025-01-22 7890/week @ 2025-01-29 8535/week @ 2025-02-05 7992/week @ 2025-02-12 6754/week @ 2025-02-19 7526/week @ 2025-02-26 7708/week @ 2025-03-05 8853/week @ 2025-03-12 8900/week @ 2025-03-19 7638/week @ 2025-03-26 11397/week @ 2025-04-02 7771/week @ 2025-04-09 5619/week @ 2025-04-16

34,063 downloads per month
Used in 76 crates (16 directly)

MIT/Apache

60KB
1K 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
~16K SLoC