All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ergoplatform.appkit.BlockchainParameters Maven / Gradle / Ivy

The newest version!
package org.ergoplatform.appkit;

/**
 * Parameters of the blockchain
 */
public interface BlockchainParameters {
    /**
     * @return Network type (Mainnet, Testnet)
     */
    NetworkType getNetworkType();

    /**
     * @return cost of storing 1 byte in UTXO for four years, in nanoErgs
     */
    int getStorageFeeFactor();

    /**
     * @return Minimum value per byte of an output
     */
    int getMinValuePerByte();

    /**
     * @return max block size, in bytes
     */
    int getMaxBlockSize();

    /**
     * @return cost of a token contained in a transaction, in computation unit
     */
    int getTokenAccessCost();

    /**
     * @return cost of a transaction input, in computation unit
     */
    int getInputCost();

    /**
     * @return cost of a transaction data input, in computation unit
     */
    int getDataInputCost();

    /**
     * @return cost of a transaction output, in computation unit
     */
    int getOutputCost();

    /**
     * @return computation units limit per block
     */
    int getMaxBlockCost();

    /**
     * @return Protocol version
     */
    byte getBlockVersion();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy