#account-id #near #valid #validation #identifier #representing #unique

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

#1209 in Magic Beans

Download history 2203/week @ 2024-01-01 3855/week @ 2024-01-08 5244/week @ 2024-01-15 5259/week @ 2024-01-22 4412/week @ 2024-01-29 4114/week @ 2024-02-05 3872/week @ 2024-02-12 4198/week @ 2024-02-19 4698/week @ 2024-02-26 5034/week @ 2024-03-04 4969/week @ 2024-03-11 5623/week @ 2024-03-18 4274/week @ 2024-03-25 5675/week @ 2024-04-01 5381/week @ 2024-04-08 5888/week @ 2024-04-15

21,454 downloads per month
Used in 67 crates (14 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–580KB
~12K SLoC