Description
As part of the performance improvements around account management, the keyring API now supports a new method to allow the creation of multiple accounts in one request via the method keyring_createAccounts (@metamask/keyring-api version 22.0.0), this new RPC method accepts a batch request — either a single BIP-44 index or an inclusive index range — and creates all accounts in one call.
This ticket requires the Bitcoin snap to also support the method keyring_createAccounts and update the clients configuration to enable account creation batching. To do so, go to the file controller-init/multichain/multichain-account-service-init.ts (extension client case) and update the Bitcoin provider configuration to set createAccounts > batched to true
Acceptance Criteria
- The Bitcoin snap now supports
keyring_createAccounts
- A new version is released and both clients are updated to use it
- Set the
createAccounts > batched configuration value to true in both clients
References
Description
As part of the performance improvements around account management, the keyring API now supports a new method to allow the creation of multiple accounts in one request via the method
keyring_createAccounts(@metamask/keyring-apiversion 22.0.0), this new RPC method accepts a batch request — either a single BIP-44 index or an inclusive index range — and creates all accounts in one call.This ticket requires the Bitcoin snap to also support the method
keyring_createAccountsand update the clients configuration to enable account creation batching. To do so, go to the filecontroller-init/multichain/multichain-account-service-init.ts(extension client case) and update the Bitcoin provider configuration to setcreateAccounts > batchedtotrueAcceptance Criteria
keyring_createAccountscreateAccounts > batchedconfiguration value totruein both clientsReferences
keyring_createAccounts(multiple accounts) support snap-solana-wallet#599