EVM-Lite Client

A simple HTTP client for EVM-Lite.

Constructor

constructor(host: string, port: number = 8080)
const { default: Client } = require('evm-lite-client');

const client = new Client('localhost', 8080);

Methods

getReceipt

Fetches a receipt for a specific transaction hash.

Definition (TS)

getReceipt(txHash: string): Promise<IReceipt>

getAccount

Fetches balance, nonce, and bytecode for a specific address.

Definition (TS)

getAccount(address: string): Promise<IBaseAccount>

getInfo

Fetches information about the node.

Definition (TS)

getInfo<T>(): Promise<T>