• Reference
Show / Hide Table of Contents
  • Xrpl.AddressCodec
    • AddressCodecException
    • B58
    • B58.Decoded
    • B58.Version
    • B58.Versions
    • EncodingFormatException
    • KeypairException
    • Utils
    • XrplAddressCodec
    • XrplAddressCodec.CodecAccountID
    • XrplAddressCodec.CodecAddress
    • XrplCodec
    • XrplCodec.DecodedSeed
  • Xrpl.BinaryCodec
    • BinaryCodecException
    • ExtenstionHelpers
    • ExtenstionHelpers.NumFunc
    • ISerializedType
    • StExtensions
    • XrplBinaryCodec
  • Xrpl.BinaryCodec.Binary
    • BinaryParser
    • BinarySerializer
    • BufferParser
    • BytesList
    • IBytesSink
    • StreamParser
  • Xrpl.BinaryCodec.Enums
    • AccountIdField
    • AmountField
    • BlobField
    • EngineResultField
    • Enumeration<T>
    • EnumItem
    • Field
    • FieldType
    • FromJson
    • FromParser
    • Hash128Field
    • Hash160Field
    • Hash256Field
    • LedgerEntryTypeField
    • PathSetField
    • SerializedEnumeration<TEnum, TOrd>
    • SerializedEnumItem<TOrd>
    • StArrayField
    • StObjectField
    • TransactionTypeField
    • Uint16Field
    • Uint32Field
    • Uint64Field
    • Uint8Field
    • Vector256Field
  • Xrpl.BinaryCodec.Hashing
    • HashPrefix
    • Sha512
  • Xrpl.BinaryCodec.Ledger
    • LedgerHeader
  • Xrpl.BinaryCodec.ShaMapTree
    • AccountState
    • ILeafWalker
    • IShaMapItem<T>
    • ITreeWalker
    • LedgerEntry
    • LedgerEntryReader
    • OnLeaf
    • PathToIndex
    • ShaMap
    • ShaMapDiff
    • ShaMapInner
    • ShaMapLeaf
    • ShaMapNode
    • TransactionResult
    • TransactionResultReader
    • TransactionTree
    • TreeWalker
  • Xrpl.BinaryCodec.Transactions
    • TxFormat
    • TxFormat.Requirement
    • TxFormatValidationException
  • Xrpl.BinaryCodec.Types
    • AccountId
    • Amount
    • AmountValue
    • Blob
    • Currency
    • EngineResult
    • EngineResult.EngineResultValues
    • Hash
    • Hash128
    • Hash160
    • Hash256
    • InvalidAmountValueException
    • InvalidJsonException
    • IouValue
    • Issue
    • LedgerEntryType
    • LedgerEntryType.Enumeration
    • Path
    • PathHop
    • PathSet
    • PrecisionException
    • StArray
    • StObject
    • StReader
    • TransactionType
    • TransactionType.Enumeration
    • Uint<T>
    • Uint16
    • Uint32
    • Uint64
    • Uint8
    • Vector256
  • Xrpl.BinaryCodec.Util
    • B16
    • Bits
    • ChannelUtils
  • Xrpl.Client
    • connection
    • connection.ConnectionOptions
    • connection.Trace
    • IXrplClient
    • OnConsensusStreamResponse
    • OnErrorResponse
    • OnLedgerStreamResponse
    • OnPathFindStream
    • OnPeerStatusStreamResponse
    • OnRippleResponse
    • OnTransactionStreamResponse
    • OnValidationsStreamResponse
    • XrplClient
  • Xrpl.Client.Exceptions
    • ConnectionError
    • DisconnectedError
    • NotConnectedError
    • NotFoundError
    • ResponseFormatError
    • RippledError
    • RippledNotInitializedError
    • RippleException
    • TimeoutError
    • UnexpectedError
    • ValidationException
    • XrplError
    • XRPLFaucetError
  • Xrpl.Client.Extensions
    • EmumExtensions
    • EnumerableExtensions
    • ExtensionHelpers
  • Xrpl.Client.Json.Converters
    • CurrencyConverter
    • GenericStringConverter<T>
    • LedgerBinaryConverter
    • LedgerIndexConverter
    • LOConverter
    • MetaBinaryConverter
    • RippleDateTimeConverter
    • StringOrArrayConverter
    • TransactionConverter
    • TransactionOrHashConverter
  • Xrpl.Keypairs
    • IXrplKeyPair
    • KeyPairExtensions
    • rKeypair
    • XrplKeypairs
  • Xrpl.Keypairs.Ed25519
    • EdKeyPair
  • Xrpl.Keypairs.K256
    • EcdsaSignature
    • K256KeyGenerator
    • K256KeyPair
    • Secp256K1
  • Xrpl.Keypairs.Utils
    • Sha512
  • Xrpl.Models
    • LedgerEntryType
    • StreamType
    • TransactionType
  • Xrpl.Models.Common
    • Common
    • Common.IssuedCurrency
    • Common.IssuedCurrencyAmount
    • Common.XRP
    • Currency
    • LedgerIndex
  • Xrpl.Models.Ledger
    • AccountRootFlags
    • BaseLedgerEntity
    • BaseLedgerEntry
    • EnableAmendmentFlags
    • HashOrTransaction
    • LedgerBinaryEntity
    • LedgerDataBinaryOrJson
    • LedgerEntity
    • LedgerIndexType
    • LOAccountRoot
    • LOAmendments
    • LOBaseLedger
    • LOCheck
    • LODepositPreauth
    • LODirectoryNode
    • LOEscrow
    • LOFeeSettings
    • LOLedger
    • LOLedgerCurrentIndex
    • LOLedgerData
    • LOLedgerEntry
    • LOLedgerHashes
    • LOOffer
    • LOPayChannel
    • LORippleState
    • LOSignerList
    • LOTicket
    • Majority
    • QueuedTransaction
    • RippleStateFlags
    • SignerEntry
  • Xrpl.Models.Methods
    • AccountChannels
    • AccountChannelsRequest
    • AccountCurrencies
    • AccountCurrenciesRequest
    • AccountInfo
    • AccountInfoRequest
    • AccountingStateInfo
    • AccountingStateSummary
    • AccountLines
    • AccountLinesRequest
    • AccountNFTs
    • AccountNFTsRequest
    • AccountObjects
    • AccountObjectsRequest
    • AccountOffers
    • AccountOffersRequest
    • AccountTransaction
    • AccountTransactions
    • AccountTransactionsRequest
    • BaseLedgerRequest
    • BookCurrency
    • BookOffersRequest
    • Channel
    • ChannelAuthorizeRequest
    • ChannelVerifyRequest
    • Drops
    • Fee
    • FeeRequest
    • GatewayBalances
    • GatewayBalancesRequest
    • Info
    • JobType
    • LastClose
    • LedgerClosedRequest
    • LedgerCurrentRequest
    • LedgerDataRequest
    • LedgerEntryRequest
    • LedgerEntryRequestType
    • LedgerRequest
    • Levels
    • Load
    • NFT
    • NFTBuyOffers
    • NFTBuyOffersRequest
    • NFTOffer
    • NFTSellOffers
    • NFTSellOffersRequest
    • NoRippleCheck
    • NoRippleCheckRequest
    • Offer
    • Path
    • PingRequest
    • QueueData
    • RandomRequest
    • RippleRequest
    • RippleState
    • RoleType
    • ServerInfo
    • ServerInfoRequest
    • ServerState
    • SubmitRequest
    • SubscribeBase
    • SubscribeBook
    • SubscribeRequest
    • TakerAmount
    • TransactionSummary
    • TrustLine
    • TxRequest
    • UnsubscribeRequest
    • ValidatedLedger
  • Xrpl.Models.Subscriptions
    • AlternativePath
    • BaseResponse
    • BaseStreamResponseResult
    • ConsensusStreamResponseResult
    • ErrorResponse
    • LedgerStreamResponseResult
    • OrderBookStreamResponseResult
    • PathFindStreamResult
    • PeerStatusStreamResponseResult
    • ResponseStreamType
    • RippleResponseWarning
    • TransactionStreamResponseResult
    • ValidationsStreamResponseResult
    • WarningDetails
  • Xrpl.Models.Transaction
    • AccountDelete
    • AccountDeleteResponse
    • AccountSet
    • AccountSetResponse
    • AccountSetTfFlags
    • AffectedNode
    • BaseTransactionResponse
    • BinaryTransaction
    • BinaryTransactionResponse
    • BookOffers
    • CheckCancel
    • CheckCancelResponse
    • CheckCash
    • CheckCashResponse
    • CheckCreate
    • CheckCreateResponse
    • Common
    • DepositPreauth
    • DepositPreauthResponse
    • EscrowCancel
    • EscrowCancelResponse
    • EscrowCreate
    • EscrowCreateResponse
    • EscrowFinish
    • EscrowFinishResponse
    • IAccountDelete
    • IAccountSet
    • IBaseTransactionResponse
    • ICheckCancel
    • ICheckCash
    • ICheckCreate
    • IDepositPreauth
    • IEscrowCancel
    • IEscrowCreate
    • IEscrowFinish
    • INFTokenAcceptOffer
    • INFTokenBurn
    • INFTokenCancelOffer
    • INFTokenCreateOffer
    • INFTokenMint
    • IOfferCancel
    • IOfferCreate
    • IPayment
    • IPaymentChannelClaim
    • IPaymentChannelCreate
    • IPaymentChannelFund
    • ISetRegularKey
    • ISignerListSet
    • ITicketCreate
    • ITransactionCommon
    • ITransactionResponseCommon
    • ITrustSet
    • Memo
    • MemoWrapper
    • Meta
    • NFTokenAcceptOffer
    • NFTokenAcceptOfferResponse
    • NFTokenBurn
    • NFTokenBurnResponse
    • NFTokenCancelOffer
    • NFTokenCancelOfferResponse
    • NFTokenCreateOffer
    • NFTokenCreateOfferFlags
    • NFTokenCreateOfferResponse
    • NFTokenMint
    • NFTokenMintFlags
    • NFTokenMintResponse
    • NodeInfo
    • Offer
    • OfferCancel
    • OfferCancelResponse
    • OfferCreate
    • OfferCreateFlags
    • OfferCreateResponse
    • OfferFlags
    • Payment
    • PaymentChannelClaim
    • PaymentChannelClaimFlags
    • PaymentChannelClaimResponse
    • PaymentChannelCreate
    • PaymentChannelCreateResponse
    • PaymentChannelFund
    • PaymentChannelFundResponse
    • PaymentFlags
    • PaymentResponse
    • SetRegularKey
    • SetRegularKeyResponse
    • Signer
    • SignerListSet
    • SignerListSetResponse
    • Submit
    • TicketCreate
    • TicketCreateResponse
    • TransactionCommon
    • TransactionResponseCommon
    • TrustSet
    • TrustSetFlags
    • TrustSetResponse
  • Xrpl.Models.Utils
    • EmptyClass
    • Flags
  • Xrpl.Sugar
    • AutofillSugar
    • AutofillSugar.AddressNTag
    • BalancesSugar
    • GetFeeXrpSugar
    • GetLedgerSugar
    • SubmitSugar
  • Xrpl.Utils
    • BigIntegerExtensions
    • Derive
    • GetBalanceChanges
    • ParseNFTID
    • Quality
    • SignPaymentChannelClaim
    • StringConversion
    • TimeConversion
    • VerifyPaymentChannelClaim
    • XrpConversion
  • Xrpl.Utils.Hashes
    • Hashes
    • HashLedger
    • LedgerSpaces
    • rHashPrefix
    • Sha512Half
  • Xrpl.Utils.Hashes.ShaMap
    • InnerNode
    • LeafNode
    • Node
    • SHAMap
  • Xrpl.Wallet
    • EasyTimer
    • SignatureResult
    • Signer
    • WalletSugar
    • WalletSugar.FaucetAccount
    • WalletSugar.FaucetNetwork
    • WalletSugar.FaucetWallet
    • WalletSugar.Funded
    • XrplWallet

