Extends
- bio.Struct
Members
(nullable) _hash :Hash
Type:
- Source:
Methods
(static) fromBlob(blob) → {Claim}
Instantiate claim from raw proof.
Parameters:
Name | Type | Description |
---|---|---|
blob |
Buffer |
- Source:
Returns:
- Type
- Claim
(static) fromProof(proof) → {Claim}
Instantiate claim from proof.
Parameters:
Name | Type | Description |
---|---|---|
proof |
OwnershipProof |
- Source:
Returns:
- Type
- Claim
decode(data) → {this}
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Returns:
- Type
- this
fromBlob(blob) → {this}
Inject properties from blob.
Parameters:
Name | Type | Description |
---|---|---|
blob |
Buffer |
- Source:
Returns:
- Type
- this
fromProof(proof) → {this}
Parameters:
Name | Type | Description |
---|---|---|
proof |
OwnershipProof |
- Source:
Returns:
- Type
- this
getData(network) → {Object}
Parameters:
Name | Type | Description |
---|---|---|
network |
Network |
- Source:
Returns:
- Type
- Object
getFee(networkopt) → {AmountValue}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
network |
Network |
<optional> |
- Source:
Returns:
- Type
- AmountValue
getJSON() → {Object}
- Source:
Returns:
- Type
- Object
getMinFee(sizeopt, rateopt) → {AmountValue}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
size |
Number |
<optional> |
|
rate |
Number |
<optional> |
- Source:
Returns:
- Type
- AmountValue
getProof() → {OwnershipProof}
- Source:
Returns:
- Type
- OwnershipProof
getRate(sizeopt, networkopt) → {Rate}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
size |
Number |
<optional> |
|
network |
Network |
<optional> |
- Source:
Returns:
- Type
- Rate
getSize() → {Number}
- Source:
Returns:
- Type
- Number
getVirtualSize() → {Number}
- Source:
Returns:
- Type
- Number
getWeight() → {Number}
- Source:
Returns:
- Type
- Number
hash() → {Hash}
- Source:
Returns:
- Type
- Hash
hashHex() → {String}
- Source:
Returns:
- Type
- String
read(br) → {this}
Parameters:
Name | Type | Description |
---|---|---|
br |
bio.BufferReader |
- Source:
Returns:
- Type
- this
refresh() → {this}
- Source:
Returns:
- Type
- this
toBlob() → {Buffer}
- Source:
Returns:
- Type
- Buffer
toInv() → {InvItem}
- Source:
Returns:
- Type
- InvItem
toProof() → {OwnershipProof}
- Source:
Returns:
- Type
- OwnershipProof
toTX(network, height) → {TX}
Parameters:
Name | Type | Description |
---|---|---|
network |
Network | |
height |
Number |
- Source:
Returns:
- Type
- TX
write(bw) → {BufioWriter}
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufioWriter |
- Source:
Returns:
- Type
- BufioWriter