Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 609 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 609 Bytes

starkware-controller npm version

Starkware JSON-RPC Controller Library

Example

import * as ethers from 'ethers';
import StarkwareController from 'starkware-controller';

const wallet = ethers.Wallet.createRandom();

const store = {
  set: async (key: string, data: any) => {},
  get: async (key: string) => {},
  remove: async (key: string) => {},
};

//  Create StarkwareController
const controller = new StarkwareController(wallet, store);

// Initiate
await controller.init();