object TransactionBuilder
- Alphabetic
- By Inheritance
- TransactionBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit final class EitherOpsFor211[+A, +B] extends AnyVal
-
case class
Payment(recipientAddress: ErgoAddress, transferAmt: Long) extends Product with Serializable
- recipientAddress
- payment recipient address
- transferAmt
- amount of ERGs to transfer
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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]
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def collTokensToMap(tokens: Coll[(TokenId, Long)]): TokensMap
- def collectOutputTokens(outputCandidates: Seq[ErgoBoxCandidate]): TokensMap
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
multiPaymentTransaction(inputIds: Array[String], feeAmt: Long, payments: List[Payment], changeAddress: ErgoAddress, changeAmt: Long, currentHeight: Int): UnsignedErgoLikeTransaction
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
-
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
paymentTransaction(recipientAddress: ErgoAddress, changeAddress: ErgoAddress, transferAmt: Long, feeAmt: Long, changeAmt: Long, inputIds: Array[String], currentHeight: Int): UnsignedErgoLikeTransaction
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def tokensMapToColl(tokens: TokensMap): Coll[(TokenId, Long)]
-
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()