Class SubmitSugar
Inheritance
System.Object
SubmitSugar
Namespace: Xrpl.Sugar
Assembly: Xrpl.dll
Syntax
public class SubmitSugar : object
Methods
| Improve this Doc View SourceGetSignedTx(IXrplClient, Dictionary<String, Object>, Boolean, Boolean, XrplWallet)
Declaration
public static async Task<string> GetSignedTx(IXrplClient client, Dictionary<string, dynamic> transaction, bool autofill = false, bool failHard = false, XrplWallet wallet = null)
Parameters
Type | Name | Description |
---|---|---|
IXrplClient | client | |
Dictionary<System.String, System.Object> | transaction | |
System.Boolean | autofill | |
System.Boolean | failHard | |
XrplWallet | wallet |
Returns
Type | Description |
---|---|
Task<System.String> |
Submit(IXrplClient, Dictionary<String, Object>, Boolean, Boolean, XrplWallet)
Submits a signed/unsigned transaction.
Steps performed on a transaction:
1.
Autofill.
2.
Sign and Encode.
3.
Submit.
Declaration
public static async Task<Submit> Submit(IXrplClient client, Dictionary<string, dynamic> transaction, bool autofill = false, bool failHard = false, XrplWallet wallet = null)
Parameters
Type | Name | Description |
---|---|---|
IXrplClient | client | A Client. |
Dictionary<System.String, System.Object> | transaction | A transaction to autofill, sign and encode, and submit. |
System.Boolean | autofill | If true, autofill a transaction. |
System.Boolean | failHard | If true, and the transaction fails locally, do not retry or relay the transaction to other servers. |
XrplWallet | wallet | A wallet to sign a transaction. It must be provided when submitting an unsigned transaction. |
Returns
Type | Description |
---|---|
Task<Submit> | A Wallet derived from a seed. |
SubmitRequest(IXrplClient, String, Boolean)
Encodes and submits a signed transaction.
Declaration
public static async Task<Submit> SubmitRequest(IXrplClient client, string signedTransaction, bool failHard)
Parameters
Type | Name | Description |
---|---|---|
IXrplClient | client | A Client. |
System.String | signedTransaction | signed Transaction |
System.Boolean | failHard | If true, and the transaction fails locally, do not retry or relay the transaction to other servers. |
Returns
Type | Description |
---|---|
Task<Submit> |