@vegaprotocol/rest-clients
TypeScript icon, indicating that this package has built-in type declarations

0.77.1 • Public • Published

Rest clients

WIP project that autogenerates types and clients for interacting with the Vega REST APIs

Usage

Install the client you wish to use:

npm i @vegaprotocol/rest-client

or

yarn add @vegaprotocol/rest-client

Then use it in your code:

// Choose API you wish to access; BlockExplorer, Core, CoreState or TradingData
import { BlockExplorer } from "@vegaprotocol/rest-clients";

// Set the base URL of for the client you are connecting to.
BlockExplorer.OpenAPI.BASE = "node-url-here";
const service = BlockExplorer.BlockExplorerService;
service.blockExplorerListTransactions().then((markets) => {
  console.log(markets);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @vegaprotocol/rest-clients

Weekly Downloads

0

Version

0.77.1

License

MIT

Unpacked Size

5.73 MB

Total Files

4320

Last publish

Collaborators

  • dexturr
  • curly42
  • eddhannay
  • vega-bot