Class: AirdropEntry

mempool.AirdropEntry(options)

Airdrop Entry Represents a airdrop entry.

Constructor

new AirdropEntry(options)

Create an airdrop entry.

Parameters:
Name Type Description
options Object
Source:

Methods

(static) fromAirdrop(proof, height) → {AirdropEntry}

Create a mempool entry from an airdrop proof.

Parameters:
Name Type Description
proof AirdropProof
height Number

Entry height.

Source:
Returns:
Type
AirdropEntry

fromAirdrop(proof, height)

Inject properties from airdrop.

Parameters:
Name Type Description
proof AirdropProof
height Number
Source:

(private) fromOptions(options)

Inject properties from options object.

Parameters:
Name Type Description
options Object
Source:

getFee() → {AmountValue}

Get fee.

Source:
Returns:
Type
AmountValue

getRate() → {Rate}

Calculate fee rate.

Source:
Returns:
Type
Rate

getSize() → {Number}

Get entry serialization size.

Source:
Returns:
Type
Number

memUsage() → {Number}

Calculate the memory usage of an airdrop proof.

Source:
Returns:

Usage in bytes.

Type
Number

read(br) → {this}

Inject properties from serialized data.

Parameters:
Name Type Description
br bio.BufferReader
Source:
Returns:
Type
this

write(bw) → {BufioWriter}

Serialize entry to a buffer.

Parameters:
Name Type Description
bw BufioWriter
Source:
Returns:
Type
BufioWriter