class ErgoBoxCandidate extends ErgoBoxAssets
Contains the same fields as org.ergoplatform.ErgoBox
, except if transaction id and index,
that will be calculated after full transaction formation.
- See also
org.ergoplatform.ErgoBox for more details
- Alphabetic
- By Inheritance
- ErgoBoxCandidate
- ErgoBoxAssets
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ErgoBoxCandidate(value: Long, ergoTree: ErgoTree, creationHeight: Int, additionalTokens: Coll[(TokenId, Long)] = Colls.emptyColl, additionalRegisters: Map[NonMandatoryRegisterId, _ <: EvaluatedValue[_ <: SType]] = Map())
- value
- amount of money associated with the box
- ergoTree
- guarding script, which should be evaluated to true in order to open this box
- creationHeight
- height when a transaction containing the box was created. This height is declared by user and should not exceed height of the block, containing the transaction with this box.
- additionalTokens
- secondary tokens the box contains
- additionalRegisters
- additional registers the box can carry over
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val additionalRegisters: Map[NonMandatoryRegisterId, _ <: EvaluatedValue[_ <: SType]]
- val additionalTokens: Coll[(TokenId, Long)]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
lazy val
bytesWithNoRef: Array[Byte]
Serialized bytes of this Box without transaction reference data (transactionId and boxIndex).
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val creationHeight: Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg: Any): Boolean
- Definition Classes
- ErgoBoxCandidate → AnyRef → Any
- val ergoTree: ErgoTree
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(identifier: RegisterId): Option[Value[SType]]
Extracts register by id.
Extracts register by id.
- identifier
id of the register to return.
- returns
Some(value) if the register is present, None otherwise
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- ErgoBoxCandidate → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
proposition: SigmaPropValue
Transforms this tree to a proposition, substituting the constants if the constant segregation flag is set.
Transforms this tree to a proposition, substituting the constants if the constant segregation flag is set.
- See also
SigmaPropValue
-
lazy val
propositionBytes: Array[Byte]
Returns the serialized bytes of the guarding ErgoTree.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBox(txId: ModifierId, boxIndex: Short): ErgoBox
Creates a new ErgoBox based on this candidate using the given transaction reference data.
Creates a new ErgoBox based on this candidate using the given transaction reference data.
- txId
id of transaction which created the box
- boxIndex
index of the box in the transaction's OUTPUTS
-
def
toString(): Idn
- Definition Classes
- ErgoBoxCandidate → AnyRef → Any
-
lazy val
tokens: Map[ModifierId, Long]
Additional tokens stored in the box.
Additional tokens stored in the box.
- Definition Classes
- ErgoBoxCandidate → ErgoBoxAssets
-
val
value: Long
- Definition Classes
- ErgoBoxCandidate → ErgoBoxAssets
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()