GithubHelp home page GithubHelp logo

dvc94ch / rosetta-client-typescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fboucquez/rosetta-client-typescript

0.0 1.0 0.0 292 KB

Typescript generated client to connect apps with Rosetta nodes

Shell 0.22% JavaScript 0.83% TypeScript 90.88% Mustache 8.07%

rosetta-client-typescript's Introduction

Rosetta

Rosetta Typescript Client

Typescript Rest client to connect apps with Rosetta nodes.

Version Downloads/week License Build Api Doc

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-typescript

Create 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 install to install dependencies
  • npm run gen to generate types and helpers
  • npm test to run tests
  • npm style:fix to 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

rosetta-client-typescript's People

Contributors

fboucquez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.