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