Class ZephyrCheckTx

java.lang.Object
zephyr.wallet.model.ZephyrCheck
zephyr.wallet.model.ZephyrCheckTx

public class ZephyrCheckTx extends ZephyrCheck
Results from checking a transaction key.
  • Field Details

    • inTxPool

      public Boolean inTxPool
    • numConfirmations

      public Long numConfirmations
    • receivedAmount

      public BigInteger receivedAmount
  • Constructor Details

    • ZephyrCheckTx

      public ZephyrCheckTx()
  • Method Details

    • inTxPool

      public Boolean inTxPool()
    • setInTxPool

      public void setInTxPool(Boolean inTxPool)
    • getNumConfirmations

      public Long getNumConfirmations()
    • setNumConfirmations

      public void setNumConfirmations(Long numConfirmations)
    • getReceivedAmount

      public BigInteger getReceivedAmount()
      Returns the amount the checked transaction paid to the address.

      Zephyr: in the full wallet (ZephyrWalletFull) this is 0 for every current transaction. The core reads the amount of the asset ZEPH only, and since hard fork 11 (height 536,000) no output is ZEPH; ZephyrCheck.isGood() and the confirmations are right. Read the amount from the wallet's getTxs(hash): the receiver's incoming transfers or the sender's outgoing destinations, each with its asset. Through ZephyrWalletRpc this is null for now (the RPC client does not read the per-asset amounts yet). See the user guide, docs/guide/08-known-limitations.md, section "checkTxKey returns amount 0".

      Returns:
      the received amount in atomic units, 0 for current transactions (see above)
    • setReceivedAmount

      public void setReceivedAmount(BigInteger receivedAmount)