Class AutofillSugar
Inheritance
System.Object
AutofillSugar
Assembly: Xrpl.dll
Syntax
public class AutofillSugar : object
Methods
|
Improve this Doc
View Source
Autofill(IXrplClient, Dictionary<String, Object>, Nullable<Int32>)
Autofills fields in a transaction. This will set Sequence
, Fee
,
lastLedgerSequence
according to the current state of the server this Client
is connected to. It also converts all X-Addresses to classic addresses and
flags interfaces into numbers.
Declaration
public static async Task<Dictionary<string, dynamic>> Autofill(IXrplClient client, Dictionary<string, dynamic> transaction, int? signersCount)
Parameters
Type |
Name |
Description |
IXrplClient |
client |
A client.
|
Dictionary<System.String, System.Object> |
transaction |
A {@link Transaction} in JSON format
|
System.Nullable<System.Int32> |
signersCount |
The expected number of signers for this transaction. Only used for multisigned transactions.
|
Returns
Type |
Description |
Task<Dictionary<System.String, System.Object>> |
|
|
Improve this Doc
View Source
CalculateFeePerTransactionType(IXrplClient, Dictionary<String, Object>, Int32)
Declaration
public static async Task CalculateFeePerTransactionType(IXrplClient client, Dictionary<string, dynamic> tx, int signersCount = 0)
Parameters
Type |
Name |
Description |
IXrplClient |
client |
|
Dictionary<System.String, System.Object> |
tx |
|
System.Int32 |
signersCount |
|
Returns
|
Improve this Doc
View Source
ConvertToClassicAddress(Dictionary<String, Object>, String)
Declaration
public static void ConvertToClassicAddress(Dictionary<string, dynamic> tx, string fieldName)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
tx |
|
System.String |
fieldName |
|
|
Improve this Doc
View Source
FetchAccountDeleteFee(IXrplClient)
Declaration
public static async Task<BigInteger> FetchAccountDeleteFee(IXrplClient client)
Parameters
Returns
Type |
Description |
Task<BigInteger> |
|
|
Improve this Doc
View Source
GetClassicAccountAndTag(String, Nullable<Int32>)
Declaration
public static AutofillSugar.AddressNTag GetClassicAccountAndTag(string account, int? expectedTag)
Parameters
Type |
Name |
Description |
System.String |
account |
|
System.Nullable<System.Int32> |
expectedTag |
|
Returns
|
Improve this Doc
View Source
ScaleValue(String, Int32)
Declaration
public static string ScaleValue(string value, int multiplier)
Parameters
Type |
Name |
Description |
System.String |
value |
|
System.Int32 |
multiplier |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SetLatestValidatedLedgerSequence(IXrplClient, Dictionary<String, Object>)
Declaration
public static async Task SetLatestValidatedLedgerSequence(IXrplClient client, Dictionary<string, dynamic> tx)
Parameters
Type |
Name |
Description |
IXrplClient |
client |
|
Dictionary<System.String, System.Object> |
tx |
|
Returns
|
Improve this Doc
View Source
SetNextValidSequenceNumber(IXrplClient, Dictionary<String, Object>)
Declaration
public static async Task SetNextValidSequenceNumber(IXrplClient client, Dictionary<string, dynamic> tx)
Parameters
Type |
Name |
Description |
IXrplClient |
client |
|
Dictionary<System.String, System.Object> |
tx |
|
Returns
|
Improve this Doc
View Source
SetValidAddresses(Dictionary<String, Object>)
Declaration
public static void SetValidAddresses(Dictionary<string, dynamic> tx)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
tx |
|
|
Improve this Doc
View Source
ValidateAccountAddress(Dictionary<String, Object>, String, String)
Declaration
public static void ValidateAccountAddress(Dictionary<string, dynamic> tx, string accountField, string tagField)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
tx |
|
System.String |
accountField |
|
System.String |
tagField |
|