Show / Hide Table of Contents

Class BatchUtils

Inheritance
object
BatchUtils
Namespace: Xrpl.Models.Utils
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
Type Name Description
string account
IEnumerable<ITransactionRequest> transactions
BatchFlags? mode
List<BatchSigner> batchSigners
Returns
Type Description
Batch
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
Type Description
BatchSignerAccounts
| Edit this page View Source

ToBatchTx(ITransactionRequest)

Declaration
public static RawTransactionWrapper ToBatchTx(this ITransactionRequest tx)
Parameters
Type Name Description
ITransactionRequest tx
Returns
Type Description
RawTransactionWrapper
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX