Introduction

The client module provides convenient access to Vite RPC API in Vite JS.

Note

Some API method can only be visited under certain protocol. For example, all wallet API are only available in IPC.

Installation

npm install @vite/vitejs-client --save
yarn add @vite/vitejs-client

Import

import { client } from '@vite/vitejs';
// Or
import client from '@vite/vitejs-client';
const { client } = require('@vite/vitejs-client');