Socket
Socket
Sign inDemoInstall

@web3inbox/react

Package Overview
Dependencies
1
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @web3inbox/react

Web3Inbox React provides hook wrappers over [@web3inbox/core](https://github.com/WalletConnect/web3inbox-client). It manages state of subscriptions and notifications, as well as multiple helper functions to ease the use of notify client and easily paging


Version published
Weekly downloads
409
increased by4.07%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@web3inbox/react

Web3Inbox React provides hook wrappers over @web3inbox/core. It manages state of subscriptions and notifications, as well as multiple helper functions to ease the use of notify client and easily paging notifications of a subscription.

Basic Usage

import { initWeb3InboxClient } from "@web3inbox/core";
import { signMessage } from "@wagmi/core";

const client = await initWeb3InboxClient({
  projectId: "<YOUR_PROJECT_ID>",
  domain: window.location.host,
});

const account = `eip155:1:0x...`;

useWeb3InboxAccount(account);

const { prepareRegistration } = usePrepareRegistration();
const { register } = useRegister();

const { subscribe } = useSubscribe();

const { message, registerParams } = await prepareRegistration({ account });

const signature = await signMessage(message);

await register({ registerParams, signature });

await subscribe();

Read more in the docs

Check out the example implementation here

FAQs

Last updated on 15 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc