UNPKG

bc-web3js

Version:

A Typescript SDK for interacting with the ByteChain Blockchain.

13 lines (12 loc) 434 B
import { Block, Transaction } from "./interfaces.js"; declare class Provider { private rpc_url; constructor(rpc_url: string); check_nonce(addr: string): Promise<number>; check_balance(addr: string): Promise<number>; get_tx_pool(): Promise<Transaction[]>; get_block(block_num: number): Promise<Block>; get_chain(): Promise<Block[]>; send_tx(tx: Transaction): Promise<string>; } export default Provider;