Package nxt.tools
Class LocalSigner
java.lang.Object
nxt.tools.LocalSigner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Transaction.BuildercreateBuilder(ChildChain childChain, long recipientId, Attachment attachment, byte[] privateKey, long feeNQT, long feeRateNQTPerFXT, long minBundlerBalanceFXT, ChainTransactionId referencedTransaction, URL url) static JOsignAndBroadcast(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 nodestatic JOsignAndBroadcast(Transaction.Builder builder, byte[] privateKey, URL url)
-
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 chainrecipientId- recipientattachment- additional information specific to the transaction typeprivateKey- private keyfeeNQT- fee, specify -1 to calculate the best bundling feefeeRateNQTPerFXT- rate between child fee and parent feeminBundlerBalanceFXT- only consider bundlers with at list this bundling balancereferencedTransaction- transaction to referenceurl- optional remote node to which to submit the transaction- Returns:
- the result of broadcasting the transaction
-
signAndBroadcast
-
createBuilder
public static Transaction.Builder createBuilder(ChildChain childChain, long recipientId, Attachment attachment, byte[] privateKey, long feeNQT, long feeRateNQTPerFXT, long minBundlerBalanceFXT, ChainTransactionId referencedTransaction, URL url)
-