deth
Version:
Ethereum node focused on Developer Experience
17 lines (16 loc) • 603 B
TypeScript
/// <reference types="node" />
/// <reference types="bn.js" />
import { BN } from 'ethereumjs-util';
import Block from 'ethereumjs-block';
import { DethBlockchain } from './DethBlockchain';
/**
* Wraps DethBlockchain into ethereum-js/blockchain compatible interface
*/
export declare class BlockchainAdapter {
readonly dethBlockchain: DethBlockchain;
constructor(dethBlockchain: DethBlockchain);
putGenesis: Function;
getLatestBlock: Function;
getBlock: (arg1: number | Buffer | BN, callback: (err: NodeJS.ErrnoException, result: Block) => void) => void;
putBlock: Function;
}