Skip to main content

AccountsController Events

11 events registered.

NameDeprecated
accountAddedYes
accountAssetListUpdatedYes
accountBalancesUpdatedYes
accountRemovedYes
accountRenamedYes
accountsAdded
accountsRemoved
accountTransactionsUpdatedYes
selectedAccountChangeYes
selectedEvmAccountChangeYes
stateChangeYes

AccountsController:accountAdded​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

[InternalAccount]

AccountsController:accountAssetListUpdated​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

SnapKeyringAccountAssetListUpdatedEvent['payload']

AccountsController:accountBalancesUpdated​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

SnapKeyringAccountBalancesUpdatedEvent['payload']

AccountsController:accountRemoved​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

[AccountId]

AccountsController:accountRenamed​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

[InternalAccount]

AccountsController:accountsAdded​

Package: @metamask/accounts-controller

Payload signature:

[InternalAccount[]]

AccountsController:accountsRemoved​

Package: @metamask/accounts-controller

Payload signature:

[AccountId[]]

AccountsController:accountTransactionsUpdated​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

SnapKeyringAccountTransactionsUpdatedEvent['payload']

AccountsController:selectedAccountChange​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

[InternalAccount]

AccountsController:selectedEvmAccountChange​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

[InternalAccount]

AccountsController:stateChange​

Deprecated

Package: @metamask/accounts-controller

Deprecated: This type is deprecated and will be removed in a future version. Use AccountTreeController, MultichainAccountService, or the Keyring API v2 instead.

Payload signature:

[AccountsControllerState, Patch[]]