-
-
Method Summary
Static Methods
Modifier and Type |
Method |
Description |
static java.math.BigInteger |
getBlockTimeout(java.lang.String domain) |
returns the time that is needed to wait until a claim becomes final for a given domain
the avery keyblock-time is 3 minutes
|
static java.math.BigInteger |
getInitialNameFee(java.lang.String name) |
returns the initial nameFee which is required to claim the name
|
static java.lang.String |
getNameId(java.lang.String name) |
|
static java.math.BigInteger |
getNextNameFee(java.math.BigInteger currentNameFee) |
returns the nameFee which is required for the next claim based on the current nameFee
the next nameFee is 5% higher than the current nameFee
|
-
Field Details
-
FEE_MULTIPLIER
static final java.math.BigInteger FEE_MULTIPLIER
-
MAX_TTL
static final java.math.BigInteger MAX_TTL
-
SMALLEST_FEE
static final java.math.BigInteger SMALLEST_FEE
-
-
-
-
-
INITIAL_NAME_LENGTH_FEE_MAP
static final java.util.Map<java.lang.Integer,java.math.BigInteger> INITIAL_NAME_LENGTH_FEE_MAP
-
POINTERKEY_TO_IDENTIFIER_MAP
static final java.util.Map<java.lang.String,java.lang.String> POINTERKEY_TO_IDENTIFIER_MAP
-
Method Details
-
getBlockTimeout
static java.math.BigInteger getBlockTimeout(java.lang.String domain)
returns the time that is needed to wait until a claim becomes final for a given domain
the avery keyblock-time is 3 minutes
- Parameters:
domain
- the domain including .chain
- Returns:
- the timeout (in blocks) until the claim becomes final
-
getInitialNameFee
static java.math.BigInteger getInitialNameFee(java.lang.String name)
returns the initial nameFee which is required to claim the name
- Parameters:
name
- the name to claim
- Returns:
- the initial nameFee which is required to claim the name
-
getNextNameFee
static java.math.BigInteger getNextNameFee(java.math.BigInteger currentNameFee)
returns the nameFee which is required for the next claim based on the current nameFee
the next nameFee is 5% higher than the current nameFee
- Parameters:
currentNameFee
- the nameFee of the current claim
- Returns:
- the nameFee which is required for the next claim
-
getNameId
static java.lang.String getNameId(java.lang.String name)
- Parameters:
name
- the AENS name (e.g. kryptokrauts.chain)
- Returns:
- the nameId for a given name