Companion

object Companion

Properties

Link copied to clipboard
const val ALL: Int = 895

NOT AN ACTUAL FLAG: all the flag bits set

Link copied to clipboard
const val BIND_OUTPUT_PARAMETERS: Int = 16

Looks for unfinished output scripts (script patterns) and binds them

Link copied to clipboard
const val DEDUCT_FEE_FROM_OUTPUT: Int = 256

Indicate that the fee should be deducted from a specific output (independently passed as a parameter to txCompleter)

Link copied to clipboard
const val FUND_GROUPS: Int = 2

Adds any inputs needed to supply enough assets to cover the groups that are in the outputs.

Link copied to clipboard
const val FUND_NATIVE: Int = 4

Adds the right amount of NEXA to fund this tx including fee.

Link copied to clipboard
const val MUST_MINT: Int = 512

Do NOT use existing UTXOs to fulfill the grouped outputs in this tx, the tx MUST use mint authorities

Link copied to clipboard
const val NO_BATON_AUTHORITIES: Int = 64

If this is set, authorities that are batons (have the ability to create a new authority output) will not be used. Set this if you are following an authority management architecture where you use your baton authorities to create a bunch of single use non-baton authorities for "normal" use. This architecture stops baton authorities from being locked up in reserved but unfinished partial transactions.

Link copied to clipboard
const val PARTIAL: Int = 32

Use sighash single or 0thru to create a partial transaction. Setting this flag will also cause some final "sanity" checks to be skipped because it is expected that the transaction is not finished.

Link copied to clipboard
const val SIGN: Int = 8

Signs this transaction

Link copied to clipboard
const val SPEND_ALL_NATIVE: Int = 128

Spends ALL the Nexa in the wallet. It is necessary to explicitly specify this because txCompleter needs to calculate the fee as a function of the tx size which changes based on how much is being spent.

Link copied to clipboard
const val USE_GROUP_AUTHORITIES: Int = 1

Allow the use of group authorities to solve this transaction. Note baton qualification below