#id #identifier #account-id

near-account-id

This crate contains the Account ID primitive and its validation facilities

17 releases (1 stable)

1.0.0 Dec 22, 2023
1.0.0-alpha.4 Nov 24, 2023
1.0.0-alpha.1 Oct 29, 2023
0.18.0 Dec 14, 2023
0.10.0 Nov 22, 2021

#4 in #account-id

Download history 5675/week @ 2024-07-29 5198/week @ 2024-08-05 5075/week @ 2024-08-12 4386/week @ 2024-08-19 4176/week @ 2024-08-26 4714/week @ 2024-09-02 4211/week @ 2024-09-09 4189/week @ 2024-09-16 5200/week @ 2024-09-23 3474/week @ 2024-09-30 3012/week @ 2024-10-07 6213/week @ 2024-10-14 6648/week @ 2024-10-21 6508/week @ 2024-10-28 6295/week @ 2024-11-04 6084/week @ 2024-11-11

25,656 downloads per month
Used in 73 crates (15 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–590KB
~12K SLoC