near-api-js - v7.0.4
    Preparing search index...

    Type Alias AccountId

    AccountId: string

    AccountId

    NEAR Account Identifier.

    This is a unique, syntactically valid, human-readable account identifier on the NEAR network.

    See the Rust crate documentation for information about validation.

    Also see the error kind documentation.

    use near_account_id::AccountId;

    let alice: AccountId = "alice.near".parse().unwrap();

    assert!("ƒelicia.near".parse::<AccountId>().is_err()); // (ƒ is not f)