public class LocalSigner
extends java.lang.Object
Constructor and Description |
---|
LocalSigner() |
Modifier and Type | Method and Description |
---|---|
static JO |
signAndBroadcast(ChildChain childChain,
long recipientId,
Attachment attachment,
byte[] privateKey,
long feeNQT,
long feeRateNQTPerFXT,
long minBundlerBalanceFXT,
ChainTransactionId referencedTransaction,
java.net.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
|
public static JO signAndBroadcast(ChildChain childChain, long recipientId, Attachment attachment, byte[] privateKey, long feeNQT, long feeRateNQTPerFXT, long minBundlerBalanceFXT, ChainTransactionId referencedTransaction, java.net.URL url)
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