WalletAccount
@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
readonlyaddress: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
readonlychains: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
readonlyfeatures: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?
readonlyoptionalicon?:`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?
readonlyoptionallabel?: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
readonlypublicKey: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.