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, data, height) → {AirdropEntry}

Create a mempool entry from an airdrop proof.

Parameters:
Name Type Description
proof AirdropProof
data Object
height Number

Entry height.

Source:
Returns:
Type
AirdropEntry

(private) 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() → {Amount}

Get fee.

Source:
Returns:
Type
Amount

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

(private) read(data) → {AirdropEntry}

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:
Returns:
Type
AirdropEntry

write() → {Buffer}

Serialize entry to a buffer.

Source:
Returns:
Type
Buffer