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
(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
getSize() → {Number}
Calculate request serialization size.
- Source:
Returns:
- Type
- Number
(private) read(br) → {TXRequest}
Inject properties from buffer reader.
Parameters:
Name | Type | Description |
---|---|---|
br |
BufferReader |
- Source:
Returns:
- Type
- TXRequest
write(bw)
Write serialized request to buffer writer.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufferWriter |
- Source: