@metamask/name-lookup-example-snap

3.1.1 • Public • Published

@metamask/name-lookup-example-snap

This snap demonstrates how to use the onNameLookup handler.

Snap manifest

Note: Using name lookup requires the endowment:name-lookup permission. Refer to the documentation for more information.

The manifest of this snap includes the endowment:name-lookup permission:

{
  "initialPermissions": {
    "endowment:name-lookup": ["eip155:1"]
  }
}

Snap usage

This snap exposes the onNameLookup handler. This is called when a MetaMask client requests the resolution of a domain or address, and cannot be called manually.

Readme

Keywords

none

Package Sidebar

Install

npm i @metamask/name-lookup-example-snap

Weekly Downloads

3,986

Version

3.1.1

License

(MIT-0 OR Apache-2.0)

Unpacked Size

19.9 kB

Total Files

7

Last publish

Collaborators

  • danfinlay
  • kumavis
  • mcmire
  • rekmarks
  • metamaskbot
  • gudahtt
  • nicholasellul
  • sethkfman
  • naugtur