deth
Version:
Ethereum node focused on Developer Experience
32 lines (31 loc) • 910 B
TypeScript
import { Address, Hash, Quantity, HexData } from '../primitives';
import { RpcTransactionResponse } from './RpcTransactionResponse';
import Block from 'ethereumjs-block';
interface RpcBlockResponseBase {
number: Quantity;
hash: Hash;
parentHash: Hash;
nonce: HexData;
sha3Uncles: Hash;
logsBloom: HexData;
transactionsRoot: Hash;
stateRoot: Hash;
receiptsRoot: Hash;
miner: Address;
difficulty: Quantity;
totalDifficulty: Quantity;
extraData: HexData;
size: Quantity;
gasLimit: Quantity;
gasUsed: Quantity;
timestamp: Quantity;
uncles: Hash[];
}
export interface RpcBlockResponse extends RpcBlockResponseBase {
transactions: Hash[];
}
export interface RpcRichBlockResponse extends RpcBlockResponseBase {
transactions: RpcTransactionResponse[];
}
export declare function toBlockResponse(block: Block): RpcBlockResponse;
export {};