Class AccountId
Class defining how to encode and decode an AccountID
The unique identifier for an account.
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class AccountId : Hash160, ISerializedType
Constructors
| Improve this Doc View SourceAccountId(Byte[])
Defines how to construct an AccountID
Declaration
public AccountId(byte[] hash)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | hash | a hex-string |
AccountId(Byte[], String)
Defines how to construct an AccountID
Declaration
public AccountId(byte[] hash, string encoded)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | hash | value either an existing AccountID, a hex-string |
System.String | encoded | hex encoded |
AccountId(String)
Defines how to construct an AccountID
Declaration
public AccountId(string v)
Parameters
Type | Name | Description |
---|---|---|
System.String | v | value either an existing AccountID, a base58 r-Address |
Fields
| Improve this Doc View SourceNeutral
Declaration
public static readonly AccountId Neutral
Field Value
Type | Description |
---|---|
AccountId |
Zero
Declaration
public static readonly AccountId Zero
Field Value
Type | Description |
---|---|
AccountId |
Methods
| Improve this Doc View SourceFromJson(JToken)
create instance from json object
Declaration
public static AccountId FromJson(JToken json)
Parameters
Type | Name | Description |
---|---|---|
JToken | json | json object |
Returns
Type | Description |
---|---|
AccountId |
FromParser(BinaryParser, Nullable<Int32>)
create instance from binary parser
Declaration
public static AccountId FromParser(BinaryParser parser, int? hint = null)
Parameters
Type | Name | Description |
---|---|---|
BinaryParser | parser | parser |
System.Nullable<System.Int32> | hint |
Returns
Type | Description |
---|---|
AccountId |
FromValue(String)
create instance from binary parser
Declaration
public static AccountId FromValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
AccountId |
ToString()
this object to string data
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Operators
| Improve this Doc View SourceImplicit(JToken to AccountId)
create instance from json object
Declaration
public static implicit operator AccountId(JToken json)
Parameters
Type | Name | Description |
---|---|---|
JToken | json | json object |
Returns
Type | Description |
---|---|
AccountId |
Implicit(String to AccountId)
create instance from byte object
Declaration
public static implicit operator AccountId(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | string object |
Returns
Type | Description |
---|---|
AccountId |
Implicit(UInt32 to AccountId)
create instance from byte object
Declaration
public static implicit operator AccountId(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value | object |
Returns
Type | Description |
---|---|
AccountId |
Implicit(AccountId to JToken)
create json object from this element
Declaration
public static implicit operator JToken(AccountId v)
Parameters
Type | Name | Description |
---|---|---|
AccountId | v | AccountId object |
Returns
Type | Description |
---|---|
JToken |
Implements
IEquatable<>