1.0.17 • Published 1 year ago

@saturn-chain/wallet-custody-rest-api v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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;
  })
1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

2 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago