Show / Hide Table of Contents

Class BatchNormalizer

Inheritance
object
BatchNormalizer
Namespace: Xrpl.Models.Utils
Assembly: Xrpl.dll
Syntax
public static class BatchNormalizer

Methods

| Edit this page View Source

ComputeInnerTxId(JsonObject)

Computes the transactionID of a normalised inner transaction. The algorithm: txid = SHA512Half( HashPrefix.TXN + STObject(tx).ToBytes() ).

Declaration
public static string ComputeInnerTxId(this JsonObject normalizedInnerTx)
Parameters
Type Name Description
JsonObject normalizedInnerTx
Returns
Type Description
string
| Edit this page View Source

NormalizeBatchTransaction(IXrplClient, Dictionary<string, object>, CancellationToken)

Normalises an inner transaction (object -> JsonObject).

Declaration
public static Task NormalizeBatchTransaction(this IXrplClient client, Dictionary<string, object> tx, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IXrplClient client
Dictionary<string, object> tx
CancellationToken cancellationToken
Returns
Type Description
Task
| Edit this page View Source

NormalizeInnerTransaction(object)

Normalises an inner transaction (object -> JsonObject).

Declaration
public static JsonObject NormalizeInnerTransaction(object source)
Parameters
Type Name Description
object source
Returns
Type Description
JsonObject
| Edit this page View Source

NormalizeInnerTransaction(JsonObject)

Normalises an inner transaction under the XLS-56 rules:

  • adds the tfInnerBatchTxn flag;
  • removes TxnSignature, Signers, LastLedgerSequence;
  • forces Fee = "0" (as a string) and SigningPubKey = "". Returns a new JsonObject; source is left untouched.
Declaration
public static JsonObject NormalizeInnerTransaction(this JsonObject source)
Parameters
Type Name Description
JsonObject source
Returns
Type Description
JsonObject
| Edit this page View Source

ToRawList(object)

Declaration
public static List<Dictionary<string, object>> ToRawList(object rawTransactions)
Parameters
Type Name Description
object rawTransactions
Returns
Type Description
List<Dictionary<string, object>>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX