Class PathHop
The object representation of a Hop, an issuer AccountID, an account AccountID, and a Currency
Inheritance
object
PathHop
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class PathHop
Constructors
| Edit this page View SourcePathHop(AccountId, AccountId, Currency)
Create a Hop
Declaration
public PathHop(AccountId account, AccountId issuer, Currency currency)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountId | account | account AccountID |
| AccountId | issuer | issuer AccountID |
| Currency | currency | Currency |
Fields
| Edit this page View SourceAccount
account AccountID
Declaration
public readonly AccountId Account
Field Value
| Type | Description |
|---|---|
| AccountId |
Currency
Currency
Declaration
public readonly Currency Currency
Field Value
| Type | Description |
|---|---|
| Currency |
Issuer
issuer AccountID
Declaration
public readonly AccountId Issuer
Field Value
| Type | Description |
|---|---|
| AccountId |
Type
Hop type
Declaration
public readonly int Type
Field Value
| Type | Description |
|---|---|
| int |
TypeAccount
TypeAccount const byte
Declaration
public const byte TypeAccount = 1
Field Value
| Type | Description |
|---|---|
| byte |
TypeCurrency
TypeCurrency const byte
Declaration
public const byte TypeCurrency = 16
Field Value
| Type | Description |
|---|---|
| byte |
TypeIssuer
type issuer const byte
Declaration
public const byte TypeIssuer = 32
Field Value
| Type | Description |
|---|---|
| byte |
Methods
| Edit this page View SourceFromJson(JsonNode)
Deserialize Hot
Declaration
public static PathHop FromJson(JsonNode json)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonNode | json | json token |
Returns
| Type | Description |
|---|---|
| PathHop |
HasAccount()
check that hop has account AccountID
Declaration
public bool HasAccount()
Returns
| Type | Description |
|---|---|
| bool |
HasCurrency()
check that hop has currency
Declaration
public bool HasCurrency()
Returns
| Type | Description |
|---|---|
| bool |
HasIssuer()
check that hop has issuer AccountID
Declaration
public bool HasIssuer()
Returns
| Type | Description |
|---|---|
| bool |
SynthesizeType()
generate type for current hop
Declaration
public int SynthesizeType()
Returns
| Type | Description |
|---|---|
| int |
ToJson()
Serialize Hop
Declaration
public JsonObject ToJson()
Returns
| Type | Description |
|---|---|
| JsonObject |