Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@open_social_protocol/osp-client

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open_social_protocol/osp-client

open social protocol sdk

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

@open_social_protocol/osp-client@1.12.9

osp-client-js is a osp clent js sdk.

Installation

Use the package manager [pnpm] or [npm] to install osp-client-js.

pnpm add @open_social_protocol/osp-client

or

npm i @open_social_protocol/osp-client

Usage

import { OspClient, Environment } from "@open_social_protocol/osp-client";
import { ethers } from "ethers";

const env: Environment = Environment.dev;

const client = OspClient.create({
  env,
  storage: localStorage,
  app_id: "<APP_ID>",
  guest_id_marketing: "<GUEST_ID_MARKETING>",
});

const provider = new ethers.providers.Web3Provider(window.ethereum);
await provider.send("eth_requestAccounts", []);

await client.authentication.login(provider.getSigner());

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

FAQs

Package last updated on 02 Apr 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc