npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@owneraio/finp2p-sdk-js

v0.21.39

Published

The Ownera sdk provides an easy to use set of APIs to work with Ownera FinP2P node for various use cases, the sdk handles most of the heavy lifting for executing operations on the FinP2P network, such as signature templates generation and signing, asset m

Downloads

980

Readme

FinP2P SDK Introduction

The Ownera sdk provides an easy to use set of APIs to work with Ownera FinP2P node for various use cases, the sdk handles most of the heavy lifting for executing operations on the FinP2P network, such as signature templates generation and signing, asset managements, escrow interface and more.

Ownera API service

The purpose of this sdk is to provide an interface to the Ownera APIs.
It covers the following:

It exposes types for Typescript. To build the lib/ and use the package, just run yarn build.

Usage

Core

SDK

import { Sdk } from "@owneraio/finp2p-sdk-js";
 
const sdk = new Sdk({
  orgId: "bank-il",
  custodianOrgId: 'bank-il',
  owneraAPIAddress: "https://my-ownera-node.io",
  authConfig: { 
    apiKey: "<my-api-key>",
    secret: { 
      type: 1|2, 
      raw: "<my-stringified-private-key>",
    },
  },
  custodyAdapterBaseURL: "<optional-custody-url>",
}); 

Inner Properties:

Create Functions:

Get Functions

Create user

Returns Promise with UserInterface

const user = await sdk.createUser({});

Create asset

Returns Promise with AssetInterface

const issuer = await user.getData();
const asset = await sdk.createAsset({
  name: "Asset Name",
  type: "company",
  issuerId: issuer.id,
  denomination: {
    type: "fiat",
    code: "USD"
  }
});
const assetData = await asset.getData();

Get User

const user = await getSdk().getUser({ userId: "bank-il:101:be26b474-6c77-4d67-869f-defa7483c784" });

Get Asset

const assetInterface = await getAsset({ assetId });
const asset = await assetInterface.getData();

Get Organization

const org = sdk.getOrganization({});

Another examples

More extended recipes you can check here