MetaMask / metamask-snaps-beta

Fork of MetaMask that supports plugins! Read the Wiki!
https://github.com/MetaMask/metamask-snaps-beta/wiki
MIT License
144 stars 57 forks source link

Internal wallet methods vs wallet RPC methods #75

Closed rekmarks closed 2 years ago

rekmarks commented 5 years ago

Currently, restricted methods defined directly in the restrictedMethods file are called using wallet.send({ method, params }), while internal MetaMask methods are calling using wallet.methodName(...). This is not documented very well, and we should perhaps consider using the RPC API for everything except special methods like registerRpcMessageHandler.

rekmarks commented 2 years ago

No longer relevant.