Constructors

Methods

  • Returns number

  • Parameters

    • inputs: any

    Returns number

  • Parameters

    • outputs: any

    Returns number

  • Parameters

    • payload_byte_size: number

    Returns number

  • Parameters

    • tx: any

    Returns number

  • Parameters

    • mass: bigint

    Returns number

  • Parameters

    Returns number

  • Parameters

    • minimum_signatures: number

    Returns number

  • Parameters

    • number_of_inputs: number
    • minimum_signatures: number

    Returns number

  • Returns void

  • Parameters

    • amount: bigint

    Returns boolean

  • Returns number

  • isTransactionOutputDust() returns whether or not the passed transaction output amount is considered dust or not based on the configured minimum transaction relay fee.

    Dust is defined in terms of the minimum transaction relay fee. In particular, if the cost to the network to spend coins is more than 1/3 of the minimum transaction relay fee, it is considered dust.

    It is exposed by MiningManager for use by transaction generators and wallets.

    Parameters

    • transaction_output: any

    Returns boolean

  • maximumStandardTransactionMass() is the maximum mass allowed for transactions that are considered standard and will therefore be relayed and considered for mining.

    pub const MAXIMUM_STANDARD_TRANSACTION_MASS: u64 = 100_000;

    Returns number

  • minimumRelayTransactionFee() specifies the minimum transaction fee for a transaction to be accepted to the mempool and relayed. It is specified in sompi per 1kg (or 1000 grams) of transaction mass.

    pub(crate) const MINIMUM_RELAY_TRANSACTION_FEE: u64 = 1000;

    Returns number

  • minimum_required_transaction_relay_fee returns the minimum transaction fee required for a transaction with the passed mass to be accepted into the mempool and relayed.

    Parameters

    • mass: number

    Returns number