ethereumjs-monorepo

@ethereumjs/devp2p / ETH

Class: ETH

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ETH(version, peer, send)

Parameters

Name Type
version number
peer Peer
send SendMethod

Overrides

Protocol.constructor

Defined in

packages/devp2p/src/protocol/eth.ts:34

Properties

eth62

Static eth62: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:53


eth63

Static eth63: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:54


eth64

Static eth64: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:55


eth65

Static eth65: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:56


eth66

Static eth66: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:57


eth67

Static eth67: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:58


eth68

Static eth68: Object

Type declaration

Name Type
constructor typeof ETH
length number
name string
version number

Defined in

packages/devp2p/src/protocol/eth.ts:59

Methods

_forkHashFromForkId

_forkHashFromForkId(forkId): string

Parameters

Name Type
forkId Uint8Array

Returns

string

Defined in

packages/devp2p/src/protocol/eth.ts:246


_getStatusString

_getStatusString(status): string

Parameters

Name Type
status StatusMsg

Returns

string

Defined in

packages/devp2p/src/protocol/eth.ts:254


_handleMessage

_handleMessage(code, data): void

Parameters

Name Type
code MESSAGE_CODES
data Uint8Array

Returns

void

Overrides

Protocol._handleMessage

Defined in

packages/devp2p/src/protocol/eth.ts:61


_handleStatus

_handleStatus(): void

Returns

void

Defined in

packages/devp2p/src/protocol/eth.ts:184


_nextForkFromForkId

_nextForkFromForkId(forkId): number

Parameters

Name Type
forkId Uint8Array

Returns

number

Defined in

packages/devp2p/src/protocol/eth.ts:250


_validateForkId

_validateForkId(forkId): void

Eth 64 Fork ID validation (EIP-2124)

Parameters

Name Type Description
forkId Uint8Array[] Remote fork ID

Returns

void

Defined in

packages/devp2p/src/protocol/eth.ts:141


getMsgPrefix

getMsgPrefix(msgCode): string

Parameters

Name Type
msgCode MESSAGE_CODES

Returns

string

Defined in

packages/devp2p/src/protocol/eth.ts:380


getVersion

getVersion(): number

Returns

number

Defined in

packages/devp2p/src/protocol/eth.ts:242


sendMessage

sendMessage(code, payload): void

Parameters

Name Type
code MESSAGE_CODES
payload Input

Returns

void

Defined in

packages/devp2p/src/protocol/eth.ts:325


sendStatus

sendStatus(status): void

Parameters

Name Type
status StatusOpts

Returns

void

Defined in

packages/devp2p/src/protocol/eth.ts:274