Crates.io | near-account-id |
lib.rs | near-account-id |
version | 1.0.0 |
source | src |
created_at | 2021-10-04 04:32:37.199565 |
updated_at | 2023-12-22 12:58:13.183494 |
description | This crate contains the Account ID primitive and its validation facilities |
homepage | |
repository | https://github.com/near/near-account-id |
max_upload_size | |
id | 459921 |
size | 78,012 |
This crate provides a type for representing a syntactically valid, unique account identifier on the NEAR network, according to the NEAR Account ID rules.
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.
Licensed under either of
at your option.
1.65
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.