1.4.10-rc1-alpha-202201311436 • Published 3 years ago
rosetta-client-typescript v1.4.10-rc1-alpha-202201311436
Overview
The rosetta-client-typescript provides a generated typescript reset client. The client uses fetch under the hood.
Much of the code in this repository is generated from the rosetta-specifications.
Documentation
Before diving into the SDK, we recommend taking a look at the Rosetta API Docs:
Usage
Install this package:
npm install rosetta-client-typescriptCreate and use a Rosetta rest client:
import { RosettaRestClientFactory } from 'rosetta-client-typescript';
const restClientFactory = new RosettaRestClientFactory({
url: 'http://localhost:8080',
});
const networkClient = restClientFactory.network();
const networkList = await networkClient.networkList({
metadataRequest: {},
});
console.log(JSON.stringify(networkList, null, 2));Development
npm installto install dependenciesnpm run gento generate types and helpersnpm testto run testsnpm style:fixto pretty, index, and lint the source code (including generated code)
License
This project is available open source under the terms of the Apache 2.0 License.
© 2022 Fernando Boucquez
1.4.13-alpha-c6861d7
3 years ago
1.4.10-rc1-alpha-202201311436
4 years ago
1.4.10-rc1-alpha-d4f9fbe
4 years ago
1.4.10-rc1-alpha-57d781d
4 years ago
1.4.10-rc1-alpha-a5046a7
4 years ago
1.4.10-rc1-alpha-4ebc0a8
4 years ago