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

0.73.1 • Public • Published

@vegaprotocol/wallet-admin

Wallet client for the admin namespace of the Vega wallet API v0.67.3 based on its openrpc specs.

Usage

You can import and use the client in the following way:

import { WalletClient } from '@vegaprotocol/wallet-admin'

const client = new WalletClient(executor)

It takes an executor as an argument, which is an async function, expected to return the correct response shape for each method defined in the openrpc definitions.

Generating the client

Run yarn nx run wallet-admin:generate to regenerate the client from the API specs. If you run this locally, the generator will need an environment variable pointing to an openrpc specs file (a remote url or a local file path) to use that as the source of for the wallet client.

WALLET_ADMIN_SPECS=https://...

Readme

Keywords

none

Package Sidebar

Install

npm i @vegaprotocol/wallet-admin

Weekly Downloads

3

Version

0.73.1

License

MIT

Unpacked Size

92.7 kB

Total Files

10

Last publish

Collaborators

  • dexturr
  • emilbayes
  • curly42
  • eddhannay
  • vega-bot