Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@highoutput/deso-sdk

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highoutput/deso-sdk

A wrapper to DeSo Identity and API endpoints. This experiment aims to make the DeSo transactions quick and easy for devs to integrate to the frontend side of the web systems development.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
5
Created
Source

DeSo SDK

A wrapper to DeSo Identity and API endpoints. This experiment aims to make the DeSo transactions quick and easy for devs to integrate to the frontend side of the web systems development.

Installation

Install the package with npm

  npm install @highoutput/deso-sdk --save

or if you are using yarn

  yarn add @highoutput/deso-sdk --save

Usage/Examples

Wrap the components to the Context provider

import { DesoProvider } from '@highoutput/deso-sdk';

function App() {
  return (
    <DesoProvider>
      <Component {...pageProps} />
    </DesoProvider>
  );
}

import and use the exposed hook useDesoContextValues to get methods you can use

import { useDesoContextValues } from '@highoutput/deso-sdk';

const LoginForm: React.FC = () => {
  const { getIdentity } = useDesoContextValues();

  return (
    <Button
      onClick={async () => {
        await getIdentity(data => {
          const { pubKey, token } = data; // pubkey and token are returned
          void connectBitclout({
            variables: {
              input: {
                publicKey: pubKey,
                jwt: token,
              },
            },
          }); // custom method
        });
      }}
    >
      <IconBitclout />
      <Text>Log in using Bitclout</Text>
    </Button>
  );
};

Roadmap

  • Expose reactjs' Context for ease of use on reactjs projects

  • Implement use of DeSo Identity for login and signup purposes

  • Implement send-deso transaction flow

  • Implement submit-post transaction flow

  • Add methods for endpoints on simple fetching of data

FAQs

Package last updated on 26 Nov 2021

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