Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WalletAccount

Interface of a WalletAccount, also referred to as an Account.

An account is a read-only data object that is provided from the Wallet to the app, authorizing the app to use it.

The app can use an account to display and query information from a chain.

The app can also act using an account by passing it to {@link Wallet.features | features} of the Wallet.

Wallets may use or extend {@link "@wallet-standard/wallet".ReadonlyWalletAccount} which implements this interface.

interface WalletAccount {
readonly address: string;
readonly chains: IdentifierArray;
readonly features: IdentifierArray;
readonly icon?: WalletIcon;
readonly label?: string;
readonly publicKey: Uint8Array;
}

§Properties

§
readonly address: string
[src]

Address of the account, corresponding with a public key.

§
readonly chains: IdentifierArray
[src]

Chains supported by the account.

This must be a subset of the {@link Wallet.chains | chains} of the Wallet.

§
readonly features: IdentifierArray
[src]

Feature names supported by the account.

This must be a subset of the names of {@link Wallet.features | features} of the Wallet.

§
readonly icon?: WalletIcon
[src]

Optional user-friendly icon for the account. This may be displayed by the app.

§
readonly label?: string
[src]

Optional user-friendly descriptive label or name for the account. This may be displayed by the app.

§
readonly publicKey: Uint8Array
[src]

Public key of the account, corresponding with a secret key to use.