Skip to main content

WalletAccount

@iota/wallet-standard


@iota/wallet-standard / WalletAccount

Interface: WalletAccount

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:121

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 features of the Wallet.

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

Properties

address

readonly address: string

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:123

Address of the account, corresponding with a public key.


chains

readonly chains: IdentifierArray

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:131

Chains supported by the account.

This must be a subset of the chains of the Wallet.


features

readonly features: IdentifierArray

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:137

Feature names supported by the account.

This must be a subset of the names of features of the Wallet.


icon?

readonly optional icon?: `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}`

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:141

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


label?

readonly optional label?: string

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:139

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


publicKey

readonly publicKey: Uint8Array

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@wallet-standard/base/lib/types/wallet.d.ts:125

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