Class/Object

org.ergoplatform

ErgoBoxCandidate

Related Docs: object ErgoBoxCandidate | package ergoplatform

Permalink

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

Linear Supertypes
ErgoBoxAssets, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErgoBoxCandidate
  2. ErgoBoxAssets
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ErgoBoxCandidate(value: Long, ergoTree: ErgoTree, creationHeight: Int, additionalTokens: Coll[(TokenId, Long)] = Colls.emptyColl, additionalRegisters: Map[NonMandatoryRegisterId, _ <: EvaluatedValue[_ <: SType]] = Map())

    Permalink

    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

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val additionalRegisters: Map[NonMandatoryRegisterId, _ <: EvaluatedValue[_ <: SType]]

    Permalink

    - additional registers the box can carry over

  5. val additionalTokens: Coll[(TokenId, Long)]

    Permalink

    - secondary tokens the box contains

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. lazy val bytesWithNoRef: Array[Byte]

    Permalink

    Serialized bytes of this Box without transaction reference data (transactionId and boxIndex).

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. val creationHeight: Int

    Permalink

    - height when a transaction containing the box was created.

    - 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.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg: Any): Boolean

    Permalink
    Definition Classes
    ErgoBoxCandidate → AnyRef → Any
  12. val ergoTree: ErgoTree

    Permalink

    - guarding script, which should be evaluated to true in order to open this box

  13. def get(identifier: RegisterId): Option[Value[SType]]

    Permalink

    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

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int

    Permalink
    Definition Classes
    ErgoBoxCandidate → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def proposition: SigmaPropValue

    Permalink

    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

  21. lazy val propositionBytes: Array[Byte]

    Permalink

    Returns the serialized bytes of the guarding ErgoTree.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toBox(txId: ModifierId, boxIndex: Short): ErgoBox

    Permalink

    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

  24. def toString(): Idn

    Permalink
    Definition Classes
    ErgoBoxCandidate → AnyRef → Any
  25. lazy val tokens: Map[ModifierId, Long]

    Permalink

    Additional tokens stored in the box.

    Additional tokens stored in the box.

    Definition Classes
    ErgoBoxCandidateErgoBoxAssets
  26. val value: Long

    Permalink

    - amount of money associated with the box

    - amount of money associated with the box

    Definition Classes
    ErgoBoxCandidateErgoBoxAssets
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from ErgoBoxAssets

Inherited from AnyRef

Inherited from Any

Ungrouped