Class StObject

Class for Serializing/Deserializing objects

Inheritance
System.Object
StObject
Implements
ISerializedType
Namespace: Xrpl.BinaryCodec.Types
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class StObject : object, ISerializedType

Constructors

| Improve this Doc View Source

StObject()

Construct a STObject from a JSON object

Declaration
public StObject()

Fields

| Improve this Doc View Source

Fields

Declaration
protected SortedDictionary<Field, ISerializedType> Fields
Field Value
Type Description
SortedDictionary<Field, ISerializedType>

Properties

| Improve this Doc View Source

Item[AccountIdField]

add AccountIdField field to this object

Declaration
public AccountId this[AccountIdField f] { get; set; }
Parameters
Type Name Description
AccountIdField f

AccountIdFieldfield

Property Value
Type Description
AccountId
| Improve this Doc View Source

Item[AmountField]

add AmountField field to this object

Declaration
public Amount this[AmountField f] { get; set; }
Parameters
Type Name Description
AmountField f

AmountFieldfield

Property Value
Type Description
Amount
| Improve this Doc View Source

Item[BlobField]

add BlobField field to this object

Declaration
public Blob this[BlobField f] { get; set; }
Parameters
Type Name Description
BlobField f

BlobFieldfield

Property Value
Type Description
Blob
| Improve this Doc View Source

Item[EngineResultField]

add EngineResultField field to this object

Declaration
public EngineResult this[EngineResultField f] { get; set; }
Parameters
Type Name Description
EngineResultField f

EngineResultFieldfield

Property Value
Type Description
EngineResult
| Improve this Doc View Source

Item[Hash128Field]

add Hash128Field field to this object

Declaration
public Hash128 this[Hash128Field f] { get; set; }
Parameters
Type Name Description
Hash128Field f

Hash128Fieldfield

Property Value
Type Description
Hash128
| Improve this Doc View Source

Item[Hash160Field]

add Hash160Field field to this object

Declaration
public Hash160 this[Hash160Field f] { get; set; }
Parameters
Type Name Description
Hash160Field f

Hash160Fieldfield

Property Value
Type Description
Hash160
| Improve this Doc View Source

Item[Hash256Field]

add Hash256Field field to this object

Declaration
public Hash256 this[Hash256Field f] { get; set; }
Parameters
Type Name Description
Hash256Field f

Hash256Fieldfield

Property Value
Type Description
Hash256
| Improve this Doc View Source

Item[LedgerEntryTypeField]

add LedgerEntryTypeField field to this object

Declaration
public LedgerEntryType this[LedgerEntryTypeField f] { get; set; }
Parameters
Type Name Description
LedgerEntryTypeField f

LedgerEntryTypeFieldfield

Property Value
Type Description
LedgerEntryType
| Improve this Doc View Source

Item[PathSetField]

add PathSetField field to this object

Declaration
public PathSet this[PathSetField f] { get; set; }
Parameters
Type Name Description
PathSetField f

PathSetFieldfield

Property Value
Type Description
PathSet
| Improve this Doc View Source

Item[StArrayField]

add StArrayField field to this object

Declaration
public StArray this[StArrayField f] { get; set; }
Parameters
Type Name Description
StArrayField f

StArrayFieldfield

Property Value
Type Description
StArray
| Improve this Doc View Source

Item[StObjectField]

add StObjectField field to this object

Declaration
public StObject this[StObjectField f] { get; set; }
Parameters
Type Name Description
StObjectField f

StObjectFieldfield

Property Value
Type Description
StObject
| Improve this Doc View Source

Item[TransactionTypeField]

add TransactionTypeField field to this object

Declaration
public TransactionType this[TransactionTypeField f] { get; set; }
Parameters
Type Name Description
TransactionTypeField f

TransactionTypeFieldfield

Property Value
Type Description
TransactionType
| Improve this Doc View Source

Item[Uint16Field]

add Uint16Field field to this object

Declaration
public Uint16 this[Uint16Field f] { get; set; }
Parameters
Type Name Description
Uint16Field f

