Class AccountId
Class defining how to encode and decode an AccountID
The unique identifier for an account.
Implements
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class AccountId : Hash160, ISerializedType
Constructors
| Edit this page View SourceAccountId(byte[])
Defines how to construct an AccountID
Declaration
public AccountId(byte[] hash)
Parameters
| Type | Name | Description |
|---|---|---|
| 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 |
|---|---|---|
| byte[] | hash | value either an existing AccountID, a hex-string |
| string | encoded | hex encoded |
AccountId(string)
Defines how to construct an AccountID
Declaration
public AccountId(string v)
Parameters
| Type | Name | Description |
|---|---|---|
| string | v | value either an existing AccountID, a base58 r-Address |
Fields
| Edit this page 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
| Edit this page View SourceFromJson(JsonNode)
create instance from json object
Declaration
public static AccountId FromJson(JsonNode json)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | json | json object |
Returns
| Type | Description |
|---|---|
| AccountId |
FromParser(BinaryParser, int?)
create instance from binary parser
Declaration
public static AccountId FromParser(BinaryParser parser, int? hint = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryParser | parser | parser |
| int? | hint |
Returns
| Type | Description |
|---|---|
| AccountId |
FromValue(string)
create instance from binary parser
Declaration
public static AccountId FromValue(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value |
Returns
| Type | Description |
|---|---|
| AccountId |
ToString()
this object to string data
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Overrides
Operators
| Edit this page View Sourceimplicit operator AccountId(string)
create instance from byte object
Declaration
public static implicit operator AccountId(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | string object |
Returns
| Type | Description |
|---|---|
| AccountId |
implicit operator AccountId(JsonNode)
create instance from json object
Declaration
public static implicit operator AccountId(JsonNode json)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | json | json object |
Returns
| Type | Description |
|---|---|
| AccountId |
implicit operator AccountId(uint)
create instance from byte object
Declaration
public static implicit operator AccountId(uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | object |
Returns
| Type | Description |
|---|---|
| AccountId |
implicit operator JsonNode(AccountId)
create json object from this element
Declaration
public static implicit operator JsonNode(AccountId v)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountId | v | AccountId object |
Returns
| Type | Description |
|---|---|
| JsonNode |