Package org.bitcoinj.core
Enum Class Transaction.Purpose
- All Implemented Interfaces:
Serializable
,Comparable<Transaction.Purpose>
,Constable
- Enclosing class:
- Transaction
This enum describes the underlying reason the transaction was created. It's useful for rendering wallet GUIs
more appropriately.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTransaction that uses up pledges to an assurance contractTransaction that makes a pledge to an assurance contract.Send-to-self transaction that exists just to create an output of the right size we can pledge.Transaction automatically created and broadcast in order to reallocate money from old to new keys.Raise fee, e.g.Used when the purpose of a transaction is genuinely unknown.Transaction created to satisfy a user payment request. -
Method Summary
Modifier and TypeMethodDescriptionstatic Transaction.Purpose
Returns the enum constant of this class with the specified name.static Transaction.Purpose[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Used when the purpose of a transaction is genuinely unknown. -
USER_PAYMENT
Transaction created to satisfy a user payment request. -
KEY_ROTATION
Transaction automatically created and broadcast in order to reallocate money from old to new keys. -
ASSURANCE_CONTRACT_CLAIM
Transaction that uses up pledges to an assurance contract -
ASSURANCE_CONTRACT_PLEDGE
Transaction that makes a pledge to an assurance contract. -
ASSURANCE_CONTRACT_STUB
Send-to-self transaction that exists just to create an output of the right size we can pledge. -
RAISE_FEE
Raise fee, e.g. child-pays-for-parent.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-