STAS
  • STAS Documentation
  • Getting Started
    • Setup
    • 2 Minute Mint
    • The Ecosystem
  • Presentations
  • Insights
    • STAS-20
    • STAS-50
    • STAS-789
  • Library
    • Token Properties
    • Instant Mint
    • Mint in Detail
    • Transfer
    • Split
    • Merge
    • Redeem
    • Atomic Swaps
    • Advanced Features
      • Data Transactions
      • Fee Estimates
      • Zero Change
      • Zero Fee
      • Unsigned Transactions
  • External
    • DXS Library
Powered by GitBook
On this page
  1. Library
  2. Advanced Features

Zero Fee

No fee input transactions

Zero fee will create the transaction hex without any payment input UTXO or change output UTXO. To enable zero fee model simply do not include the paymentUtxo or paymentPrivateKey values in the function argument by passing in "null".

const transferHex = await stasTransfer.signed(
    ownerPrivatekey, 
    stasUtxo, 
    destinationAddress, 
    null, 
    null
)

The result will be a transaction that does not include any funds to cover the transaction cost and instead the transaction fee will be managed from the miner side through a zero fee authentication model.

Please note that this model is currently not supported by any existing miners on the network.

PreviousZero ChangeNextUnsigned Transactions

Last updated 2 years ago