Socket
Book a DemoInstallSign in
Socket

@open-social-protocol/osp-client-abstract

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-social-protocol/osp-client-abstract

open social protocol sdk

latest
Source
npmnpm
Version
1.0.11
Version published
Maintainers
4
Created
Source

@open-social-protocol/osp-client-abstract

osp-client-abstract is a opensocial js sdk.

Installation

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

pnpm add @open-social-protocol/osp-client-abstract

or

npm i @open-social-protocol/osp-client-abstract

Usage

import { AbstractClient } from "@abstract-foundation/agw-client";
import {
  AbstractWalletAdapter,
  Environment,
  OspClient,
} from "@open-social-protocol/osp-client-abstract";

// see https://docs.abs.xyz/abstract-global-wallet/agw-react/hooks/useAbstractClient
let abstractClient: AbstractClient;

async function main() {
  const ospClient = await OspClient.create({
    env: Environment.dev,
    app_id: "332586477308740133",
    storage: localStorage,
  });

  await ospClient.authentication.walletLogin(
    new AbstractWalletAdapter(abstractClient)
  );
}

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 29 May 2025

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