UNPKG

@savid/rlpx-pest

Version:

Get the [status](https://github.com/ethereum/devp2p/blob/master/caps/eth.md#status-0x00) of a [RLPx](https://github.com/ethereum/devp2p/blob/master/rlpx.md) peer via the [eth/66](https://eips.ethereum.org/EIPS/eip-2481) protocol.

14 lines (13 loc) 366 B
import { Capabilities } from '@ethereumjs/devp2p'; export declare type ETH66Status = { networkId: bigint; td: bigint; bestHash: string; genesisHash: string; fork?: { hash: string; next: string; }; }; declare const _default: (callback: (error?: Error, response?: ETH66Status) => void) => Capabilities; export default _default;