Skip to main content

AccountIdExt

Trait AccountIdExt 

Source
pub trait AccountIdExt {
    // Required methods
    fn is_implicit(&self) -> bool;
    fn is_evm_implicit(&self) -> bool;
    fn is_named(&self) -> bool;
}
Expand description

Extension trait adding near-kit ergonomic helpers to AccountId.

Required Methods§

Source

fn is_implicit(&self) -> bool

Check if this is a NEAR-implicit account (64 hex chars).

Source

fn is_evm_implicit(&self) -> bool

Check if this is an EVM implicit account (0x prefix + 40 hex chars).

Source

fn is_named(&self) -> bool

Check if this is a named account (not implicit, not EVM implicit).

Implementors§