Package nxt.tools

Class LocalSigner

java.lang.Object
nxt.tools.LocalSigner

public class LocalSigner extends Object
  • Constructor Details

    • LocalSigner

      public LocalSigner()
  • Method Details

    • signAndBroadcast

      public static JO signAndBroadcast(ChildChain childChain, long recipientId, Attachment attachment, byte[] privateKey, long feeNQT, long feeRateNQTPerFXT, long minBundlerBalanceFXT, ChainTransactionId referencedTransaction, URL url)
      Helper for client applications to sign transactions without submitting the passphrase to a remote node This utility method, signs a transaction locally without exposing the secretPhrase to a remote node
      Parameters:
      childChain - child chain
      recipientId - recipient
      attachment - additional information specific to the transaction type
      privateKey - private key
      feeNQT - fee, specify -1 to calculate the best bundling fee
      feeRateNQTPerFXT - rate between child fee and parent fee
      minBundlerBalanceFXT - only consider bundlers with at list this bundling balance
      referencedTransaction - transaction to reference
      url - optional remote node to which to submit the transaction
      Returns:
      the result of broadcasting the transaction
    • signAndBroadcast

      public static JO signAndBroadcast(Transaction.Builder builder, byte[] privateKey, URL url)
    • createBuilder

      public static Transaction.Builder createBuilder(ChildChain childChain, long recipientId, Attachment attachment, byte[] privateKey, long feeNQT, long feeRateNQTPerFXT, long minBundlerBalanceFXT, ChainTransactionId referencedTransaction, URL url)