Package com.klaytn.caver.tx.type
Enum TxType.Type
- java.lang.Object
-
- java.lang.Enum<TxType.Type>
-
- com.klaytn.caver.tx.type.TxType.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TxType.Type>
- Enclosing interface:
- TxType
public static enum TxType.Type extends java.lang.Enum<TxType.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_CREATION
This creates an externally owned account with the given account key.ACCOUNT_UPDATE
This updates the key of the account.CANCEL
This cancels the transaction with the same nonce in the txpool.CHAIN_DATA_ANCHORING
This is a transaction for anchoring child chain data.FEE_DELEGATED_ACCOUNT_UPDATE
This updates the key of the account.FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO
This updates the key of the account.FEE_DELEGATED_CANCEL
This cancels the transaction with the same nonce in the txpool.FEE_DELEGATED_CANCEL_WITH_RATIO
This cancels the transaction with the same nonce in the txpool.FEE_DELEGATED_SMART_CONTRACT_DEPLOY
This deploys a smart contract.FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO
This deploys a smart contract.FEE_DELEGATED_SMART_CONTRACT_EXECUTION
This executes a smart contract with the given data.FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO
This executes a smart contract with the given data.FEE_DELEGATED_VALUE_TRANSFER
This is a value transfer transaction with a fee payer.FEE_DELEGATED_VALUE_TRANSFER_MEMO
This transfers KLAY with a data.FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO
This transfers KLAY with a data.FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO
This is a value transfer transaction with a fee payer and its ratio.LEGACY
This represents a type of transactions existed previously in Klaytn.SMART_CONTRACT_DEPLOY
This deploys a smart contract to the given address.SMART_CONTRACT_EXECUTION
This executes a smart contract with the given data.VALUE_TRANSFER
This transfers KLAY only.VALUE_TRANSFER_MEMO
This transfers KLAY with a memo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TxType.Type
findByValue(byte value)
byte
get()
static TxType.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TxType.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEGACY
public static final TxType.Type LEGACY
This represents a type of transactions existed previously in Klaytn.
-
ACCOUNT_CREATION
public static final TxType.Type ACCOUNT_CREATION
This creates an externally owned account with the given account key.
-
ACCOUNT_UPDATE
public static final TxType.Type ACCOUNT_UPDATE
This updates the key of the account.
-
FEE_DELEGATED_ACCOUNT_UPDATE
public static final TxType.Type FEE_DELEGATED_ACCOUNT_UPDATE
This updates the key of the account. The transaction fee is paid by the fee payer.
-
FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO
public static final TxType.Type FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO
This updates the key of the account. The given ratio of the transaction fee is paid by the fee payer.
-
VALUE_TRANSFER
public static final TxType.Type VALUE_TRANSFER
This transfers KLAY only.
-
VALUE_TRANSFER_MEMO
public static final TxType.Type VALUE_TRANSFER_MEMO
This transfers KLAY with a memo.
-
FEE_DELEGATED_VALUE_TRANSFER
public static final TxType.Type FEE_DELEGATED_VALUE_TRANSFER
This is a value transfer transaction with a fee payer. The fee payer address can be different from the sender.
-
FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO
public static final TxType.Type FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO
This is a value transfer transaction with a fee payer and its ratio.
-
FEE_DELEGATED_VALUE_TRANSFER_MEMO
public static final TxType.Type FEE_DELEGATED_VALUE_TRANSFER_MEMO
This transfers KLAY with a data. The fee is paid by the fee payer.
-
FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO
public static final TxType.Type FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO
This transfers KLAY with a data. The given ratio of the transaction fee is paid by the fee payer.
-
SMART_CONTRACT_DEPLOY
public static final TxType.Type SMART_CONTRACT_DEPLOY
This deploys a smart contract to the given address.
-
FEE_DELEGATED_SMART_CONTRACT_DEPLOY
public static final TxType.Type FEE_DELEGATED_SMART_CONTRACT_DEPLOY
This deploys a smart contract. The fee is paid by the fee payer.
-
FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO
public static final TxType.Type FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO
This deploys a smart contract. The given ratio of the transaction fee is paid by the fee payer.
-
SMART_CONTRACT_EXECUTION
public static final TxType.Type SMART_CONTRACT_EXECUTION
This executes a smart contract with the given data.
-
FEE_DELEGATED_SMART_CONTRACT_EXECUTION
public static final TxType.Type FEE_DELEGATED_SMART_CONTRACT_EXECUTION
This executes a smart contract with the given data. The fee is paid by the fee payer.
-
FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO
public static final TxType.Type FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO
This executes a smart contract with the given data. The given ratio of the transaction fee is paid by the fee payer.
-
CANCEL
public static final TxType.Type CANCEL
This cancels the transaction with the same nonce in the txpool.
-
FEE_DELEGATED_CANCEL
public static final TxType.Type FEE_DELEGATED_CANCEL
This cancels the transaction with the same nonce in the txpool. The fee is paid by the fee payer.
-
FEE_DELEGATED_CANCEL_WITH_RATIO
public static final TxType.Type FEE_DELEGATED_CANCEL_WITH_RATIO
This cancels the transaction with the same nonce in the txpool. The given ratio of the transaction fee is paid by the fee payer.
-
CHAIN_DATA_ANCHORING
public static final TxType.Type CHAIN_DATA_ANCHORING
This is a transaction for anchoring child chain data. This transaction is generated and submitted by a servicechain. Submitting transactions of this type via RPC is prohibited.
-
-
Method Detail
-
values
public static TxType.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TxType.Type c : TxType.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TxType.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
get
public byte get()
-
findByValue
public static TxType.Type findByValue(byte value)
-
-