Show / Hide Table of Contents

Class AccountId

Class defining how to encode and decode an AccountID
The unique identifier for an account.

Inheritance
object
Hash
Hash160
AccountId
Implements
ISerializedType
Inherited Members
Hash.Buffer
Hash.ToBytes(IBytesSink)
Hash.ToJson()
Hash.Equals(Hash)
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class AccountId : Hash160, ISerializedType

Constructors

| Edit this page View Source

AccountId(byte[])

Defines how to construct an AccountID

Declaration
public AccountId(byte[] hash)
Parameters
Type Name Description
byte[] hash

a hex-string

| Edit this page View Source

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

| Edit this page View Source

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 Source

Neutral

Declaration
public static readonly AccountId Neutral
Field Value
Type Description
AccountId
| Edit this page View Source

Zero

Declaration
public static readonly AccountId Zero
Field Value
Type Description
AccountId

Methods

| Edit this page View Source

FromJson(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
| Edit this page View Source

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
| Edit this page View Source

FromValue(string)

create instance from binary parser

Declaration
public static AccountId FromValue(string value)
Parameters
Type Name Description
string value
Returns
Type Description
AccountId
| Edit this page View Source

ToString()

this object to string data

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
Hash.ToString()

Operators

| Edit this page View Source

implicit 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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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

Implements

ISerializedType

Extension Methods

StExtensions.ToDebuggedHex(ISerializedType)
StExtensions.ToHex(ISerializedType)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX