0.2.3 • Published 29 days ago

@lukachi/qtum-wallet-snap v0.2.3

Weekly downloads
-
License
(MIT-0 OR Apache-...
Repository
gitlab
Last release
29 days ago

Qtum Snap

Qtum snap is a snap, that allows to interact with Qtum blockchain by implementing metamsk RPC requests handlers https://docs.metamask.io/wallet/reference/json-rpc-api/.

Methods

To interact with it, simply use wallet_invokeSnap as proxy to call snap methods.

await window.ethereum.request({
  method: 'wallet_invokeSnap',
  params: {
  snapId: 'snapId',
    request: { method: 'eth_call', params: [...myParams] },
  },
});