Socket
Socket
Sign inDemoInstall

@web3inbox/core

Package Overview
Dependencies
3
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @web3inbox/core

Web3Inbox Core is a client wrapper over [Notify Client](https://github.com/WalletConnect/notify-client-js). It manages state of subscriptions and notifications, as well as multiple helper functions to ease the use of notify client and easily paging notifi


Version published
Weekly downloads
670
decreased by-11.61%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@web3inbox/core

Web3Inbox Core is a client wrapper over Notify Client. 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 { Web3InboxClient } from "@web3inbox/core";
import { signMessage } from "@wagmi/core";

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

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

await client.setAccount(account);

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

const signature = await signMessage(message);

await client.register({ registerParams, signature });

await client.subscribeToDapp();

Read more in the docs

FAQs

Last updated on 15 Apr 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