org.ergoplatform.appkit.BlockchainParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ergo-appkit_2.11 Show documentation
Show all versions of ergo-appkit_2.11 Show documentation
A Library for Polyglot Development of Ergo Applications
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