Uint16Fieldfield

Property Value
Type Description
Uint16
| Improve this Doc View Source

Item[Uint32Field]

add Uint32Field field to this object

Declaration
public Uint32 this[Uint32Field f] { get; set; }
Parameters
Type Name Description
Uint32Field f

Uint32Fieldfield

Property Value
Type Description
Uint32
| Improve this Doc View Source

Item[Uint64Field]

add Uint64Field field to this object

Declaration
public Uint64 this[Uint64Field f] { get; set; }
Parameters
Type Name Description
Uint64Field f

Uint64Fieldfield

Property Value
Type Description
Uint64
| Improve this Doc View Source

Item[Uint8Field]

add Uint8Field field to this object

Declaration
public Uint8 this[Uint8Field f] { get; set; }
Parameters
Type Name Description
Uint8Field f

Uint8Fieldfield

Property Value
Type Description
Uint8
| Improve this Doc View Source

Item[Vector256Field]

add Vector256Field field to this object

Declaration
public Vector256 this[Vector256Field f] { get; set; }
Parameters
Type Name Description
Vector256Field f

Vector256Fieldfield

Property Value
Type Description
Vector256

Methods

| Improve this Doc View Source

FromHex(String)

Construct a STObject from a hex string

Declaration
public static StObject FromHex(string s)
Parameters
Type Name Description
System.String s

hex string

Returns
Type Description
StObject
| Improve this Doc View Source

FromJson(JToken)

Construct a STObject from a JSON object

Declaration
public static StObject FromJson(JToken token)
Parameters
Type Name Description
JToken token

An object to include

Returns
Type Description
StObject
| Improve this Doc View Source

FromJson(JToken, Boolean)

Construct a STObject from a JSON object

Declaration
public static StObject FromJson(JToken token, bool signingOnly)
Parameters
Type Name Description
JToken token

An object to include

System.Boolean signingOnly
Returns
Type Description
StObject
Exceptions
Type Condition
InvalidJsonException

unknown field or token is not an object

| Improve this Doc View Source

FromParser(BinaryParser, Nullable<Int32>)

Construct a STObject from a BinaryParser

Declaration
public static StObject FromParser(BinaryParser parser, int? hint = null)
Parameters
Type Name Description
BinaryParser parser

BinaryParser to read STObject from

System.Nullable<System.Int32> hint
Returns
Type Description
StObject
| Improve this Doc View Source

Has(Field)

check that object contains field

Declaration
public bool Has(Field field)
Parameters
Type Name Description
Field field

field

Returns
Type Description
System.Boolean
| Improve this Doc View Source

SetFlag(UInt32)

Set flag to this object

Declaration
public StObject SetFlag(uint flags)
Parameters
Type Name Description
System.UInt32 flags

flag

Returns
Type Description
StObject
| Improve this Doc View Source

SigningData()

Signing this data

Declaration
public byte[] SigningData()
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

ToBytes()

this object to bytes array

Declaration
public byte[] ToBytes()
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

ToBytes(IBytesSink)

to bytes Sink

Declaration
public void ToBytes(IBytesSink to)
Parameters
Type Name Description
IBytesSink to
| Improve this Doc View Source

ToBytes(IBytesSink, Func<Field, Boolean>)

to bytes Sink

Declaration
public void ToBytes(IBytesSink to, Func<Field, bool> p)
Parameters
Type Name Description
IBytesSink to

bytes Sink container

Func<Field, System.Boolean> p

field selector

| Improve this Doc View Source

ToJson()

Get the JSON representation of this type

Declaration
public JToken ToJson()
Returns
Type Description
JToken
| Improve this Doc View Source

ToJsonObject()

Get the JSON interpretation of this.bytes

Declaration
public JObject ToJsonObject()
Returns
Type Description
JObject

Operators

| Improve this Doc View Source

Implicit(JToken to StObject)

Construct a STObject from a JSON object

Declaration
public static implicit operator StObject(JToken token)
Parameters
Type Name Description
JToken token

An object to include

Returns
Type Description
StObject

Implements

ISerializedType
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX