Module: net/packets

Classes

AddrPacket
AuthChallengePacket
AuthProposePacket
AuthReplyPacket
BlockPacket
BlockTxnPacket
CmpctBlockPacket
EncackPacket
EncinitPacket
FeeFilterPacket
FilterAddPacket
FilterClearPacket
FilterLoadPacket
GetAddrPacket
GetBlocksPacket
GetBlockTxnPacket
GetDataPacket
GetHeadersPacket
HeadersPacket
InvPacket
MempoolPacket
MerkleBlockPacket
NotFoundPacket
Packet
PingPacket
PongPacket
RejectPacket
SendCmpctPacket
SendHeadersPacket
TXPacket
UnknownPacket
VerackPacket
VersionPacket

Members

(static) types :Number

Packet types.

Type:
  • Number
Default Value:
  • {"VERSION":"","VERACK":"","PING":"","PONG":"","GETADDR":"","ADDR":"","INV":"","GETDATA":"","NOTFOUND":"","GETBLOCKS":"","GETHEADERS":"","HEADERS":"","SENDHEADERS":"","BLOCK":"","TX":"","REJECT":"","MEMPOOL":"","FILTERLOAD":"","FILTERADD":"","FILTERCLEAR":"","MERKLEBLOCK":"","FEEFILTER":"","SENDCMPCT":"","CMPCTBLOCK":"","GETBLOCKTXN":"","BLOCKTXN":"","ENCINIT":"","ENCACK":"","AUTHCHALLENGE":"","AUTHREPLY":"","AUTHPROPOSE":"","UNKNOWN":"","INTERNAL":"","DATA":""}
Source:

(static, constant) typesByVal :Object

Packet types by value.

Type:
  • Object
Default Value:
  • ["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]
Source:

Methods

(static) fromRaw(cmd, data) → {Packet}

Parse a payload.

Parameters:
Name Type Description
cmd String
data Buffer
Source:
Returns:
Type
Packet