0.19.0 • Published 2 years ago
@painterpuppets-lumos/rpc v0.19.0
@painterpuppets-lumos/rpc
RPC module for lumos. Provide type definitions for CKB RPC interface.
Usage
import { RPC } from "@painterpuppets-lumos/rpc"
const rpc = new RPC("http://localhost:8114");
await rpc.get_tip_header();
// Or provide an optional indexer param, if provided, will wait for sync after every RPC call.
const rpc = new RPC("http://localhost:8114", indexer)
await rpc.get_tip_header(); // before it return, will sync indexer to tip.
0.20.0-alpha.1
2 years ago
0.20.0-alpha.0
2 years ago
0.19.0
2 years ago
0.20.0
2 years ago
0.19.1-alpha.0
2 years ago
0.19.0-next.0
2 years ago
0.18.1-next.0
2 years ago
0.18.0
2 years ago