1.1.1 • Published 1 year ago

@avalabs/avalanche-contacts v1.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

Core Contacts

This API is experimental and is not publicly accessible.

Through our extension we have exposed contacts. These contacts are accesible through the provider and are stored securly in the extension. These contacts can be used to show a name instead of an address in places where this applies.

How to use

There is a hook inside of this lib. You can access and use it like so:

import { useContacts } from '@avalabs/avalanche-contacts';

export function YourFancyComponent() {
  const provider = useYourProvider();
  const { contacts, getContacts } = useContacts(provider);
}