Object

org.ergoplatform.wallet.transactions

TransactionBuilder

Related Doc: package transactions

Permalink

object TransactionBuilder

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransactionBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class EitherOpsFor211[+A, +B] extends AnyVal

    Permalink
  2. case class Payment(recipientAddress: ErgoAddress, transferAmt: Long) extends Product with Serializable

    Permalink

    recipientAddress

    - payment recipient address

    transferAmt

    - amount of ERGs to transfer

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def buildUnsignedTx(inputs: IndexedSeq[ErgoBox], dataInputs: IndexedSeq[DataInput], outputCandidates: Seq[ErgoBoxCandidate], currentHeight: Int, createFeeOutput: Option[Long], changeAddress: ErgoAddress, minChangeValue: Long, minerRewardDelay: Int, burnTokens: TokensMap = Map.empty, boxSelector: BoxSelector = new DefaultBoxSelector(None)): Try[UnsignedErgoLikeTransaction]

    Permalink

    Creates unsigned transaction from given inputs and outputs adding outputs with miner's fee and change Runs required checks ensuring that resulted transaction will be successfully validated by a node.

    Creates unsigned transaction from given inputs and outputs adding outputs with miner's fee and change Runs required checks ensuring that resulted transaction will be successfully validated by a node.

    inputs

    - input boxes

    dataInputs

    - data inputs

    outputCandidates

    - output candidate boxes

    currentHeight

    - current height (used in miner's fee box and change box)

    createFeeOutput

    - optional fee amount to put in a new miner's fee box, which will be created by this method. If None, then feeOut is not created.

    changeAddress

    - address where to send change from the input boxes

    minChangeValue

    - minimum change value to send, otherwise add to miner's fee

    minerRewardDelay

    - reward delay to encode in miner's fee box

    returns

    unsigned transaction

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def collTokensToMap(tokens: Coll[(TokenId, Long)]): TokensMap

    Permalink
  8. def collectOutputTokens(outputCandidates: Seq[ErgoBoxCandidate]): TokensMap

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. def multiPaymentTransaction(inputIds: Array[String], feeAmt: Long, payments: List[Payment], changeAddress: ErgoAddress, changeAmt: Long, currentHeight: Int): UnsignedErgoLikeTransaction

    Permalink

    Assembles unsigned payment transaction with multiple outputs

    Assembles unsigned payment transaction with multiple outputs

    inputIds

    - identifiers of inputs to be used in transaction

    feeAmt

    - fee amount

    payments

    - list of addresses and corresponding amounts to make outputs from

    changeAddress

    - change recipient address

    changeAmt

    - amount to return back to changeAddress

    currentHeight

    - current blockchain height

    returns

    unsigned transaction

  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def paymentTransaction(recipientAddress: ErgoAddress, changeAddress: ErgoAddress, transferAmt: Long, feeAmt: Long, changeAmt: Long, inputIds: Array[String], currentHeight: Int): UnsignedErgoLikeTransaction

    Permalink

    Assembles unsigned payment transaction.

    Assembles unsigned payment transaction.

    recipientAddress

    - payment recipient address

    changeAddress

    - change recipient address

    transferAmt

    - amount of ERGs to transfer

    feeAmt

    - fee amount

    changeAmt

    - amount to return back to changeAddress

    inputIds

    - identifiers of inputs to be used in transaction

    currentHeight

    - current blockchain height

    returns

    unsigned transaction

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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def tokensMapToColl(tokens: TokensMap): Coll[(TokenId, Long)]

    Permalink
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped