Constructor
new TXRequest(optionsnullable)
TX Request
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object |
<nullable> |
Properties:
Name | Type | Description |
---|---|---|
hash |
Hash | |
indexes |
Array.<Number> |
Methods
(static) fromCompact(block) → {TXRequest}
Instantiate request from compact block.
Parameters:
Name | Type | Description |
---|---|---|
block |
CompactBlock |
- Source:
Returns:
- Type
- TXRequest
(static) fromOptions(options) → {TXRequest}
Instantiate request from options.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
- Source:
Returns:
- Type
- TXRequest
(static) fromRaw(data) → {TXRequest}
Instantiate request from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Returns:
- Type
- TXRequest
(static) fromReader(br) → {TXRequest}
Instantiate request from buffer reader.
Parameters:
Name | Type | Description |
---|---|---|
br |
BufferReader |
- Source:
Returns:
- Type
- TXRequest
(private) fromCompact(block) → {TXRequest}
Inject properties from compact block.
Parameters:
Name | Type | Description |
---|---|---|
block |
CompactBlock |
- Source:
Returns:
- Type
- TXRequest
(private) fromOptions(options) → {TXRequest}
Inject properties from options.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
- Source:
Returns:
- Type
- TXRequest
(private) fromRaw(data) → {TXRequest}
Inject properties from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Returns:
- Type
- TXRequest
(private) fromReader(br) → {TXRequest}
Inject properties from buffer reader.
Parameters:
Name | Type | Description |
---|---|---|
br |
BufferReader |
- Source:
Returns:
- Type
- TXRequest
getSize() → {Number}
Calculate request serialization size.
- Source:
Returns:
- Type
- Number
toRaw() → {Buffer}
Serialize request.
- Source:
Returns:
- Type
- Buffer
toWriter(bw)
Write serialized request to buffer writer.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufferWriter |
- Source: