Class XrplBinaryCodec
Inheritance
System.Object
XrplBinaryCodec
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class XrplBinaryCodec : object
Methods
|
Improve this Doc
View Source
Decode(String)
Declaration
public static JToken Decode(string binary)
Parameters
Type |
Name |
Description |
System.String |
binary |
|
Returns
Type |
Description |
JToken |
JToken
|
|
Improve this Doc
View Source
Encode(JToken)
Declaration
public static string Encode(JToken token)
Parameters
Type |
Name |
Description |
JToken |
token |
|
Returns
Type |
Description |
System.String |
string
|
|
Improve this Doc
View Source
Encode(Object)
Declaration
public static string Encode(object json)
Parameters
Type |
Name |
Description |
System.Object |
json |
|
Returns
Type |
Description |
System.String |
string
|
|
Improve this Doc
View Source
Encode a transaction into binary format in preparation for providing one signature towards a multi-signed transaction. (Only encodes fields that are intended to be signed.)
Declaration
public static string EncodeForMulitSigning(Dictionary<string, dynamic> json, string signingAccount)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
json |
|
System.String |
signingAccount |
|
Returns
Type |
Description |
System.String |
string
|
|
Improve this Doc
View Source
EncodeForSigning(Dictionary<String, Object>)
Encode a transaction into binary format in preparation for signing. (Only encodes fields that are intended to be signed.)
Declaration
public static string EncodeForSigning(Dictionary<string, dynamic> json)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
json |
|
Returns
Type |
Description |
System.String |
string
|
|
Improve this Doc
View Source
EncodeForSigningClaim(Dictionary<String, Object>)
Encode a payment channel <a href="https://xrpl.org/payment-channels.html">here</a>
_ Claim to be signed.
Declaration
public static string EncodeForSigningClaim(Dictionary<string, dynamic> json)
Parameters
Type |
Name |
Description |
Dictionary<System.String, System.Object> |
json |
|
Returns
Type |
Description |
System.String |
string
|
|
Improve this Doc
View Source
SerializeJson(JToken, Byte[], Byte[], Boolean)
Declaration
public static string SerializeJson(JToken json, byte[] prefix = null, byte[] suffix = null, bool signingOnly = false)
Parameters
Type |
Name |
Description |
JToken |
json |
|
System.Byte[] |
prefix |
|
System.Byte[] |
suffix |
|
System.Boolean |
signingOnly |
|
Returns
Type |
Description |
System.String |
string
|