Class NameClaimTransactionModel
java.lang.Object
com.kryptokrauts.aeternity.sdk.service.transaction.type.model.AbstractTransactionModel<NameClaimTx>
com.kryptokrauts.aeternity.sdk.service.transaction.type.model.NameClaimTransactionModel
public class NameClaimTransactionModel extends AbstractTransactionModel<NameClaimTx>
-
Field Summary
Fields inherited from class com.kryptokrauts.aeternity.sdk.service.transaction.type.model.AbstractTransactionModel
fee
-
Constructor Summary
Constructors Constructor Description NameClaimTransactionModel()
-
Method Summary
Modifier and Type Method Description AbstractTransaction<?>
buildTransaction(ExternalApi externalApi, InternalApi internalApi)
builds the necessary transaction objectjava.util.function.Function<Tx,NameClaimTransactionModel>
getApiToModelFunction()
remap the given genericTx to a modeljava.math.BigInteger
getNameFee()
special getter which uses the initial required nameFee if a name is present and no nameFee is setNameClaimTx
toApiModel()
this method needs to be implemented for testing purposes (non native mode) and returns the generated tx model from the transaction fieldsvoid
validateInput()
this method can be used to perform transaction specific validations that willMethods inherited from class com.kryptokrauts.aeternity.sdk.service.transaction.type.model.AbstractTransactionModel
checkMandatoryFields, doSign, getInnerTxModel, hasInnerTx
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NameClaimTransactionModel
public NameClaimTransactionModel()
-
-
Method Details
-
toApiModel
Description copied from class:AbstractTransactionModel
this method needs to be implemented for testing purposes (non native mode) and returns the generated tx model from the transaction fields- Specified by:
toApiModel
in classAbstractTransactionModel<NameClaimTx>
- Returns:
- one of
com.kryptokrauts.aeternity.sdk.service.transaction.type.model
-
getApiToModelFunction
Description copied from class:AbstractTransactionModel
remap the given genericTx to a model- Specified by:
getApiToModelFunction
in classAbstractTransactionModel<NameClaimTx>
- Returns:
- a function that maps the generated Api class into our SDK model class
-
validateInput
public void validateInput()Description copied from class:AbstractTransactionModel
this method can be used to perform transaction specific validations that will- Specified by:
validateInput
in classAbstractTransactionModel<NameClaimTx>
-
buildTransaction
Description copied from class:AbstractTransactionModel
builds the necessary transaction object- Specified by:
buildTransaction
in classAbstractTransactionModel<NameClaimTx>
- Parameters:
externalApi
- the node api instanceinternalApi
- the node api instance- Returns:
- the instance of a specific transaction class that extends
AbstractTransaction
-
getNameFee
public java.math.BigInteger getNameFee()special getter which uses the initial required nameFee if a name is present and no nameFee is set- Returns:
- the nameFee
-