ethereumjs-monorepo

@ethereumjs/devp2p / LES

Class: LES

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LES(version, peer, send)

Parameters

Name Type
version number
peer Peer
send SendMethod

Overrides

Protocol.constructor

Defined in

packages/devp2p/src/protocol/les.ts:27

Properties

les2

Static les2: Object

Type declaration

Name Type
constructor typeof LES
length number
name string
version number

Defined in

packages/devp2p/src/protocol/les.ts:35


les3

Static les3: Object

Type declaration

Name Type
constructor typeof LES
length number
name string
version number

Defined in

packages/devp2p/src/protocol/les.ts:36


les4

Static les4: Object

Type declaration

Name Type
constructor typeof LES
length number
name string
version number

Defined in

packages/devp2p/src/protocol/les.ts:37

Methods

_getStatusString

_getStatusString(status): string

Parameters

Name Type
status Status

Returns

string

Defined in

packages/devp2p/src/protocol/les.ts:149


_handleMessage

_handleMessage(code, data): void

Parameters

Name Type
code MESSAGE_CODES
data Uint8Array

Returns

void

Overrides

Protocol._handleMessage

Defined in

packages/devp2p/src/protocol/les.ts:39


_handleStatus

_handleStatus(): void

Returns

void

Defined in

packages/devp2p/src/protocol/les.ts:114


getMsgPrefix

getMsgPrefix(msgCode): string

Parameters

Name Type
msgCode MESSAGE_CODES

Returns

string

Defined in

packages/devp2p/src/protocol/les.ts:275


getVersion

getVersion(): number

Returns

number

Defined in

packages/devp2p/src/protocol/les.ts:145


sendMessage

sendMessage(code, payload): void

Parameters

Name Type Description
code MESSAGE_CODES Message code
payload Input Payload (including reqId, e.g. [1, [437000, 1, 0, 0]])

Returns

void

Defined in

packages/devp2p/src/protocol/les.ts:217


sendStatus

sendStatus(status): void

Parameters

Name Type
status Status

Returns

void

Defined in

packages/devp2p/src/protocol/les.ts:175