Adds a new endowment: endowment:accounts-chain, which can be used to expose onAccountsChainRequest, and is in many ways identical to endowment:keyring.
Also adds a new RPC method wallet_invokeAccountsSnap which allows routing requests to either onKeyringRequest or onAccountsChainRequest using a type parameter. Otherwise the RPC method is identical to wallet_invokeKeyring.
wallet_invokeKeyring is now effectively an alias of wallet_invokeAccountsSnap, in a similar fashion to wallet_invokeSnap.
Adds a new endowment:
endowment:accounts-chain
, which can be used to exposeonAccountsChainRequest
, and is in many ways identical toendowment:keyring
.Also adds a new RPC method
wallet_invokeAccountsSnap
which allows routing requests to eitheronKeyringRequest
oronAccountsChainRequest
using atype
parameter. Otherwise the RPC method is identical towallet_invokeKeyring
.wallet_invokeKeyring
is now effectively an alias ofwallet_invokeAccountsSnap
, in a similar fashion towallet_invokeSnap
.WIP
Progresses https://github.com/MetaMask/snaps/issues/2355