@ethereumjs/devp2p / ETH
Protocol
↳ ETH
• new ETH(version, peer, send)
| Name | Type |
|---|---|
version |
number |
peer |
Peer |
send |
SendMethod |
Protocol.constructor
packages/devp2p/src/protocol/eth.ts:34
▪ Static eth62: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:53
▪ Static eth63: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:54
▪ Static eth64: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:55
▪ Static eth65: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:56
▪ Static eth66: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:57
▪ Static eth67: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:58
▪ Static eth68: Object
| Name | Type |
|---|---|
constructor |
typeof ETH |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/protocol/eth.ts:59
▸ _forkHashFromForkId(forkId): string
| Name | Type |
|---|---|
forkId |
Uint8Array |
string
packages/devp2p/src/protocol/eth.ts:246
▸ _getStatusString(status): string
| Name | Type |
|---|---|
status |
StatusMsg |
string
packages/devp2p/src/protocol/eth.ts:254
▸ _handleMessage(code, data): void
| Name | Type |
|---|---|
code |
MESSAGE_CODES |
data |
Uint8Array |
void
Protocol._handleMessage
packages/devp2p/src/protocol/eth.ts:61
▸ _handleStatus(): void
void
packages/devp2p/src/protocol/eth.ts:184
▸ _nextForkFromForkId(forkId): number
| Name | Type |
|---|---|
forkId |
Uint8Array |
number
packages/devp2p/src/protocol/eth.ts:250
▸ _validateForkId(forkId): void
Eth 64 Fork ID validation (EIP-2124)
| Name | Type | Description |
|---|---|---|
forkId |
Uint8Array[] |
Remote fork ID |
void
packages/devp2p/src/protocol/eth.ts:141
▸ getMsgPrefix(msgCode): string
| Name | Type |
|---|---|
msgCode |
MESSAGE_CODES |
string
packages/devp2p/src/protocol/eth.ts:380
▸ getVersion(): number
number
packages/devp2p/src/protocol/eth.ts:242
▸ sendMessage(code, payload): void
| Name | Type |
|---|---|
code |
MESSAGE_CODES |
payload |
Input |
void
packages/devp2p/src/protocol/eth.ts:325
▸ sendStatus(status): void
| Name | Type |
|---|---|
status |
StatusOpts |
void