1.1.12 • Published 9 days ago

deplan-client v1.1.12

Weekly downloads
-
License
ISC
Repository
-
Last release
9 days ago

deplan-client

This package allows you to seamlessly integrate your web application with DePlan wallet.

Installing

# npm
npm install deplan-client

# yarn
yarn add deplan-client

Usage

import { DePlanClient } from 'deplan-client';

const deplanClient = new DePlanClient('PRODUCT_WALLET_ADDRESS');

// Connect
const { address } = await deplanClient.connect();

// Sign In
const { address, signature, message } = await deplanClient.signIn();

signIn returns

address - user wallet address\ signature - signature issued by DePlan\ message - message that was signed

Then you should pass message and signature to your backend to verify the signIn operation.

import { DePlanClient } from 'deplan-client';

const deplanClient = new DePlanClient('PRODUCT_WALLET_ADDRESS');

deplanClient.verifySignIn(req.body.message, req.body.signature, 'DEPLAN_WALLET_ADDRESS');

PRODUCT_WALLET_ADDRESS - the address of your organization in DePlan Connect.\ DEPLAN_WALLET_ADDRESS - the one and only DePlan wallet address which is 7qUPhUmL6nNTWU7yMsWueR778SYbNhBU2B2tqddfns6j.

1.1.12

9 days ago

1.1.9

1 month ago

1.1.11

1 month ago

1.1.10

1 month ago

1.1.1

1 month ago

1.1.0

1 month ago

1.1.8

1 month ago

1.1.7

1 month ago

1.1.6

1 month ago

1.1.5

1 month ago

1.1.4

1 month ago

1.1.3

1 month ago

1.1.2

1 month ago

1.0.5

1 month ago

1.0.4

1 month ago

1.0.3

1 month ago

1.0.2

1 month ago

1.0.1

1 month ago