@saturn-chain/wallet-custody-rest-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.19 • Public • Published

wallet-custody-rest-api: access the custody-services via http api

Expose an object that encapsulates the web api exposed by the custody-service process.

Usage:

npm i --save @saturn-chain/wallet-custody-rest-api

Includes typescript types declaration

Documentation

import { WalletCustodyApiImpl } from "@saturn-chain/wallet-custody-rest-api";
import { DLTProtocolEnum } from "@saturn-chain/wallet-custody-rest-api/dist/domain/blockchain";
const custody = new WalletCustodyApiImpl("http://localhost:8081", DLTProtocolEnum.Ethererum)

const address = await custody.newWallet("secured password");
const info = await custody.publicInfo(address);
const signer = custody.getSigner(address, async (add, api)=>{
    const token = await api.authenticate(add, "secured password");
    return token;
  })

Readme

Keywords

none

Package Sidebar

Install

npm i @saturn-chain/wallet-custody-rest-api

Weekly Downloads

13

Version

1.0.19

License

ISC

Unpacked Size

54.1 kB

Total Files

11

Last publish

Collaborators

  • guenoledc