Class BatchUtils
Inheritance
object
BatchUtils
Assembly: Xrpl.dll
Syntax
public static class BatchUtils
Methods
|
Edit this page
View Source
Build(string, IEnumerable<ITransactionRequest>, BatchFlags?, List<BatchSigner>?)
Turns a list of ordinary transactions - your own C# models - into the inner RawTransactions
a Batch needs (Fee = "0", SigningPubKey = "", + tfInnerBatchTxn; no TxnSignature/Signers/LastLedgerSequence).
The assembled batch is validated before it is returned.
Declaration
public static Batch Build(string account, IEnumerable<ITransactionRequest> transactions, BatchFlags? mode = null, List<BatchSigner>? batchSigners = null)
Parameters
Returns
Exceptions
| Type |
Condition |
| ArgumentNullException |
When transactions is null.
|
| ArgumentException |
When the assembled Batch is malformed - fewer than 2 or more than 8 inner
transactions, an inner type a Batch forbids, or an inner that is not shaped the way a Batch requires.
|
|
Edit this page
View Source
GetBatchSignerAccounts(Dictionary<string, object>)
Declaration
public static BatchSignerAccounts GetBatchSignerAccounts(this Dictionary<string, object> tx)
Parameters
| Type |
Name |
Description |
| Dictionary<string, object> |
tx |
|
Returns
|
Edit this page
View Source
ToBatchTx(ITransactionRequest)
Declaration
public static RawTransactionWrapper ToBatchTx(this ITransactionRequest tx)
Parameters
Returns