package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev

# README

xdr

The xdr package contains encoding/decoding of Stellar XDR types.

Code Generate

Most of the code this package is generated.

To download new XDR for code generation:

docker run --platform linux/amd64 -it --rm -v $PWD:/wd -w /wd ruby /bin/bash -c 'bundle install && bundle exec rake xdr:download'

To regenerate the code from the local XDR:

docker run --platform linux/amd64 -it --rm -v $PWD:/wd -w /wd ruby /bin/bash -c 'bundle install && bundle exec rake xdr:generate' && go fmt ./xdr

To download XDR for a different branch of stellar-core, modify Rakefile in the root.

# Functions

AddressToAccountId returns an AccountId for a given address string.
AddressToMuxedAccount returns an MuxedAccount for a given address string or SEP23 M-address.
BuildAsset creates a new asset from a given `assetType`, `code`, and `issuer`.
BuildAssets parses a list of assets from a given string.
GetBinaryCompressedLedgerKeyType gets the key type from the result of LedgerKeyUnsafeMarshalBinaryCompress.
GetLedgerKeyFromData obtains a ledger key from LedgerEntryData deprecated: Use `LedgerEntryData.LedgerKey()`.
Marshal writes an xdr element `v` into `w`.
MustNewAssetCodeFromString returns a new allow trust asset, panicking if it can't.
MustNewCreditAsset returns a new general asset, panicking if it can't.
MustNewNativeAsset returns a new native asset, panicking if it can't.
NewAccountEntryExt creates a new AccountEntryExt.
NewAccountEntryExtensionV1Ext creates a new AccountEntryExtensionV1Ext.
NewAccountEntryExtensionV2Ext creates a new AccountEntryExtensionV2Ext.
NewAccountId creates a new AccountId.
NewAccountMergeResult creates a new AccountMergeResult.
NewAllowTrustResult creates a new AllowTrustResult.
NewArchivalProofBody creates a new ArchivalProofBody.
NewAsset creates a new Asset.
NewAssetCode creates a new AssetCode.
NewAssetCodeFromString returns a new credit asset, erroring if it can't.
NewAuthenticatedMessage creates a new AuthenticatedMessage.
NewBeginSponsoringFutureReservesResult creates a new BeginSponsoringFutureReservesResult.
NewBucketEntry creates a new BucketEntry.
NewBucketMetadataExt creates a new BucketMetadataExt.
NewBumpSequenceResult creates a new BumpSequenceResult.
NewChangeTrustAsset creates a new ChangeTrustAsset.
NewChangeTrustResult creates a new ChangeTrustResult.
NewClaimableBalanceEntryExt creates a new ClaimableBalanceEntryExt.
NewClaimableBalanceEntryExtensionV1Ext creates a new ClaimableBalanceEntryExtensionV1Ext.
NewClaimableBalanceId creates a new ClaimableBalanceId.
NewClaimant creates a new Claimant.
NewClaimAtom creates a new ClaimAtom.
NewClaimClaimableBalanceResult creates a new ClaimClaimableBalanceResult.
NewClaimPredicate creates a new ClaimPredicate.
NewClawbackClaimableBalanceResult creates a new ClawbackClaimableBalanceResult.
NewClawbackResult creates a new ClawbackResult.
NewColdArchiveBucketEntry creates a new ColdArchiveBucketEntry.
NewConfigSettingEntry creates a new ConfigSettingEntry.
NewContractCodeEntryExt creates a new ContractCodeEntryExt.
NewContractEventBody creates a new ContractEventBody.
NewContractExecutable creates a new ContractExecutable.
NewContractIdPreimage creates a new ContractIdPreimage.
NewCreateAccountResult creates a new CreateAccountResult.
NewCreateClaimableBalanceResult creates a new CreateClaimableBalanceResult.
NewCreditAsset returns a new general asset, returning an error if it can't.
NewDataEntryExt creates a new DataEntryExt.
NewDecoratedSignature constructs a decorated signature structure directly from the given signature and hint.
NewDecoratedSignatureForPayload creates a decorated signature with a hint that uses the key hint, the last four bytes of signature, and the last four bytes of the input that got signed.
NewEndSponsoringFutureReservesResult creates a new EndSponsoringFutureReservesResult.
NewExtendFootprintTtlResult creates a new ExtendFootprintTtlResult.
NewExtensionPoint creates a new ExtensionPoint.
NewFeeBumpTransactionExt creates a new FeeBumpTransactionExt.
NewFeeBumpTransactionInnerTx creates a new FeeBumpTransactionInnerTx.
NewGeneralizedTransactionSet creates a new GeneralizedTransactionSet.
NewHashIdPreimage creates a new HashIdPreimage.
NewHostFunction creates a new HostFunction.
NewHotArchiveBucketEntry creates a new HotArchiveBucketEntry.
NewInflationResult creates a new InflationResult.
NewInnerTransactionResultExt creates a new InnerTransactionResultExt.
NewInnerTransactionResultResult creates a new InnerTransactionResultResult.
NewInvokeHostFunctionResult creates a new InvokeHostFunctionResult.
NewLedgerCloseMeta creates a new LedgerCloseMeta.
NewLedgerCloseMetaExt creates a new LedgerCloseMetaExt.
NewLedgerEntryChange creates a new LedgerEntryChange.
NewLedgerEntryData creates a new LedgerEntryData.
NewLedgerEntryExt creates a new LedgerEntryExt.
NewLedgerEntryExtensionV1Ext creates a new LedgerEntryExtensionV1Ext.
NewLedgerHeaderExt creates a new LedgerHeaderExt.
NewLedgerHeaderExtensionV1Ext creates a new LedgerHeaderExtensionV1Ext.
NewLedgerHeaderHistoryEntryExt creates a new LedgerHeaderHistoryEntryExt.
NewLedgerKey creates a new LedgerKey.
NewLedgerUpgrade creates a new LedgerUpgrade.
NewLiquidityPoolDepositResult creates a new LiquidityPoolDepositResult.
NewLiquidityPoolEntryBody creates a new LiquidityPoolEntryBody.
NewLiquidityPoolParameters creates a new LiquidityPoolParameters.
NewLiquidityPoolWithdrawResult creates a new LiquidityPoolWithdrawResult.
NewManageBuyOfferResult creates a new ManageBuyOfferResult.
NewManageDataResult creates a new ManageDataResult.
NewManageOfferSuccessResultOffer creates a new ManageOfferSuccessResultOffer.
NewManageSellOfferResult creates a new ManageSellOfferResult.
NewMemo creates a new Memo.
NewMuxedAccount creates a new MuxedAccount.
NewNodeId creates a new NodeId.
NewOfferEntryExt creates a new OfferEntryExt.
NewOperationBody creates a new OperationBody.
NewOperationResult creates a new OperationResult.
NewOperationResultTr creates a new OperationResultTr.
NewPathPaymentStrictReceiveResult creates a new PathPaymentStrictReceiveResult.
NewPathPaymentStrictSendResult creates a new PathPaymentStrictSendResult.
NewPaymentResult creates a new PaymentResult.
NewPeerAddressIp creates a new PeerAddressIp.
NewPersistedScpState creates a new PersistedScpState.
NewPreconditions creates a new Preconditions.
NewPreconditionsWithTimebounds constructs the simplest possible `Preconditions` instance given the (possibly empty) timebounds.
NewPublicKey creates a new PublicKey.
NewRestoreFootprintResult creates a new RestoreFootprintResult.
NewRevokeSponsorshipOp creates a new RevokeSponsorshipOp.
NewRevokeSponsorshipResult creates a new RevokeSponsorshipResult.
NewScAddress creates a new ScAddress.
NewScEnvMetaEntry creates a new ScEnvMetaEntry.
NewScError creates a new ScError.
NewScMetaEntry creates a new ScMetaEntry.
NewScpHistoryEntry creates a new ScpHistoryEntry.
NewScpStatementPledges creates a new ScpStatementPledges.
NewScSpecEntry creates a new ScSpecEntry.
NewScSpecTypeDef creates a new ScSpecTypeDef.
NewScSpecUdtUnionCaseV0 creates a new ScSpecUdtUnionCaseV0.
NewScVal creates a new ScVal.
NewSetOptionsResult creates a new SetOptionsResult.
NewSetTrustLineFlagsResult creates a new SetTrustLineFlagsResult.
NewSignerKey creates a new SignerKey.
NewSorobanAuthorizedFunction creates a new SorobanAuthorizedFunction.
NewSorobanCredentials creates a new SorobanCredentials.
NewSorobanTransactionMetaExt creates a new SorobanTransactionMetaExt.
NewStellarMessage creates a new StellarMessage.
NewStellarValueExt creates a new StellarValueExt.
NewStoredTransactionSet creates a new StoredTransactionSet.
NewSurveyResponseBody creates a new SurveyResponseBody.
NewTransactionEnvelope creates a new TransactionEnvelope.
NewTransactionExt creates a new TransactionExt.
NewTransactionHistoryEntryExt creates a new TransactionHistoryEntryExt.
NewTransactionHistoryResultEntryExt creates a new TransactionHistoryResultEntryExt.
NewTransactionMeta creates a new TransactionMeta.
NewTransactionPhase creates a new TransactionPhase.
NewTransactionResultExt creates a new TransactionResultExt.
NewTransactionResultResult creates a new TransactionResultResult.
NewTransactionSignaturePayloadTaggedTransaction creates a new TransactionSignaturePayloadTaggedTransaction.
NewTransactionV0Ext creates a new TransactionV0Ext.
NewTrustLineAsset creates a new TrustLineAsset.
NewTrustLineEntryExt creates a new TrustLineEntryExt.
NewTrustLineEntryExtensionV2Ext creates a new TrustLineEntryExtensionV2Ext.
NewTrustLineEntryV1Ext creates a new TrustLineEntryV1Ext.
NewTxSetComponent creates a new TxSetComponent.
ReadFrameLength returns a length of a framed XDR object.
SafeUnmarshal decodes the provided reader into the destination and verifies that provided bytes are all consumed by the unmarshaling process.
SafeUnmarshalBase64 first decodes the provided reader from base64 before decoding the xdr into the provided destination.
SafeUnmarshalHex first decodes the provided reader from hex before decoding the xdr into the provided destination.
SortClaimantsByDestination returns a new []Claimant array sorted by destination.
SortSignersByKey returns a new []Signer array sorted by signer key.
Unmarshal reads an xdr element from `r` into `v`.
UnmarshalWithOptions works like Unmarshal but uses decoding options.

# Constants

AuthMsgFlagFlowControlBytesRequested is an XDR Const defines as: const AUTH_MSG_FLAG_FLOW_CONTROL_BYTES_REQUESTED = 200;.
ContractCostCountLimit is an XDR Const defines as: const CONTRACT_COST_COUNT_LIMIT = 1024;.
LiquidityPoolFeeV18 is an XDR Const defines as: const LIQUIDITY_POOL_FEE_V18 = 30;.
MaskAccountFlags is an XDR Const defines as: const MASK_ACCOUNT_FLAGS = 0x7;.
MaskAccountFlagsV17 is an XDR Const defines as: const MASK_ACCOUNT_FLAGS_V17 = 0xF;.
MaskClaimableBalanceFlags is an XDR Const defines as: const MASK_CLAIMABLE_BALANCE_FLAGS = 0x1;.
MaskLedgerHeaderFlags is an XDR Const defines as: const MASK_LEDGER_HEADER_FLAGS = 0x7;.
MaskOfferentryFlags is an XDR Const defines as: const MASK_OFFERENTRY_FLAGS = 1;.
MaskTrustlineFlags is an XDR Const defines as: const MASK_TRUSTLINE_FLAGS = 1;.
MaskTrustlineFlagsV13 is an XDR Const defines as: const MASK_TRUSTLINE_FLAGS_V13 = 3;.
MaskTrustlineFlagsV17 is an XDR Const defines as: const MASK_TRUSTLINE_FLAGS_V17 = 7;.
MaxOpsPerTx is an XDR Const defines as: const MAX_OPS_PER_TX = 100;.
MaxSigners is an XDR Const defines as: const MAX_SIGNERS = 20;.
ScSpecDocLimit is an XDR Const defines as: const SC_SPEC_DOC_LIMIT = 1024;.
ScsymbolLimit is an XDR Const defines as: const SCSYMBOL_LIMIT = 32;.
TxAdvertVectorMaxSize is an XDR Const defines as: const TX_ADVERT_VECTOR_MAX_SIZE = 1000;.
TxDemandVectorMaxSize is an XDR Const defines as: const TX_DEMAND_VECTOR_MAX_SIZE = 1000;.

# Variables

AssetTypeToString maps an xdr.AssetType to its string representation.
CommitHash is the commit hash that was used to generate the xdr in this folder.
LiquidityPoolTypeToString maps an xdr.LiquidityPoolType to its string representation.
StringToAssetType maps an strings to its xdr.AssetType representation.
XdrFilesSHA256 is the SHA256 hashes of source files.

# Structs

AccountEntry is an XDR Struct defines as: struct AccountEntry { AccountID accountID; // master public key for this account int64 balance; // in stroops SequenceNumber seqNum; // last sequence number used for this account uint32 numSubEntries; // number of sub-entries this account has // drives the reserve AccountID* inflationDest; // Account to vote for during inflation uint32 flags; // see AccountFlags string32 homeDomain; // can be used for reverse federation and memo lookup // fields used for signatures // thresholds stores unsigned bytes: [weight of master|low|medium|high] Thresholds thresholds; Signer signers<MAX_SIGNERS>; // possible signers for this account // reserved for future use union switch (int v) { case 0: void; case 1: AccountEntryExtensionV1 v1; } ext; };.
AccountEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: AccountEntryExtensionV1 v1; }.
AccountEntryExtensionV1 is an XDR Struct defines as: struct AccountEntryExtensionV1 { Liabilities liabilities; union switch (int v) { case 0: void; case 2: AccountEntryExtensionV2 v2; } ext; };.
AccountEntryExtensionV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 2: AccountEntryExtensionV2 v2; }.
AccountEntryExtensionV2 is an XDR Struct defines as: struct AccountEntryExtensionV2 { uint32 numSponsored; uint32 numSponsoring; SponsorshipDescriptor signerSponsoringIDs<MAX_SIGNERS>; union switch (int v) { case 0: void; case 3: AccountEntryExtensionV3 v3; } ext; };.
AccountEntryExtensionV2Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 3: AccountEntryExtensionV3 v3; }.
AccountEntryExtensionV3 is an XDR Struct defines as: struct AccountEntryExtensionV3 { // We can use this to add more fields, or because it is first, to // change AccountEntryExtensionV3 into a union.
AccountMergeResult is an XDR Union defines as: union AccountMergeResult switch (AccountMergeResultCode code) { case ACCOUNT_MERGE_SUCCESS: int64 sourceAccountBalance; // how much got transferred from source account case ACCOUNT_MERGE_MALFORMED: case ACCOUNT_MERGE_NO_ACCOUNT: case ACCOUNT_MERGE_IMMUTABLE_SET: case ACCOUNT_MERGE_HAS_SUB_ENTRIES: case ACCOUNT_MERGE_SEQNUM_TOO_FAR: case ACCOUNT_MERGE_DEST_FULL: case ACCOUNT_MERGE_IS_SPONSOR: void; };.
AllowTrustOp is an XDR Struct defines as: struct AllowTrustOp { AccountID trustor; AssetCode asset; // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG uint32 authorize; };.
AllowTrustResult is an XDR Union defines as: union AllowTrustResult switch (AllowTrustResultCode code) { case ALLOW_TRUST_SUCCESS: void; case ALLOW_TRUST_MALFORMED: case ALLOW_TRUST_NO_TRUST_LINE: case ALLOW_TRUST_TRUST_NOT_REQUIRED: case ALLOW_TRUST_CANT_REVOKE: case ALLOW_TRUST_SELF_NOT_ALLOWED: case ALLOW_TRUST_LOW_RESERVE: void; };.
AlphaNum12 is an XDR Struct defines as: struct AlphaNum12 { AssetCode12 assetCode; AccountID issuer; };.
AlphaNum4 is an XDR Struct defines as: struct AlphaNum4 { AssetCode4 assetCode; AccountID issuer; };.
ArchivalProof is an XDR Struct defines as: struct ArchivalProof { uint32 epoch; // AST Subtree for this proof union switch (ArchivalProofType t) { case EXISTENCE: NonexistenceProofBody nonexistenceProof; case NONEXISTENCE: ExistenceProofBody existenceProof; } body; };.
ArchivalProofBody is an XDR NestedUnion defines as: union switch (ArchivalProofType t) { case EXISTENCE: NonexistenceProofBody nonexistenceProof; case NONEXISTENCE: ExistenceProofBody existenceProof; }.
ArchivalProofNode is an XDR Struct defines as: struct ArchivalProofNode { uint32 index; Hash hash; };.
Asset is an XDR Union defines as: union Asset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void; case ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4; case ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12; // add other asset types here in the future };.
AssetCode is an XDR Union defines as: union AssetCode switch (AssetType type) { case ASSET_TYPE_CREDIT_ALPHANUM4: AssetCode4 assetCode4; case ASSET_TYPE_CREDIT_ALPHANUM12: AssetCode12 assetCode12; // add other asset types here in the future };.
Auth is an XDR Struct defines as: struct Auth { int flags; };.
AuthCert is an XDR Struct defines as: struct AuthCert { Curve25519Public pubkey; uint64 expiration; Signature sig; };.
AuthenticatedMessage is an XDR Union defines as: union AuthenticatedMessage switch (uint32 v) { case 0: struct { uint64 sequence; StellarMessage message; HmacSha256Mac mac; } v0; };.
AuthenticatedMessageV0 is an XDR NestedStruct defines as: struct { uint64 sequence; StellarMessage message; HmacSha256Mac mac; }.
BeginSponsoringFutureReservesOp is an XDR Struct defines as: struct BeginSponsoringFutureReservesOp { AccountID sponsoredID; };.
BeginSponsoringFutureReservesResult is an XDR Union defines as: union BeginSponsoringFutureReservesResult switch ( BeginSponsoringFutureReservesResultCode code) { case BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS: void; case BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED: case BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED: case BEGIN_SPONSORING_FUTURE_RESERVES_RECURSIVE: void; };.
BucketEntry is an XDR Union defines as: union BucketEntry switch (BucketEntryType type) { case LIVEENTRY: case INITENTRY: LedgerEntry liveEntry; case DEADENTRY: LedgerKey deadEntry; case METAENTRY: BucketMetadata metaEntry; };.
BucketMetadata is an XDR Struct defines as: struct BucketMetadata { // Indicates the protocol version used to create / merge this bucket.
BucketMetadataExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: BucketListType bucketListType; }.
BumpSequenceOp is an XDR Struct defines as: struct BumpSequenceOp { SequenceNumber bumpTo; };.
BumpSequenceResult is an XDR Union defines as: union BumpSequenceResult switch (BumpSequenceResultCode code) { case BUMP_SEQUENCE_SUCCESS: void; case BUMP_SEQUENCE_BAD_SEQ: void; };.
BytesDecoder efficiently manages a byte reader and an xdr decoder so that they don't need to be allocated in every decoding call.
ChangeTrustAsset is an XDR Union defines as: union ChangeTrustAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void; case ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4; case ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12; case ASSET_TYPE_POOL_SHARE: LiquidityPoolParameters liquidityPool; // add other asset types here in the future };.
ChangeTrustOp is an XDR Struct defines as: struct ChangeTrustOp { ChangeTrustAsset line; // if limit is set to 0, deletes the trust line int64 limit; };.
ChangeTrustResult is an XDR Union defines as: union ChangeTrustResult switch (ChangeTrustResultCode code) { case CHANGE_TRUST_SUCCESS: void; case CHANGE_TRUST_MALFORMED: case CHANGE_TRUST_NO_ISSUER: case CHANGE_TRUST_INVALID_LIMIT: case CHANGE_TRUST_LOW_RESERVE: case CHANGE_TRUST_SELF_NOT_ALLOWED: case CHANGE_TRUST_TRUST_LINE_MISSING: case CHANGE_TRUST_CANNOT_DELETE: case CHANGE_TRUST_NOT_AUTH_MAINTAIN_LIABILITIES: void; };.
ClaimableBalanceEntry is an XDR Struct defines as: struct ClaimableBalanceEntry { // Unique identifier for this ClaimableBalanceEntry ClaimableBalanceID balanceID; // List of claimants with associated predicate Claimant claimants<10>; // Any asset including native Asset asset; // Amount of asset int64 amount; // reserved for future use union switch (int v) { case 0: void; case 1: ClaimableBalanceEntryExtensionV1 v1; } ext; };.
ClaimableBalanceEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: ClaimableBalanceEntryExtensionV1 v1; }.
ClaimableBalanceEntryExtensionV1 is an XDR Struct defines as: struct ClaimableBalanceEntryExtensionV1 { union switch (int v) { case 0: void; } ext; uint32 flags; // see ClaimableBalanceFlags };.
ClaimableBalanceEntryExtensionV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
ClaimableBalanceId is an XDR Union defines as: union ClaimableBalanceID switch (ClaimableBalanceIDType type) { case CLAIMABLE_BALANCE_ID_TYPE_V0: Hash v0; };.
Claimant is an XDR Union defines as: union Claimant switch (ClaimantType type) { case CLAIMANT_TYPE_V0: struct { AccountID destination; // The account that can use this condition ClaimPredicate predicate; // Claimable if predicate is true } v0; };.
ClaimantV0 is an XDR NestedStruct defines as: struct { AccountID destination; // The account that can use this condition ClaimPredicate predicate; // Claimable if predicate is true }.
ClaimAtom is an XDR Union defines as: union ClaimAtom switch (ClaimAtomType type) { case CLAIM_ATOM_TYPE_V0: ClaimOfferAtomV0 v0; case CLAIM_ATOM_TYPE_ORDER_BOOK: ClaimOfferAtom orderBook; case CLAIM_ATOM_TYPE_LIQUIDITY_POOL: ClaimLiquidityAtom liquidityPool; };.
ClaimClaimableBalanceOp is an XDR Struct defines as: struct ClaimClaimableBalanceOp { ClaimableBalanceID balanceID; };.
ClaimClaimableBalanceResult is an XDR Union defines as: union ClaimClaimableBalanceResult switch (ClaimClaimableBalanceResultCode code) { case CLAIM_CLAIMABLE_BALANCE_SUCCESS: void; case CLAIM_CLAIMABLE_BALANCE_DOES_NOT_EXIST: case CLAIM_CLAIMABLE_BALANCE_CANNOT_CLAIM: case CLAIM_CLAIMABLE_BALANCE_LINE_FULL: case CLAIM_CLAIMABLE_BALANCE_NO_TRUST: case CLAIM_CLAIMABLE_BALANCE_NOT_AUTHORIZED: void; };.
ClaimLiquidityAtom is an XDR Struct defines as: struct ClaimLiquidityAtom { PoolID liquidityPoolID; // amount and asset taken from the pool Asset assetSold; int64 amountSold; // amount and asset sent to the pool Asset assetBought; int64 amountBought; };.
ClaimOfferAtom is an XDR Struct defines as: struct ClaimOfferAtom { // emitted to identify the offer AccountID sellerID; // Account that owns the offer int64 offerID; // amount and asset taken from the owner Asset assetSold; int64 amountSold; // amount and asset sent to the owner Asset assetBought; int64 amountBought; };.
ClaimOfferAtomV0 is an XDR Struct defines as: struct ClaimOfferAtomV0 { // emitted to identify the offer uint256 sellerEd25519; // Account that owns the offer int64 offerID; // amount and asset taken from the owner Asset assetSold; int64 amountSold; // amount and asset sent to the owner Asset assetBought; int64 amountBought; };.
ClaimPredicate is an XDR Union defines as: union ClaimPredicate switch (ClaimPredicateType type) { case CLAIM_PREDICATE_UNCONDITIONAL: void; case CLAIM_PREDICATE_AND: ClaimPredicate andPredicates<2>; case CLAIM_PREDICATE_OR: ClaimPredicate orPredicates<2>; case CLAIM_PREDICATE_NOT: ClaimPredicate* notPredicate; case CLAIM_PREDICATE_BEFORE_ABSOLUTE_TIME: int64 absBefore; // Predicate will be true if closeTime < absBefore case CLAIM_PREDICATE_BEFORE_RELATIVE_TIME: int64 relBefore; // Seconds since closeTime of the ledger in which the // ClaimableBalanceEntry was created };.
ClawbackClaimableBalanceOp is an XDR Struct defines as: struct ClawbackClaimableBalanceOp { ClaimableBalanceID balanceID; };.
ClawbackClaimableBalanceResult is an XDR Union defines as: union ClawbackClaimableBalanceResult switch ( ClawbackClaimableBalanceResultCode code) { case CLAWBACK_CLAIMABLE_BALANCE_SUCCESS: void; case CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST: case CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER: case CLAWBACK_CLAIMABLE_BALANCE_NOT_CLAWBACK_ENABLED: void; };.
ClawbackOp is an XDR Struct defines as: struct ClawbackOp { Asset asset; MuxedAccount from; int64 amount; };.
ClawbackResult is an XDR Union defines as: union ClawbackResult switch (ClawbackResultCode code) { case CLAWBACK_SUCCESS: void; case CLAWBACK_MALFORMED: case CLAWBACK_NOT_CLAWBACK_ENABLED: case CLAWBACK_NO_TRUST: case CLAWBACK_UNDERFUNDED: void; };.
ColdArchiveArchivedLeaf is an XDR Struct defines as: struct ColdArchiveArchivedLeaf { uint32 index; LedgerEntry archivedEntry; };.
ColdArchiveBoundaryLeaf is an XDR Struct defines as: struct ColdArchiveBoundaryLeaf { uint32 index; bool isLowerBound; };.
ColdArchiveBucketEntry is an XDR Union defines as: union ColdArchiveBucketEntry switch (ColdArchiveBucketEntryType type) { case COLD_ARCHIVE_METAENTRY: BucketMetadata metaEntry; case COLD_ARCHIVE_ARCHIVED_LEAF: ColdArchiveArchivedLeaf archivedLeaf; case COLD_ARCHIVE_DELETED_LEAF: ColdArchiveDeletedLeaf deletedLeaf; case COLD_ARCHIVE_BOUNDARY_LEAF: ColdArchiveBoundaryLeaf boundaryLeaf; case COLD_ARCHIVE_HASH: ColdArchiveHashEntry hashEntry; };.
ColdArchiveDeletedLeaf is an XDR Struct defines as: struct ColdArchiveDeletedLeaf { uint32 index; LedgerKey deletedKey; };.
ColdArchiveHashEntry is an XDR Struct defines as: struct ColdArchiveHashEntry { uint32 index; uint32 level; Hash hash; };.
ConfigSettingContractBandwidthV0 is an XDR Struct defines as: struct ConfigSettingContractBandwidthV0 { // Maximum sum of all transaction sizes in the ledger in bytes uint32 ledgerMaxTxsSizeBytes; // Maximum size in bytes for a transaction uint32 txMaxSizeBytes; // Fee for 1 KB of transaction size int64 feeTxSize1KB; };.
ConfigSettingContractComputeV0 is an XDR Struct defines as: struct ConfigSettingContractComputeV0 { // Maximum instructions per ledger int64 ledgerMaxInstructions; // Maximum instructions per transaction int64 txMaxInstructions; // Cost of 10000 instructions int64 feeRatePerInstructionsIncrement; // Memory limit per transaction.
ConfigSettingContractEventsV0 is an XDR Struct defines as: struct ConfigSettingContractEventsV0 { // Maximum size of events that a contract call can emit.
ConfigSettingContractExecutionLanesV0 is an XDR Struct defines as: struct ConfigSettingContractExecutionLanesV0 { // maximum number of Soroban transactions per ledger uint32 ledgerMaxTxCount; };.
ConfigSettingContractHistoricalDataV0 is an XDR Struct defines as: struct ConfigSettingContractHistoricalDataV0 { int64 feeHistorical1KB; // Fee for storing 1KB in archives };.
ConfigSettingContractLedgerCostV0 is an XDR Struct defines as: struct ConfigSettingContractLedgerCostV0 { // Maximum number of ledger entry read operations per ledger uint32 ledgerMaxReadLedgerEntries; // Maximum number of bytes that can be read per ledger uint32 ledgerMaxReadBytes; // Maximum number of ledger entry write operations per ledger uint32 ledgerMaxWriteLedgerEntries; // Maximum number of bytes that can be written per ledger uint32 ledgerMaxWriteBytes; // Maximum number of ledger entry read operations per transaction uint32 txMaxReadLedgerEntries; // Maximum number of bytes that can be read per transaction uint32 txMaxReadBytes; // Maximum number of ledger entry write operations per transaction uint32 txMaxWriteLedgerEntries; // Maximum number of bytes that can be written per transaction uint32 txMaxWriteBytes; int64 feeReadLedgerEntry; // Fee per ledger entry read int64 feeWriteLedgerEntry; // Fee per ledger entry write int64 feeRead1KB; // Fee for reading 1KB // The following parameters determine the write fee per 1KB.
ConfigSettingEntry is an XDR Union defines as: union ConfigSettingEntry switch (ConfigSettingID configSettingID) { case CONFIG_SETTING_CONTRACT_MAX_SIZE_BYTES: uint32 contractMaxSizeBytes; case CONFIG_SETTING_CONTRACT_COMPUTE_V0: ConfigSettingContractComputeV0 contractCompute; case CONFIG_SETTING_CONTRACT_LEDGER_COST_V0: ConfigSettingContractLedgerCostV0 contractLedgerCost; case CONFIG_SETTING_CONTRACT_HISTORICAL_DATA_V0: ConfigSettingContractHistoricalDataV0 contractHistoricalData; case CONFIG_SETTING_CONTRACT_EVENTS_V0: ConfigSettingContractEventsV0 contractEvents; case CONFIG_SETTING_CONTRACT_BANDWIDTH_V0: ConfigSettingContractBandwidthV0 contractBandwidth; case CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS: ContractCostParams contractCostParamsCpuInsns; case CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES: ContractCostParams contractCostParamsMemBytes; case CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES: uint32 contractDataKeySizeBytes; case CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES: uint32 contractDataEntrySizeBytes; case CONFIG_SETTING_STATE_ARCHIVAL: StateArchivalSettings stateArchivalSettings; case CONFIG_SETTING_CONTRACT_EXECUTION_LANES: ConfigSettingContractExecutionLanesV0 contractExecutionLanes; case CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW: uint64 bucketListSizeWindow<>; case CONFIG_SETTING_EVICTION_ITERATOR: EvictionIterator evictionIterator; };.
ConfigUpgradeSet is an XDR Struct defines as: struct ConfigUpgradeSet { ConfigSettingEntry updatedEntry<>; };.
ConfigUpgradeSetKey is an XDR Struct defines as: struct ConfigUpgradeSetKey { Hash contractID; Hash contentHash; };.
ContractCodeCostInputs is an XDR Struct defines as: struct ContractCodeCostInputs { ExtensionPoint ext; uint32 nInstructions; uint32 nFunctions; uint32 nGlobals; uint32 nTableEntries; uint32 nTypes; uint32 nDataSegments; uint32 nElemSegments; uint32 nImports; uint32 nExports; uint32 nDataSegmentBytes; };.
ContractCodeEntry is an XDR Struct defines as: struct ContractCodeEntry { union switch (int v) { case 0: void; case 1: struct { ExtensionPoint ext; ContractCodeCostInputs costInputs; } v1; } ext; Hash hash; opaque code<>; };.
ContractCodeEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: struct { ExtensionPoint ext; ContractCodeCostInputs costInputs; } v1; }.
ContractCodeEntryV1 is an XDR NestedStruct defines as: struct { ExtensionPoint ext; ContractCodeCostInputs costInputs; }.
ContractCostParamEntry is an XDR Struct defines as: struct ContractCostParamEntry { // use `ext` to add more terms (e.g.
ContractDataEntry is an XDR Struct defines as: struct ContractDataEntry { ExtensionPoint ext; SCAddress contract; SCVal key; ContractDataDurability durability; SCVal val; };.
ContractEvent is an XDR Struct defines as: struct ContractEvent { // We can use this to add more fields, or because it // is first, to change ContractEvent into a union.
ContractEventBody is an XDR NestedUnion defines as: union switch (int v) { case 0: struct { SCVal topics<>; SCVal data; } v0; }.
ContractEventV0 is an XDR NestedStruct defines as: struct { SCVal topics<>; SCVal data; }.
ContractExecutable is an XDR Union defines as: union ContractExecutable switch (ContractExecutableType type) { case CONTRACT_EXECUTABLE_WASM: Hash wasm_hash; case CONTRACT_EXECUTABLE_STELLAR_ASSET: void; };.
ContractIdPreimage is an XDR Union defines as: union ContractIDPreimage switch (ContractIDPreimageType type) { case CONTRACT_ID_PREIMAGE_FROM_ADDRESS: struct { SCAddress address; uint256 salt; } fromAddress; case CONTRACT_ID_PREIMAGE_FROM_ASSET: Asset fromAsset; };.
ContractIdPreimageFromAddress is an XDR NestedStruct defines as: struct { SCAddress address; uint256 salt; }.
CreateAccountOp is an XDR Struct defines as: struct CreateAccountOp { AccountID destination; // account to create int64 startingBalance; // amount they end up with };.
CreateAccountResult is an XDR Union defines as: union CreateAccountResult switch (CreateAccountResultCode code) { case CREATE_ACCOUNT_SUCCESS: void; case CREATE_ACCOUNT_MALFORMED: case CREATE_ACCOUNT_UNDERFUNDED: case CREATE_ACCOUNT_LOW_RESERVE: case CREATE_ACCOUNT_ALREADY_EXIST: void; };.
CreateClaimableBalanceOp is an XDR Struct defines as: struct CreateClaimableBalanceOp { Asset asset; int64 amount; Claimant claimants<10>; };.
CreateClaimableBalanceResult is an XDR Union defines as: union CreateClaimableBalanceResult switch ( CreateClaimableBalanceResultCode code) { case CREATE_CLAIMABLE_BALANCE_SUCCESS: ClaimableBalanceID balanceID; case CREATE_CLAIMABLE_BALANCE_MALFORMED: case CREATE_CLAIMABLE_BALANCE_LOW_RESERVE: case CREATE_CLAIMABLE_BALANCE_NO_TRUST: case CREATE_CLAIMABLE_BALANCE_NOT_AUTHORIZED: case CREATE_CLAIMABLE_BALANCE_UNDERFUNDED: void; };.
CreateContractArgs is an XDR Struct defines as: struct CreateContractArgs { ContractIDPreimage contractIDPreimage; ContractExecutable executable; };.
CreateContractArgsV2 is an XDR Struct defines as: struct CreateContractArgsV2 { ContractIDPreimage contractIDPreimage; ContractExecutable executable; // Arguments of the contract's constructor.
CreatePassiveSellOfferOp is an XDR Struct defines as: struct CreatePassiveSellOfferOp { Asset selling; // A Asset buying; // B int64 amount; // amount taker gets Price price; // cost of A in terms of B };.
Curve25519Public is an XDR Struct defines as: struct Curve25519Public { opaque key[32]; };.
Curve25519Secret is an XDR Struct defines as: struct Curve25519Secret { opaque key[32]; };.
DataEntry is an XDR Struct defines as: struct DataEntry { AccountID accountID; // account this data belongs to string64 dataName; DataValue dataValue; // reserved for future use union switch (int v) { case 0: void; } ext; };.
DataEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
DecoratedSignature is an XDR Struct defines as: struct DecoratedSignature { SignatureHint hint; // last 4 bytes of the public key, used as a hint Signature signature; // actual signature };.
DiagnosticEvent is an XDR Struct defines as: struct DiagnosticEvent { bool inSuccessfulContractCall; ContractEvent event; };.
DontHave is an XDR Struct defines as: struct DontHave { MessageType type; uint256 reqHash; };.
EncodingBuffer reuses internal buffers between invocations to minimize allocations.
EndSponsoringFutureReservesResult is an XDR Union defines as: union EndSponsoringFutureReservesResult switch ( EndSponsoringFutureReservesResultCode code) { case END_SPONSORING_FUTURE_RESERVES_SUCCESS: void; case END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED: void; };.
Error is an XDR Struct defines as: struct Error { ErrorCode code; string msg<100>; };.
EvictionIterator is an XDR Struct defines as: struct EvictionIterator { uint32 bucketListLevel; bool isCurrBucket; uint64 bucketFileOffset; };.
ExistenceProofBody is an XDR Struct defines as: struct ExistenceProofBody { LedgerKey keysToProve<>; // Bounds for each key being proved, where bound[n] // corresponds to keysToProve[n] ColdArchiveBucketEntry lowBoundEntries<>; ColdArchiveBucketEntry highBoundEntries<>; // Vector of vectors, where proofLevels[level] // contains all HashNodes that correspond with that level ProofLevel proofLevels<>; };.
ExtendFootprintTtlOp is an XDR Struct defines as: struct ExtendFootprintTTLOp { ExtensionPoint ext; uint32 extendTo; };.
ExtendFootprintTtlResult is an XDR Union defines as: union ExtendFootprintTTLResult switch (ExtendFootprintTTLResultCode code) { case EXTEND_FOOTPRINT_TTL_SUCCESS: void; case EXTEND_FOOTPRINT_TTL_MALFORMED: case EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED: case EXTEND_FOOTPRINT_TTL_INSUFFICIENT_REFUNDABLE_FEE: void; };.
ExtensionPoint is an XDR Union defines as: union ExtensionPoint switch (int v) { case 0: void; };.
FeeBumpTransaction is an XDR Struct defines as: struct FeeBumpTransaction { MuxedAccount feeSource; int64 fee; union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; } innerTx; union switch (int v) { case 0: void; } ext; };.
FeeBumpTransactionEnvelope is an XDR Struct defines as: struct FeeBumpTransactionEnvelope { FeeBumpTransaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; };.
FeeBumpTransactionExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
FeeBumpTransactionInnerTx is an XDR NestedUnion defines as: union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; }.
FloodAdvert is an XDR Struct defines as: struct FloodAdvert { TxAdvertVector txHashes; };.
FloodDemand is an XDR Struct defines as: struct FloodDemand { TxDemandVector txHashes; };.
GeneralizedTransactionSet is an XDR Union defines as: union GeneralizedTransactionSet switch (int v) { // We consider the legacy TransactionSet to be v0.
HashIdPreimage is an XDR Union defines as: union HashIDPreimage switch (EnvelopeType type) { case ENVELOPE_TYPE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; } operationID; case ENVELOPE_TYPE_POOL_REVOKE_OP_ID: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; PoolID liquidityPoolID; Asset asset; } revokeID; case ENVELOPE_TYPE_CONTRACT_ID: struct { Hash networkID; ContractIDPreimage contractIDPreimage; } contractID; case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION: struct { Hash networkID; int64 nonce; uint32 signatureExpirationLedger; SorobanAuthorizedInvocation invocation; } sorobanAuthorization; };.
HashIdPreimageContractId is an XDR NestedStruct defines as: struct { Hash networkID; ContractIDPreimage contractIDPreimage; }.
HashIdPreimageOperationId is an XDR NestedStruct defines as: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; }.
HashIdPreimageRevokeId is an XDR NestedStruct defines as: struct { AccountID sourceAccount; SequenceNumber seqNum; uint32 opNum; PoolID liquidityPoolID; Asset asset; }.
HashIdPreimageSorobanAuthorization is an XDR NestedStruct defines as: struct { Hash networkID; int64 nonce; uint32 signatureExpirationLedger; SorobanAuthorizedInvocation invocation; }.
Hello is an XDR Struct defines as: struct Hello { uint32 ledgerVersion; uint32 overlayVersion; uint32 overlayMinVersion; Hash networkID; string versionStr<100>; int listeningPort; NodeID peerID; AuthCert cert; uint256 nonce; };.
HmacSha256Key is an XDR Struct defines as: struct HmacSha256Key { opaque key[32]; };.
HmacSha256Mac is an XDR Struct defines as: struct HmacSha256Mac { opaque mac[32]; };.
HostFunction is an XDR Union defines as: union HostFunction switch (HostFunctionType type) { case HOST_FUNCTION_TYPE_INVOKE_CONTRACT: InvokeContractArgs invokeContract; case HOST_FUNCTION_TYPE_CREATE_CONTRACT: CreateContractArgs createContract; case HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM: opaque wasm<>; case HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2: CreateContractArgsV2 createContractV2; };.
HotArchiveBucketEntry is an XDR Union defines as: union HotArchiveBucketEntry switch (HotArchiveBucketEntryType type) { case HOT_ARCHIVE_ARCHIVED: LedgerEntry archivedEntry; case HOT_ARCHIVE_LIVE: case HOT_ARCHIVE_DELETED: LedgerKey key; case HOT_ARCHIVE_METAENTRY: BucketMetadata metaEntry; };.
InflationPayout is an XDR Struct defines as: struct InflationPayout // or use PaymentResultAtom to limit types? { AccountID destination; int64 amount; };.
InflationResult is an XDR Union defines as: union InflationResult switch (InflationResultCode code) { case INFLATION_SUCCESS: InflationPayout payouts<>; case INFLATION_NOT_TIME: void; };.
InnerTransactionResult is an XDR Struct defines as: struct InnerTransactionResult { // Always 0.
InnerTransactionResultExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
InnerTransactionResultPair is an XDR Struct defines as: struct InnerTransactionResultPair { Hash transactionHash; // hash of the inner transaction InnerTransactionResult result; // result for the inner transaction };.
InnerTransactionResultResult is an XDR NestedUnion defines as: union switch (TransactionResultCode code) { // txFEE_BUMP_INNER_SUCCESS is not included case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // txFEE_BUMP_INNER_FAILED is not included case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; }.
Int128Parts is an XDR Struct defines as: struct Int128Parts { int64 hi; uint64 lo; };.
Int256Parts is an XDR Struct defines as: struct Int256Parts { int64 hi_hi; uint64 hi_lo; uint64 lo_hi; uint64 lo_lo; };.
InvokeContractArgs is an XDR Struct defines as: struct InvokeContractArgs { SCAddress contractAddress; SCSymbol functionName; SCVal args<>; };.
InvokeHostFunctionOp is an XDR Struct defines as: struct InvokeHostFunctionOp { // Host function to invoke.
InvokeHostFunctionResult is an XDR Union defines as: union InvokeHostFunctionResult switch (InvokeHostFunctionResultCode code) { case INVOKE_HOST_FUNCTION_SUCCESS: Hash success; // sha256(InvokeHostFunctionSuccessPreImage) case INVOKE_HOST_FUNCTION_MALFORMED: case INVOKE_HOST_FUNCTION_TRAPPED: case INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED: case INVOKE_HOST_FUNCTION_ENTRY_ARCHIVED: case INVOKE_HOST_FUNCTION_INSUFFICIENT_REFUNDABLE_FEE: void; };.
InvokeHostFunctionSuccessPreImage is an XDR Struct defines as: struct InvokeHostFunctionSuccessPreImage { SCVal returnValue; ContractEvent events<>; };.
LedgerBounds is an XDR Struct defines as: struct LedgerBounds { uint32 minLedger; uint32 maxLedger; // 0 here means no maxLedger };.
LedgerCloseMeta is an XDR Union defines as: union LedgerCloseMeta switch (int v) { case 0: LedgerCloseMetaV0 v0; case 1: LedgerCloseMetaV1 v1; };.
LedgerCloseMetaBatch is an XDR Struct defines as: struct LedgerCloseMetaBatch { // starting ledger sequence number in the batch uint32 startSequence; // ending ledger sequence number in the batch uint32 endSequence; // Ledger close meta for each ledger within the batch LedgerCloseMeta ledgerCloseMetas<>; };.
LedgerCloseMetaExt is an XDR Union defines as: union LedgerCloseMetaExt switch (int v) { case 0: void; case 1: LedgerCloseMetaExtV1 v1; };.
LedgerCloseMetaExtV1 is an XDR Struct defines as: struct LedgerCloseMetaExtV1 { ExtensionPoint ext; int64 sorobanFeeWrite1KB; };.
LedgerCloseMetaV0 is an XDR Struct defines as: struct LedgerCloseMetaV0 { LedgerHeaderHistoryEntry ledgerHeader; // NB: txSet is sorted in "Hash order" TransactionSet txSet; // NB: transactions are sorted in apply order here // fees for all transactions are processed first // followed by applying transactions TransactionResultMeta txProcessing<>; // upgrades are applied last UpgradeEntryMeta upgradesProcessing<>; // other misc information attached to the ledger close SCPHistoryEntry scpInfo<>; };.
LedgerCloseMetaV1 is an XDR Struct defines as: struct LedgerCloseMetaV1 { LedgerCloseMetaExt ext; LedgerHeaderHistoryEntry ledgerHeader; GeneralizedTransactionSet txSet; // NB: transactions are sorted in apply order here // fees for all transactions are processed first // followed by applying transactions TransactionResultMeta txProcessing<>; // upgrades are applied last UpgradeEntryMeta upgradesProcessing<>; // other misc information attached to the ledger close SCPHistoryEntry scpInfo<>; // Size in bytes of BucketList, to support downstream // systems calculating storage fees correctly.
LedgerCloseValueSignature is an XDR Struct defines as: struct LedgerCloseValueSignature { NodeID nodeID; // which node introduced the value Signature signature; // nodeID's signature };.
LedgerEntry is an XDR Struct defines as: struct LedgerEntry { uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed union switch (LedgerEntryType type) { case ACCOUNT: AccountEntry account; case TRUSTLINE: TrustLineEntry trustLine; case OFFER: OfferEntry offer; case DATA: DataEntry data; case CLAIMABLE_BALANCE: ClaimableBalanceEntry claimableBalance; case LIQUIDITY_POOL: LiquidityPoolEntry liquidityPool; case CONTRACT_DATA: ContractDataEntry contractData; case CONTRACT_CODE: ContractCodeEntry contractCode; case CONFIG_SETTING: ConfigSettingEntry configSetting; case TTL: TTLEntry ttl; } data; // reserved for future use union switch (int v) { case 0: void; case 1: LedgerEntryExtensionV1 v1; } ext; };.
LedgerEntryChange is an XDR Union defines as: union LedgerEntryChange switch (LedgerEntryChangeType type) { case LEDGER_ENTRY_CREATED: LedgerEntry created; case LEDGER_ENTRY_UPDATED: LedgerEntry updated; case LEDGER_ENTRY_REMOVED: LedgerKey removed; case LEDGER_ENTRY_STATE: LedgerEntry state; };.
LedgerEntryData is an XDR NestedUnion defines as: union switch (LedgerEntryType type) { case ACCOUNT: AccountEntry account; case TRUSTLINE: TrustLineEntry trustLine; case OFFER: OfferEntry offer; case DATA: DataEntry data; case CLAIMABLE_BALANCE: ClaimableBalanceEntry claimableBalance; case LIQUIDITY_POOL: LiquidityPoolEntry liquidityPool; case CONTRACT_DATA: ContractDataEntry contractData; case CONTRACT_CODE: ContractCodeEntry contractCode; case CONFIG_SETTING: ConfigSettingEntry configSetting; case TTL: TTLEntry ttl; }.
LedgerEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: LedgerEntryExtensionV1 v1; }.
LedgerEntryExtensionV1 is an XDR Struct defines as: struct LedgerEntryExtensionV1 { SponsorshipDescriptor sponsoringID; union switch (int v) { case 0: void; } ext; };.
LedgerEntryExtensionV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
LedgerFootprint is an XDR Struct defines as: struct LedgerFootprint { LedgerKey readOnly<>; LedgerKey readWrite<>; };.
LedgerHeader is an XDR Struct defines as: struct LedgerHeader { uint32 ledgerVersion; // the protocol version of the ledger Hash previousLedgerHash; // hash of the previous ledger header StellarValue scpValue; // what consensus agreed to Hash txSetResultHash; // the TransactionResultSet that led to this ledger Hash bucketListHash; // hash of the ledger state uint32 ledgerSeq; // sequence number of this ledger int64 totalCoins; // total number of stroops in existence.
LedgerHeaderExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: LedgerHeaderExtensionV1 v1; }.
LedgerHeaderExtensionV1 is an XDR Struct defines as: struct LedgerHeaderExtensionV1 { uint32 flags; // LedgerHeaderFlags union switch (int v) { case 0: void; } ext; };.
LedgerHeaderExtensionV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
LedgerHeaderHistoryEntry is an XDR Struct defines as: struct LedgerHeaderHistoryEntry { Hash hash; LedgerHeader header; // reserved for future use union switch (int v) { case 0: void; } ext; };.
LedgerHeaderHistoryEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
LedgerKey is an XDR Union defines as: union LedgerKey switch (LedgerEntryType type) { case ACCOUNT: struct { AccountID accountID; } account; case TRUSTLINE: struct { AccountID accountID; TrustLineAsset asset; } trustLine; case OFFER: struct { AccountID sellerID; int64 offerID; } offer; case DATA: struct { AccountID accountID; string64 dataName; } data; case CLAIMABLE_BALANCE: struct { ClaimableBalanceID balanceID; } claimableBalance; case LIQUIDITY_POOL: struct { PoolID liquidityPoolID; } liquidityPool; case CONTRACT_DATA: struct { SCAddress contract; SCVal key; ContractDataDurability durability; } contractData; case CONTRACT_CODE: struct { Hash hash; } contractCode; case CONFIG_SETTING: struct { ConfigSettingID configSettingID; } configSetting; case TTL: struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; } ttl; };.
LedgerKeyAccount is an XDR NestedStruct defines as: struct { AccountID accountID; }.
LedgerKeyClaimableBalance is an XDR NestedStruct defines as: struct { ClaimableBalanceID balanceID; }.
LedgerKeyConfigSetting is an XDR NestedStruct defines as: struct { ConfigSettingID configSettingID; }.
LedgerKeyContractCode is an XDR NestedStruct defines as: struct { Hash hash; }.
LedgerKeyContractData is an XDR NestedStruct defines as: struct { SCAddress contract; SCVal key; ContractDataDurability durability; }.
LedgerKeyData is an XDR NestedStruct defines as: struct { AccountID accountID; string64 dataName; }.
LedgerKeyLiquidityPool is an XDR NestedStruct defines as: struct { PoolID liquidityPoolID; }.
LedgerKeyOffer is an XDR NestedStruct defines as: struct { AccountID sellerID; int64 offerID; }.
LedgerKeyTrustLine is an XDR NestedStruct defines as: struct { AccountID accountID; TrustLineAsset asset; }.
LedgerKeyTtl is an XDR NestedStruct defines as: struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; }.
LedgerScpMessages is an XDR Struct defines as: struct LedgerSCPMessages { uint32 ledgerSeq; SCPEnvelope messages<>; };.
LedgerUpgrade is an XDR Union defines as: union LedgerUpgrade switch (LedgerUpgradeType type) { case LEDGER_UPGRADE_VERSION: uint32 newLedgerVersion; // update ledgerVersion case LEDGER_UPGRADE_BASE_FEE: uint32 newBaseFee; // update baseFee case LEDGER_UPGRADE_MAX_TX_SET_SIZE: uint32 newMaxTxSetSize; // update maxTxSetSize case LEDGER_UPGRADE_BASE_RESERVE: uint32 newBaseReserve; // update baseReserve case LEDGER_UPGRADE_FLAGS: uint32 newFlags; // update flags case LEDGER_UPGRADE_CONFIG: // Update arbitrary `ConfigSetting` entries identified by the key.
Liabilities is an XDR Struct defines as: struct Liabilities { int64 buying; int64 selling; };.
LiquidityPoolConstantProductParameters is an XDR Struct defines as: struct LiquidityPoolConstantProductParameters { Asset assetA; // assetA < assetB Asset assetB; int32 fee; // Fee is in basis points, so the actual rate is (fee/100)% };.
LiquidityPoolDepositOp is an XDR Struct defines as: struct LiquidityPoolDepositOp { PoolID liquidityPoolID; int64 maxAmountA; // maximum amount of first asset to deposit int64 maxAmountB; // maximum amount of second asset to deposit Price minPrice; // minimum depositA/depositB Price maxPrice; // maximum depositA/depositB };.
LiquidityPoolDepositResult is an XDR Union defines as: union LiquidityPoolDepositResult switch (LiquidityPoolDepositResultCode code) { case LIQUIDITY_POOL_DEPOSIT_SUCCESS: void; case LIQUIDITY_POOL_DEPOSIT_MALFORMED: case LIQUIDITY_POOL_DEPOSIT_NO_TRUST: case LIQUIDITY_POOL_DEPOSIT_NOT_AUTHORIZED: case LIQUIDITY_POOL_DEPOSIT_UNDERFUNDED: case LIQUIDITY_POOL_DEPOSIT_LINE_FULL: case LIQUIDITY_POOL_DEPOSIT_BAD_PRICE: case LIQUIDITY_POOL_DEPOSIT_POOL_FULL: void; };.
LiquidityPoolEntry is an XDR Struct defines as: struct LiquidityPoolEntry { PoolID liquidityPoolID; union switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: struct { LiquidityPoolConstantProductParameters params; int64 reserveA; // amount of A in the pool int64 reserveB; // amount of B in the pool int64 totalPoolShares; // total number of pool shares issued int64 poolSharesTrustLineCount; // number of trust lines for the // associated pool shares } constantProduct; } body; };.
LiquidityPoolEntryBody is an XDR NestedUnion defines as: union switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: struct { LiquidityPoolConstantProductParameters params; int64 reserveA; // amount of A in the pool int64 reserveB; // amount of B in the pool int64 totalPoolShares; // total number of pool shares issued int64 poolSharesTrustLineCount; // number of trust lines for the // associated pool shares } constantProduct; }.
LiquidityPoolEntryConstantProduct is an XDR NestedStruct defines as: struct { LiquidityPoolConstantProductParameters params; int64 reserveA; // amount of A in the pool int64 reserveB; // amount of B in the pool int64 totalPoolShares; // total number of pool shares issued int64 poolSharesTrustLineCount; // number of trust lines for the // associated pool shares }.
LiquidityPoolParameters is an XDR Union defines as: union LiquidityPoolParameters switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: LiquidityPoolConstantProductParameters constantProduct; };.
LiquidityPoolWithdrawOp is an XDR Struct defines as: struct LiquidityPoolWithdrawOp { PoolID liquidityPoolID; int64 amount; // amount of pool shares to withdraw int64 minAmountA; // minimum amount of first asset to withdraw int64 minAmountB; // minimum amount of second asset to withdraw };.
LiquidityPoolWithdrawResult is an XDR Union defines as: union LiquidityPoolWithdrawResult switch (LiquidityPoolWithdrawResultCode code) { case LIQUIDITY_POOL_WITHDRAW_SUCCESS: void; case LIQUIDITY_POOL_WITHDRAW_MALFORMED: case LIQUIDITY_POOL_WITHDRAW_NO_TRUST: case LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED: case LIQUIDITY_POOL_WITHDRAW_LINE_FULL: case LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM: void; };.
ManageBuyOfferOp is an XDR Struct defines as: struct ManageBuyOfferOp { Asset selling; Asset buying; int64 buyAmount; // amount being bought.
ManageBuyOfferResult is an XDR Union defines as: union ManageBuyOfferResult switch (ManageBuyOfferResultCode code) { case MANAGE_BUY_OFFER_SUCCESS: ManageOfferSuccessResult success; case MANAGE_BUY_OFFER_MALFORMED: case MANAGE_BUY_OFFER_SELL_NO_TRUST: case MANAGE_BUY_OFFER_BUY_NO_TRUST: case MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED: case MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED: case MANAGE_BUY_OFFER_LINE_FULL: case MANAGE_BUY_OFFER_UNDERFUNDED: case MANAGE_BUY_OFFER_CROSS_SELF: case MANAGE_BUY_OFFER_SELL_NO_ISSUER: case MANAGE_BUY_OFFER_BUY_NO_ISSUER: case MANAGE_BUY_OFFER_NOT_FOUND: case MANAGE_BUY_OFFER_LOW_RESERVE: void; };.
ManageDataOp is an XDR Struct defines as: struct ManageDataOp { string64 dataName; DataValue* dataValue; // set to null to clear };.
ManageDataResult is an XDR Union defines as: union ManageDataResult switch (ManageDataResultCode code) { case MANAGE_DATA_SUCCESS: void; case MANAGE_DATA_NOT_SUPPORTED_YET: case MANAGE_DATA_NAME_NOT_FOUND: case MANAGE_DATA_LOW_RESERVE: case MANAGE_DATA_INVALID_NAME: void; };.
ManageOfferSuccessResult is an XDR Struct defines as: struct ManageOfferSuccessResult { // offers that got claimed while creating this offer ClaimAtom offersClaimed<>; union switch (ManageOfferEffect effect) { case MANAGE_OFFER_CREATED: case MANAGE_OFFER_UPDATED: OfferEntry offer; case MANAGE_OFFER_DELETED: void; } offer; };.
ManageOfferSuccessResultOffer is an XDR NestedUnion defines as: union switch (ManageOfferEffect effect) { case MANAGE_OFFER_CREATED: case MANAGE_OFFER_UPDATED: OfferEntry offer; case MANAGE_OFFER_DELETED: void; }.
ManageSellOfferOp is an XDR Struct defines as: struct ManageSellOfferOp { Asset selling; Asset buying; int64 amount; // amount being sold.
ManageSellOfferResult is an XDR Union defines as: union ManageSellOfferResult switch (ManageSellOfferResultCode code) { case MANAGE_SELL_OFFER_SUCCESS: ManageOfferSuccessResult success; case MANAGE_SELL_OFFER_MALFORMED: case MANAGE_SELL_OFFER_SELL_NO_TRUST: case MANAGE_SELL_OFFER_BUY_NO_TRUST: case MANAGE_SELL_OFFER_SELL_NOT_AUTHORIZED: case MANAGE_SELL_OFFER_BUY_NOT_AUTHORIZED: case MANAGE_SELL_OFFER_LINE_FULL: case MANAGE_SELL_OFFER_UNDERFUNDED: case MANAGE_SELL_OFFER_CROSS_SELF: case MANAGE_SELL_OFFER_SELL_NO_ISSUER: case MANAGE_SELL_OFFER_BUY_NO_ISSUER: case MANAGE_SELL_OFFER_NOT_FOUND: case MANAGE_SELL_OFFER_LOW_RESERVE: void; };.
Memo is an XDR Union defines as: union Memo switch (MemoType type) { case MEMO_NONE: void; case MEMO_TEXT: string text<28>; case MEMO_ID: uint64 id; case MEMO_HASH: Hash hash; // the hash of what to pull from the content server case MEMO_RETURN: Hash retHash; // the hash of the tx you are rejecting };.
MuxedAccount is an XDR Union defines as: union MuxedAccount switch (CryptoKeyType type) { case KEY_TYPE_ED25519: uint256 ed25519; case KEY_TYPE_MUXED_ED25519: struct { uint64 id; uint256 ed25519; } med25519; };.
MuxedAccountMed25519 is an XDR NestedStruct defines as: struct { uint64 id; uint256 ed25519; }.
NonexistenceProofBody is an XDR Struct defines as: struct NonexistenceProofBody { ColdArchiveBucketEntry entriesToProve<>; // Vector of vectors, where proofLevels[level] // contains all HashNodes that correspond with that level ProofLevel proofLevels<>; };.
OfferEntry is an XDR Struct defines as: struct OfferEntry { AccountID sellerID; int64 offerID; Asset selling; // A Asset buying; // B int64 amount; // amount of A /* price for this offer: price of A in terms of B price=AmountB/AmountA=priceNumerator/priceDenominator price is after fees */ Price price; uint32 flags; // see OfferEntryFlags // reserved for future use union switch (int v) { case 0: void; } ext; };.
OfferEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
Operation is an XDR Struct defines as: struct Operation { // sourceAccount is the account used to run the operation // if not set, the runtime defaults to "sourceAccount" specified at // the transaction level MuxedAccount* sourceAccount; union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; } body; };.
OperationBody is an XDR NestedUnion defines as: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveOp pathPaymentStrictReceiveOp; case MANAGE_SELL_OFFER: ManageSellOfferOp manageSellOfferOp; case CREATE_PASSIVE_SELL_OFFER: CreatePassiveSellOfferOp createPassiveSellOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; case ALLOW_TRUST: AllowTrustOp allowTrustOp; case ACCOUNT_MERGE: MuxedAccount destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendOp pathPaymentStrictSendOp; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceOp createClaimableBalanceOp; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceOp claimClaimableBalanceOp; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp; case END_SPONSORING_FUTURE_RESERVES: void; case REVOKE_SPONSORSHIP: RevokeSponsorshipOp revokeSponsorshipOp; case CLAWBACK: ClawbackOp clawbackOp; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceOp clawbackClaimableBalanceOp; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsOp setTrustLineFlagsOp; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositOp liquidityPoolDepositOp; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawOp liquidityPoolWithdrawOp; case INVOKE_HOST_FUNCTION: InvokeHostFunctionOp invokeHostFunctionOp; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLOp extendFootprintTTLOp; case RESTORE_FOOTPRINT: RestoreFootprintOp restoreFootprintOp; }.
OperationMeta is an XDR Struct defines as: struct OperationMeta { LedgerEntryChanges changes; };.
OperationResult is an XDR Union defines as: union OperationResult switch (OperationResultCode code) { case opINNER: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; } tr; case opBAD_AUTH: case opNO_ACCOUNT: case opNOT_SUPPORTED: case opTOO_MANY_SUBENTRIES: case opEXCEEDED_WORK_LIMIT: case opTOO_MANY_SPONSORING: void; };.
OperationResultTr is an XDR NestedUnion defines as: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT_STRICT_RECEIVE: PathPaymentStrictReceiveResult pathPaymentStrictReceiveResult; case MANAGE_SELL_OFFER: ManageSellOfferResult manageSellOfferResult; case CREATE_PASSIVE_SELL_OFFER: ManageSellOfferResult createPassiveSellOfferResult; case SET_OPTIONS: SetOptionsResult setOptionsResult; case CHANGE_TRUST: ChangeTrustResult changeTrustResult; case ALLOW_TRUST: AllowTrustResult allowTrustResult; case ACCOUNT_MERGE: AccountMergeResult accountMergeResult; case INFLATION: InflationResult inflationResult; case MANAGE_DATA: ManageDataResult manageDataResult; case BUMP_SEQUENCE: BumpSequenceResult bumpSeqResult; case MANAGE_BUY_OFFER: ManageBuyOfferResult manageBuyOfferResult; case PATH_PAYMENT_STRICT_SEND: PathPaymentStrictSendResult pathPaymentStrictSendResult; case CREATE_CLAIMABLE_BALANCE: CreateClaimableBalanceResult createClaimableBalanceResult; case CLAIM_CLAIMABLE_BALANCE: ClaimClaimableBalanceResult claimClaimableBalanceResult; case BEGIN_SPONSORING_FUTURE_RESERVES: BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult; case END_SPONSORING_FUTURE_RESERVES: EndSponsoringFutureReservesResult endSponsoringFutureReservesResult; case REVOKE_SPONSORSHIP: RevokeSponsorshipResult revokeSponsorshipResult; case CLAWBACK: ClawbackResult clawbackResult; case CLAWBACK_CLAIMABLE_BALANCE: ClawbackClaimableBalanceResult clawbackClaimableBalanceResult; case SET_TRUST_LINE_FLAGS: SetTrustLineFlagsResult setTrustLineFlagsResult; case LIQUIDITY_POOL_DEPOSIT: LiquidityPoolDepositResult liquidityPoolDepositResult; case LIQUIDITY_POOL_WITHDRAW: LiquidityPoolWithdrawResult liquidityPoolWithdrawResult; case INVOKE_HOST_FUNCTION: InvokeHostFunctionResult invokeHostFunctionResult; case EXTEND_FOOTPRINT_TTL: ExtendFootprintTTLResult extendFootprintTTLResult; case RESTORE_FOOTPRINT: RestoreFootprintResult restoreFootprintResult; }.
PathPaymentStrictReceiveOp is an XDR Struct defines as: struct PathPaymentStrictReceiveOp { Asset sendAsset; // asset we pay with int64 sendMax; // the maximum amount of sendAsset to // send (excluding fees).
PathPaymentStrictReceiveResult is an XDR Union defines as: union PathPaymentStrictReceiveResult switch ( PathPaymentStrictReceiveResultCode code) { case PATH_PAYMENT_STRICT_RECEIVE_SUCCESS: struct { ClaimAtom offers<>; SimplePaymentResult last; } success; case PATH_PAYMENT_STRICT_RECEIVE_MALFORMED: case PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED: case PATH_PAYMENT_STRICT_RECEIVE_SRC_NO_TRUST: case PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED: case PATH_PAYMENT_STRICT_RECEIVE_NO_DESTINATION: case PATH_PAYMENT_STRICT_RECEIVE_NO_TRUST: case PATH_PAYMENT_STRICT_RECEIVE_NOT_AUTHORIZED: case PATH_PAYMENT_STRICT_RECEIVE_LINE_FULL: void; case PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER: Asset noIssuer; // the asset that caused the error case PATH_PAYMENT_STRICT_RECEIVE_TOO_FEW_OFFERS: case PATH_PAYMENT_STRICT_RECEIVE_OFFER_CROSS_SELF: case PATH_PAYMENT_STRICT_RECEIVE_OVER_SENDMAX: void; };.
PathPaymentStrictReceiveResultSuccess is an XDR NestedStruct defines as: struct { ClaimAtom offers<>; SimplePaymentResult last; }.
PathPaymentStrictSendOp is an XDR Struct defines as: struct PathPaymentStrictSendOp { Asset sendAsset; // asset we pay with int64 sendAmount; // amount of sendAsset to send (excluding fees) MuxedAccount destination; // recipient of the payment Asset destAsset; // what they end up with int64 destMin; // the minimum amount of dest asset to // be received // The operation will fail if it can't be met Asset path<5>; // additional hops it must go through to get there };.
PathPaymentStrictSendResult is an XDR Union defines as: union PathPaymentStrictSendResult switch (PathPaymentStrictSendResultCode code) { case PATH_PAYMENT_STRICT_SEND_SUCCESS: struct { ClaimAtom offers<>; SimplePaymentResult last; } success; case PATH_PAYMENT_STRICT_SEND_MALFORMED: case PATH_PAYMENT_STRICT_SEND_UNDERFUNDED: case PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST: case PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED: case PATH_PAYMENT_STRICT_SEND_NO_DESTINATION: case PATH_PAYMENT_STRICT_SEND_NO_TRUST: case PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED: case PATH_PAYMENT_STRICT_SEND_LINE_FULL: void; case PATH_PAYMENT_STRICT_SEND_NO_ISSUER: Asset noIssuer; // the asset that caused the error case PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS: case PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF: case PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN: void; };.
PathPaymentStrictSendResultSuccess is an XDR NestedStruct defines as: struct { ClaimAtom offers<>; SimplePaymentResult last; }.
PaymentOp is an XDR Struct defines as: struct PaymentOp { MuxedAccount destination; // recipient of the payment Asset asset; // what they end up with int64 amount; // amount they end up with };.
PaymentResult is an XDR Union defines as: union PaymentResult switch (PaymentResultCode code) { case PAYMENT_SUCCESS: void; case PAYMENT_MALFORMED: case PAYMENT_UNDERFUNDED: case PAYMENT_SRC_NO_TRUST: case PAYMENT_SRC_NOT_AUTHORIZED: case PAYMENT_NO_DESTINATION: case PAYMENT_NO_TRUST: case PAYMENT_NOT_AUTHORIZED: case PAYMENT_LINE_FULL: case PAYMENT_NO_ISSUER: void; };.
PeerAddress is an XDR Struct defines as: struct PeerAddress { union switch (IPAddrType type) { case IPv4: opaque ipv4[4]; case IPv6: opaque ipv6[16]; } ip; uint32 port; uint32 numFailures; };.
PeerAddressIp is an XDR NestedUnion defines as: union switch (IPAddrType type) { case IPv4: opaque ipv4[4]; case IPv6: opaque ipv6[16]; }.
PeerStats is an XDR Struct defines as: struct PeerStats { NodeID id; string versionStr<100>; uint64 messagesRead; uint64 messagesWritten; uint64 bytesRead; uint64 bytesWritten; uint64 secondsConnected; uint64 uniqueFloodBytesRecv; uint64 duplicateFloodBytesRecv; uint64 uniqueFetchBytesRecv; uint64 duplicateFetchBytesRecv; uint64 uniqueFloodMessageRecv; uint64 duplicateFloodMessageRecv; uint64 uniqueFetchMessageRecv; uint64 duplicateFetchMessageRecv; };.
PersistedScpState is an XDR Union defines as: union PersistedSCPState switch (int v) { case 0: PersistedSCPStateV0 v0; case 1: PersistedSCPStateV1 v1; };.
PersistedScpStateV0 is an XDR Struct defines as: struct PersistedSCPStateV0 { SCPEnvelope scpEnvelopes<>; SCPQuorumSet quorumSets<>; StoredTransactionSet txSets<>; };.
PersistedScpStateV1 is an XDR Struct defines as: struct PersistedSCPStateV1 { // Tx sets are saved separately SCPEnvelope scpEnvelopes<>; SCPQuorumSet quorumSets<>; };.
Preconditions is an XDR Union defines as: union Preconditions switch (PreconditionType type) { case PRECOND_NONE: void; case PRECOND_TIME: TimeBounds timeBounds; case PRECOND_V2: PreconditionsV2 v2; };.
PreconditionsV2 is an XDR Struct defines as: struct PreconditionsV2 { TimeBounds* timeBounds; // Transaction only valid for ledger numbers n such that // minLedger <= n < maxLedger (if maxLedger == 0, then // only minLedger is checked) LedgerBounds* ledgerBounds; // If NULL, only valid when sourceAccount's sequence number // is seqNum - 1.
Price is an XDR Struct defines as: struct Price { int32 n; // numerator int32 d; // denominator };.
PublicKey is an XDR Union defines as: union PublicKey switch (PublicKeyType type) { case PUBLIC_KEY_TYPE_ED25519: uint256 ed25519; };.
RestoreFootprintOp is an XDR Struct defines as: struct RestoreFootprintOp { ExtensionPoint ext; };.
RestoreFootprintResult is an XDR Union defines as: union RestoreFootprintResult switch (RestoreFootprintResultCode code) { case RESTORE_FOOTPRINT_SUCCESS: void; case RESTORE_FOOTPRINT_MALFORMED: case RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED: case RESTORE_FOOTPRINT_INSUFFICIENT_REFUNDABLE_FEE: void; };.
RevokeSponsorshipOp is an XDR Union defines as: union RevokeSponsorshipOp switch (RevokeSponsorshipType type) { case REVOKE_SPONSORSHIP_LEDGER_ENTRY: LedgerKey ledgerKey; case REVOKE_SPONSORSHIP_SIGNER: struct { AccountID accountID; SignerKey signerKey; } signer; };.
RevokeSponsorshipOpSigner is an XDR NestedStruct defines as: struct { AccountID accountID; SignerKey signerKey; }.
RevokeSponsorshipResult is an XDR Union defines as: union RevokeSponsorshipResult switch (RevokeSponsorshipResultCode code) { case REVOKE_SPONSORSHIP_SUCCESS: void; case REVOKE_SPONSORSHIP_DOES_NOT_EXIST: case REVOKE_SPONSORSHIP_NOT_SPONSOR: case REVOKE_SPONSORSHIP_LOW_RESERVE: case REVOKE_SPONSORSHIP_ONLY_TRANSFERABLE: case REVOKE_SPONSORSHIP_MALFORMED: void; };.
ScAddress is an XDR Union defines as: union SCAddress switch (SCAddressType type) { case SC_ADDRESS_TYPE_ACCOUNT: AccountID accountId; case SC_ADDRESS_TYPE_CONTRACT: Hash contractId; };.
ScContractInstance is an XDR Struct defines as: struct SCContractInstance { ContractExecutable executable; SCMap* storage; };.
ScEnvMetaEntry is an XDR Union defines as: union SCEnvMetaEntry switch (SCEnvMetaKind kind) { case SC_ENV_META_KIND_INTERFACE_VERSION: struct { uint32 protocol; uint32 preRelease; } interfaceVersion; };.
ScEnvMetaEntryInterfaceVersion is an XDR NestedStruct defines as: struct { uint32 protocol; uint32 preRelease; }.
ScError is an XDR Union defines as: union SCError switch (SCErrorType type) { case SCE_CONTRACT: uint32 contractCode; case SCE_WASM_VM: case SCE_CONTEXT: case SCE_STORAGE: case SCE_OBJECT: case SCE_CRYPTO: case SCE_EVENTS: case SCE_BUDGET: case SCE_VALUE: case SCE_AUTH: SCErrorCode code; };.
ScMapEntry is an XDR Struct defines as: struct SCMapEntry { SCVal key; SCVal val; };.
ScMetaEntry is an XDR Union defines as: union SCMetaEntry switch (SCMetaKind kind) { case SC_META_V0: SCMetaV0 v0; };.
ScMetaV0 is an XDR Struct defines as: struct SCMetaV0 { string key<>; string val<>; };.
ScNonceKey is an XDR Struct defines as: struct SCNonceKey { int64 nonce; };.
ScpBallot is an XDR Struct defines as: struct SCPBallot { uint32 counter; // n Value value; // x };.
ScpEnvelope is an XDR Struct defines as: struct SCPEnvelope { SCPStatement statement; Signature signature; };.
ScpHistoryEntry is an XDR Union defines as: union SCPHistoryEntry switch (int v) { case 0: SCPHistoryEntryV0 v0; };.
ScpHistoryEntryV0 is an XDR Struct defines as: struct SCPHistoryEntryV0 { SCPQuorumSet quorumSets<>; // additional quorum sets used by ledgerMessages LedgerSCPMessages ledgerMessages; };.
ScpNomination is an XDR Struct defines as: struct SCPNomination { Hash quorumSetHash; // D Value votes<>; // X Value accepted<>; // Y };.
ScpQuorumSet is an XDR Struct defines as: struct SCPQuorumSet { uint32 threshold; NodeID validators<>; SCPQuorumSet innerSets<>; };.
ScpStatement is an XDR Struct defines as: struct SCPStatement { NodeID nodeID; // v uint64 slotIndex; // i union switch (SCPStatementType type) { case SCP_ST_PREPARE: struct { Hash quorumSetHash; // D SCPBallot ballot; // b SCPBallot* prepared; // p SCPBallot* preparedPrime; // p' uint32 nC; // c.n uint32 nH; // h.n } prepare; case SCP_ST_CONFIRM: struct { SCPBallot ballot; // b uint32 nPrepared; // p.n uint32 nCommit; // c.n uint32 nH; // h.n Hash quorumSetHash; // D } confirm; case SCP_ST_EXTERNALIZE: struct { SCPBallot commit; // c uint32 nH; // h.n Hash commitQuorumSetHash; // D used before EXTERNALIZE } externalize; case SCP_ST_NOMINATE: SCPNomination nominate; } pledges; };.
ScpStatementConfirm is an XDR NestedStruct defines as: struct { SCPBallot ballot; // b uint32 nPrepared; // p.n uint32 nCommit; // c.n uint32 nH; // h.n Hash quorumSetHash; // D }.
ScpStatementExternalize is an XDR NestedStruct defines as: struct { SCPBallot commit; // c uint32 nH; // h.n Hash commitQuorumSetHash; // D used before EXTERNALIZE }.
ScpStatementPledges is an XDR NestedUnion defines as: union switch (SCPStatementType type) { case SCP_ST_PREPARE: struct { Hash quorumSetHash; // D SCPBallot ballot; // b SCPBallot* prepared; // p SCPBallot* preparedPrime; // p' uint32 nC; // c.n uint32 nH; // h.n } prepare; case SCP_ST_CONFIRM: struct { SCPBallot ballot; // b uint32 nPrepared; // p.n uint32 nCommit; // c.n uint32 nH; // h.n Hash quorumSetHash; // D } confirm; case SCP_ST_EXTERNALIZE: struct { SCPBallot commit; // c uint32 nH; // h.n Hash commitQuorumSetHash; // D used before EXTERNALIZE } externalize; case SCP_ST_NOMINATE: SCPNomination nominate; }.
ScpStatementPrepare is an XDR NestedStruct defines as: struct { Hash quorumSetHash; // D SCPBallot ballot; // b SCPBallot* prepared; // p SCPBallot* preparedPrime; // p' uint32 nC; // c.n uint32 nH; // h.n }.
ScSpecEntry is an XDR Union defines as: union SCSpecEntry switch (SCSpecEntryKind kind) { case SC_SPEC_ENTRY_FUNCTION_V0: SCSpecFunctionV0 functionV0; case SC_SPEC_ENTRY_UDT_STRUCT_V0: SCSpecUDTStructV0 udtStructV0; case SC_SPEC_ENTRY_UDT_UNION_V0: SCSpecUDTUnionV0 udtUnionV0; case SC_SPEC_ENTRY_UDT_ENUM_V0: SCSpecUDTEnumV0 udtEnumV0; case SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0: SCSpecUDTErrorEnumV0 udtErrorEnumV0; };.
ScSpecFunctionInputV0 is an XDR Struct defines as: struct SCSpecFunctionInputV0 { string doc<SC_SPEC_DOC_LIMIT>; string name<30>; SCSpecTypeDef type; };.
ScSpecFunctionV0 is an XDR Struct defines as: struct SCSpecFunctionV0 { string doc<SC_SPEC_DOC_LIMIT>; SCSymbol name; SCSpecFunctionInputV0 inputs<10>; SCSpecTypeDef outputs<1>; };.
ScSpecTypeBytesN is an XDR Struct defines as: struct SCSpecTypeBytesN { uint32 n; };.
ScSpecTypeDef is an XDR Union defines as: union SCSpecTypeDef switch (SCSpecType type) { case SC_SPEC_TYPE_VAL: case SC_SPEC_TYPE_BOOL: case SC_SPEC_TYPE_VOID: case SC_SPEC_TYPE_ERROR: case SC_SPEC_TYPE_U32: case SC_SPEC_TYPE_I32: case SC_SPEC_TYPE_U64: case SC_SPEC_TYPE_I64: case SC_SPEC_TYPE_TIMEPOINT: case SC_SPEC_TYPE_DURATION: case SC_SPEC_TYPE_U128: case SC_SPEC_TYPE_I128: case SC_SPEC_TYPE_U256: case SC_SPEC_TYPE_I256: case SC_SPEC_TYPE_BYTES: case SC_SPEC_TYPE_STRING: case SC_SPEC_TYPE_SYMBOL: case SC_SPEC_TYPE_ADDRESS: void; case SC_SPEC_TYPE_OPTION: SCSpecTypeOption option; case SC_SPEC_TYPE_RESULT: SCSpecTypeResult result; case SC_SPEC_TYPE_VEC: SCSpecTypeVec vec; case SC_SPEC_TYPE_MAP: SCSpecTypeMap map; case SC_SPEC_TYPE_TUPLE: SCSpecTypeTuple tuple; case SC_SPEC_TYPE_BYTES_N: SCSpecTypeBytesN bytesN; case SC_SPEC_TYPE_UDT: SCSpecTypeUDT udt; };.
ScSpecTypeMap is an XDR Struct defines as: struct SCSpecTypeMap { SCSpecTypeDef keyType; SCSpecTypeDef valueType; };.
ScSpecTypeOption is an XDR Struct defines as: struct SCSpecTypeOption { SCSpecTypeDef valueType; };.
ScSpecTypeResult is an XDR Struct defines as: struct SCSpecTypeResult { SCSpecTypeDef okType; SCSpecTypeDef errorType; };.
ScSpecTypeTuple is an XDR Struct defines as: struct SCSpecTypeTuple { SCSpecTypeDef valueTypes<12>; };.
ScSpecTypeUdt is an XDR Struct defines as: struct SCSpecTypeUDT { string name<60>; };.
ScSpecTypeVec is an XDR Struct defines as: struct SCSpecTypeVec { SCSpecTypeDef elementType; };.
ScSpecUdtEnumCaseV0 is an XDR Struct defines as: struct SCSpecUDTEnumCaseV0 { string doc<SC_SPEC_DOC_LIMIT>; string name<60>; uint32 value; };.
ScSpecUdtEnumV0 is an XDR Struct defines as: struct SCSpecUDTEnumV0 { string doc<SC_SPEC_DOC_LIMIT>; string lib<80>; string name<60>; SCSpecUDTEnumCaseV0 cases<50>; };.
ScSpecUdtErrorEnumCaseV0 is an XDR Struct defines as: struct SCSpecUDTErrorEnumCaseV0 { string doc<SC_SPEC_DOC_LIMIT>; string name<60>; uint32 value; };.
ScSpecUdtErrorEnumV0 is an XDR Struct defines as: struct SCSpecUDTErrorEnumV0 { string doc<SC_SPEC_DOC_LIMIT>; string lib<80>; string name<60>; SCSpecUDTErrorEnumCaseV0 cases<50>; };.
ScSpecUdtStructFieldV0 is an XDR Struct defines as: struct SCSpecUDTStructFieldV0 { string doc<SC_SPEC_DOC_LIMIT>; string name<30>; SCSpecTypeDef type; };.
ScSpecUdtStructV0 is an XDR Struct defines as: struct SCSpecUDTStructV0 { string doc<SC_SPEC_DOC_LIMIT>; string lib<80>; string name<60>; SCSpecUDTStructFieldV0 fields<40>; };.
ScSpecUdtUnionCaseTupleV0 is an XDR Struct defines as: struct SCSpecUDTUnionCaseTupleV0 { string doc<SC_SPEC_DOC_LIMIT>; string name<60>; SCSpecTypeDef type<12>; };.
ScSpecUdtUnionCaseV0 is an XDR Union defines as: union SCSpecUDTUnionCaseV0 switch (SCSpecUDTUnionCaseV0Kind kind) { case SC_SPEC_UDT_UNION_CASE_VOID_V0: SCSpecUDTUnionCaseVoidV0 voidCase; case SC_SPEC_UDT_UNION_CASE_TUPLE_V0: SCSpecUDTUnionCaseTupleV0 tupleCase; };.
ScSpecUdtUnionCaseVoidV0 is an XDR Struct defines as: struct SCSpecUDTUnionCaseVoidV0 { string doc<SC_SPEC_DOC_LIMIT>; string name<60>; };.
ScSpecUdtUnionV0 is an XDR Struct defines as: struct SCSpecUDTUnionV0 { string doc<SC_SPEC_DOC_LIMIT>; string lib<80>; string name<60>; SCSpecUDTUnionCaseV0 cases<50>; };.
ScVal is an XDR Union defines as: union SCVal switch (SCValType type) { case SCV_BOOL: bool b; case SCV_VOID: void; case SCV_ERROR: SCError error; case SCV_U32: uint32 u32; case SCV_I32: int32 i32; case SCV_U64: uint64 u64; case SCV_I64: int64 i64; case SCV_TIMEPOINT: TimePoint timepoint; case SCV_DURATION: Duration duration; case SCV_U128: UInt128Parts u128; case SCV_I128: Int128Parts i128; case SCV_U256: UInt256Parts u256; case SCV_I256: Int256Parts i256; case SCV_BYTES: SCBytes bytes; case SCV_STRING: SCString str; case SCV_SYMBOL: SCSymbol sym; // Vec and Map are recursive so need to live // behind an option, due to xdrpp limitations.
SendMore is an XDR Struct defines as: struct SendMore { uint32 numMessages; };.
SendMoreExtended is an XDR Struct defines as: struct SendMoreExtended { uint32 numMessages; uint32 numBytes; };.
SerializedBinaryFuseFilter is an XDR Struct defines as: struct SerializedBinaryFuseFilter { BinaryFuseFilterType type; // Seed used to hash input to filter ShortHashSeed inputHashSeed; // Seed used for internal filter hash operations ShortHashSeed filterSeed; uint32 segmentLength; uint32 segementLengthMask; uint32 segmentCount; uint32 segmentCountLength; uint32 fingerprintLength; // Length in terms of element count, not bytes // Array of uint8_t, uint16_t, or uint32_t depending on filter type opaque fingerprints<>; };.
SetOptionsOp is an XDR Struct defines as: struct SetOptionsOp { AccountID* inflationDest; // sets the inflation destination uint32* clearFlags; // which flags to clear uint32* setFlags; // which flags to set // account threshold manipulation uint32* masterWeight; // weight of the master account uint32* lowThreshold; uint32* medThreshold; uint32* highThreshold; string32* homeDomain; // sets the home domain // Add, update or remove a signer for the account // signer is deleted if the weight is 0 Signer* signer; };.
SetOptionsResult is an XDR Union defines as: union SetOptionsResult switch (SetOptionsResultCode code) { case SET_OPTIONS_SUCCESS: void; case SET_OPTIONS_LOW_RESERVE: case SET_OPTIONS_TOO_MANY_SIGNERS: case SET_OPTIONS_BAD_FLAGS: case SET_OPTIONS_INVALID_INFLATION: case SET_OPTIONS_CANT_CHANGE: case SET_OPTIONS_UNKNOWN_FLAG: case SET_OPTIONS_THRESHOLD_OUT_OF_RANGE: case SET_OPTIONS_BAD_SIGNER: case SET_OPTIONS_INVALID_HOME_DOMAIN: case SET_OPTIONS_AUTH_REVOCABLE_REQUIRED: void; };.
SetTrustLineFlagsOp is an XDR Struct defines as: struct SetTrustLineFlagsOp { AccountID trustor; Asset asset; uint32 clearFlags; // which flags to clear uint32 setFlags; // which flags to set };.
SetTrustLineFlagsResult is an XDR Union defines as: union SetTrustLineFlagsResult switch (SetTrustLineFlagsResultCode code) { case SET_TRUST_LINE_FLAGS_SUCCESS: void; case SET_TRUST_LINE_FLAGS_MALFORMED: case SET_TRUST_LINE_FLAGS_NO_TRUST_LINE: case SET_TRUST_LINE_FLAGS_CANT_REVOKE: case SET_TRUST_LINE_FLAGS_INVALID_STATE: case SET_TRUST_LINE_FLAGS_LOW_RESERVE: void; };.
ShortHashSeed is an XDR Struct defines as: struct ShortHashSeed { opaque seed[16]; };.
SignedSurveyRequestMessage is an XDR Struct defines as: struct SignedSurveyRequestMessage { Signature requestSignature; SurveyRequestMessage request; };.
SignedSurveyResponseMessage is an XDR Struct defines as: struct SignedSurveyResponseMessage { Signature responseSignature; SurveyResponseMessage response; };.
SignedTimeSlicedSurveyRequestMessage is an XDR Struct defines as: struct SignedTimeSlicedSurveyRequestMessage { Signature requestSignature; TimeSlicedSurveyRequestMessage request; };.
SignedTimeSlicedSurveyResponseMessage is an XDR Struct defines as: struct SignedTimeSlicedSurveyResponseMessage { Signature responseSignature; TimeSlicedSurveyResponseMessage response; };.
SignedTimeSlicedSurveyStartCollectingMessage is an XDR Struct defines as: struct SignedTimeSlicedSurveyStartCollectingMessage { Signature signature; TimeSlicedSurveyStartCollectingMessage startCollecting; };.
SignedTimeSlicedSurveyStopCollectingMessage is an XDR Struct defines as: struct SignedTimeSlicedSurveyStopCollectingMessage { Signature signature; TimeSlicedSurveyStopCollectingMessage stopCollecting; };.
Signer is an XDR Struct defines as: struct Signer { SignerKey key; uint32 weight; // really only need 1 byte };.
SignerKey is an XDR Union defines as: union SignerKey switch (SignerKeyType type) { case SIGNER_KEY_TYPE_ED25519: uint256 ed25519; case SIGNER_KEY_TYPE_PRE_AUTH_TX: /* SHA-256 Hash of TransactionSignaturePayload structure */ uint256 preAuthTx; case SIGNER_KEY_TYPE_HASH_X: /* Hash of random 256 bit preimage X */ uint256 hashX; case SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD: struct { /* Public key that must sign the payload.
SignerKeyEd25519SignedPayload is an XDR NestedStruct defines as: struct { /* Public key that must sign the payload.
SimplePaymentResult is an XDR Struct defines as: struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; };.
SorobanAddressCredentials is an XDR Struct defines as: struct SorobanAddressCredentials { SCAddress address; int64 nonce; uint32 signatureExpirationLedger; SCVal signature; };.
SorobanAuthorizationEntry is an XDR Struct defines as: struct SorobanAuthorizationEntry { SorobanCredentials credentials; SorobanAuthorizedInvocation rootInvocation; };.
SorobanAuthorizedFunction is an XDR Union defines as: union SorobanAuthorizedFunction switch (SorobanAuthorizedFunctionType type) { case SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN: InvokeContractArgs contractFn; // This variant of auth payload for creating new contract instances // doesn't allow specifying the constructor arguments, creating contracts // with constructors that take arguments is only possible by authorizing // `SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN` // (protocol 22+).
SorobanAuthorizedInvocation is an XDR Struct defines as: struct SorobanAuthorizedInvocation { SorobanAuthorizedFunction function; SorobanAuthorizedInvocation subInvocations<>; };.
SorobanCredentials is an XDR Union defines as: union SorobanCredentials switch (SorobanCredentialsType type) { case SOROBAN_CREDENTIALS_SOURCE_ACCOUNT: void; case SOROBAN_CREDENTIALS_ADDRESS: SorobanAddressCredentials address; };.
SorobanResources is an XDR Struct defines as: struct SorobanResources { // The ledger footprint of the transaction.
SorobanTransactionData is an XDR Struct defines as: struct SorobanTransactionData { ExtensionPoint ext; SorobanResources resources; // Amount of the transaction `fee` allocated to the Soroban resource fees.
SorobanTransactionMeta is an XDR Struct defines as: struct SorobanTransactionMeta { SorobanTransactionMetaExt ext; ContractEvent events<>; // custom events populated by the // contracts themselves.
SorobanTransactionMetaExt is an XDR Union defines as: union SorobanTransactionMetaExt switch (int v) { case 0: void; case 1: SorobanTransactionMetaExtV1 v1; };.
SorobanTransactionMetaExtV1 is an XDR Struct defines as: struct SorobanTransactionMetaExtV1 { ExtensionPoint ext; // The following are the components of the overall Soroban resource fee // charged for the transaction.
StateArchivalSettings is an XDR Struct defines as: struct StateArchivalSettings { uint32 maxEntryTTL; uint32 minTemporaryTTL; uint32 minPersistentTTL; // rent_fee = wfee_rate_average / rent_rate_denominator_for_type int64 persistentRentRateDenominator; int64 tempRentRateDenominator; // max number of entries that emit archival meta in a single ledger uint32 maxEntriesToArchive; // Number of snapshots to use when calculating average BucketList size uint32 bucketListSizeWindowSampleSize; // How often to sample the BucketList size for the average, in ledgers uint32 bucketListWindowSamplePeriod; // Maximum number of bytes that we scan for eviction per ledger uint32 evictionScanSize; // Lowest BucketList level to be scanned to evict entries uint32 startingEvictionScanLevel; };.
StellarMessage is an XDR Union defines as: union StellarMessage switch (MessageType type) { case ERROR_MSG: Error error; case HELLO: Hello hello; case AUTH: Auth auth; case DONT_HAVE: DontHave dontHave; case GET_PEERS: void; case PEERS: PeerAddress peers<100>; case GET_TX_SET: uint256 txSetHash; case TX_SET: TransactionSet txSet; case GENERALIZED_TX_SET: GeneralizedTransactionSet generalizedTxSet; case TRANSACTION: TransactionEnvelope transaction; case SURVEY_REQUEST: SignedSurveyRequestMessage signedSurveyRequestMessage; case SURVEY_RESPONSE: SignedSurveyResponseMessage signedSurveyResponseMessage; case TIME_SLICED_SURVEY_REQUEST: SignedTimeSlicedSurveyRequestMessage signedTimeSlicedSurveyRequestMessage; case TIME_SLICED_SURVEY_RESPONSE: SignedTimeSlicedSurveyResponseMessage signedTimeSlicedSurveyResponseMessage; case TIME_SLICED_SURVEY_START_COLLECTING: SignedTimeSlicedSurveyStartCollectingMessage signedTimeSlicedSurveyStartCollectingMessage; case TIME_SLICED_SURVEY_STOP_COLLECTING: SignedTimeSlicedSurveyStopCollectingMessage signedTimeSlicedSurveyStopCollectingMessage; // SCP case GET_SCP_QUORUMSET: uint256 qSetHash; case SCP_QUORUMSET: SCPQuorumSet qSet; case SCP_MESSAGE: SCPEnvelope envelope; case GET_SCP_STATE: uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest case SEND_MORE: SendMore sendMoreMessage; case SEND_MORE_EXTENDED: SendMoreExtended sendMoreExtendedMessage; // Pull mode case FLOOD_ADVERT: FloodAdvert floodAdvert; case FLOOD_DEMAND: FloodDemand floodDemand; };.
StellarValue is an XDR Struct defines as: struct StellarValue { Hash txSetHash; // transaction set to apply to previous ledger TimePoint closeTime; // network close time // upgrades to apply to the previous ledger (usually empty) // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop // unknown steps during consensus if needed.
StellarValueExt is an XDR NestedUnion defines as: union switch (StellarValueType v) { case STELLAR_VALUE_BASIC: void; case STELLAR_VALUE_SIGNED: LedgerCloseValueSignature lcValueSignature; }.
StoredDebugTransactionSet is an XDR Struct defines as: struct StoredDebugTransactionSet { StoredTransactionSet txSet; uint32 ledgerSeq; StellarValue scpValue; };.
StoredTransactionSet is an XDR Union defines as: union StoredTransactionSet switch (int v) { case 0: TransactionSet txSet; case 1: GeneralizedTransactionSet generalizedTxSet; };.
SurveyRequestMessage is an XDR Struct defines as: struct SurveyRequestMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; Curve25519Public encryptionKey; SurveyMessageCommandType commandType; };.
SurveyResponseBody is an XDR Union defines as: union SurveyResponseBody switch (SurveyMessageResponseType type) { case SURVEY_TOPOLOGY_RESPONSE_V0: TopologyResponseBodyV0 topologyResponseBodyV0; case SURVEY_TOPOLOGY_RESPONSE_V1: TopologyResponseBodyV1 topologyResponseBodyV1; case SURVEY_TOPOLOGY_RESPONSE_V2: TopologyResponseBodyV2 topologyResponseBodyV2; };.
SurveyResponseMessage is an XDR Struct defines as: struct SurveyResponseMessage { NodeID surveyorPeerID; NodeID surveyedPeerID; uint32 ledgerNum; SurveyMessageCommandType commandType; EncryptedBody encryptedBody; };.
TimeBounds is an XDR Struct defines as: struct TimeBounds { TimePoint minTime; TimePoint maxTime; // 0 here means no maxTime };.
TimeSlicedNodeData is an XDR Struct defines as: struct TimeSlicedNodeData { uint32 addedAuthenticatedPeers; uint32 droppedAuthenticatedPeers; uint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; // SCP stats uint32 p75SCPFirstToSelfLatencyMs; uint32 p75SCPSelfToOtherLatencyMs; // How many times the node lost sync in the time slice uint32 lostSyncCount; // Config data bool isValidator; uint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; };.
TimeSlicedPeerData is an XDR Struct defines as: struct TimeSlicedPeerData { PeerStats peerStats; uint32 averageLatencyMs; };.
TimeSlicedSurveyRequestMessage is an XDR Struct defines as: struct TimeSlicedSurveyRequestMessage { SurveyRequestMessage request; uint32 nonce; uint32 inboundPeersIndex; uint32 outboundPeersIndex; };.
TimeSlicedSurveyResponseMessage is an XDR Struct defines as: struct TimeSlicedSurveyResponseMessage { SurveyResponseMessage response; uint32 nonce; };.
TimeSlicedSurveyStartCollectingMessage is an XDR Struct defines as: struct TimeSlicedSurveyStartCollectingMessage { NodeID surveyorID; uint32 nonce; uint32 ledgerNum; };.
TimeSlicedSurveyStopCollectingMessage is an XDR Struct defines as: struct TimeSlicedSurveyStopCollectingMessage { NodeID surveyorID; uint32 nonce; uint32 ledgerNum; };.
TopologyResponseBodyV0 is an XDR Struct defines as: struct TopologyResponseBodyV0 { PeerStatList inboundPeers; PeerStatList outboundPeers; uint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; };.
TopologyResponseBodyV1 is an XDR Struct defines as: struct TopologyResponseBodyV1 { PeerStatList inboundPeers; PeerStatList outboundPeers; uint32 totalInboundPeerCount; uint32 totalOutboundPeerCount; uint32 maxInboundPeerCount; uint32 maxOutboundPeerCount; };.
TopologyResponseBodyV2 is an XDR Struct defines as: struct TopologyResponseBodyV2 { TimeSlicedPeerDataList inboundPeers; TimeSlicedPeerDataList outboundPeers; TimeSlicedNodeData nodeData; };.
Transaction is an XDR Struct defines as: struct Transaction { // account used to run the transaction MuxedAccount sourceAccount; // the fee the sourceAccount will pay uint32 fee; // sequence number to consume in the account SequenceNumber seqNum; // validity conditions Preconditions cond; Memo memo; Operation operations<MAX_OPS_PER_TX>; // reserved for future use union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; } ext; };.
TransactionEnvelope is an XDR Union defines as: union TransactionEnvelope switch (EnvelopeType type) { case ENVELOPE_TYPE_TX_V0: TransactionV0Envelope v0; case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransactionEnvelope feeBump; };.
TransactionExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: SorobanTransactionData sorobanData; }.
TransactionHistoryEntry is an XDR Struct defines as: struct TransactionHistoryEntry { uint32 ledgerSeq; TransactionSet txSet; // when v != 0, txSet must be empty union switch (int v) { case 0: void; case 1: GeneralizedTransactionSet generalizedTxSet; } ext; };.
TransactionHistoryEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: GeneralizedTransactionSet generalizedTxSet; }.
TransactionHistoryResultEntry is an XDR Struct defines as: struct TransactionHistoryResultEntry { uint32 ledgerSeq; TransactionResultSet txResultSet; // reserved for future use union switch (int v) { case 0: void; } ext; };.
TransactionHistoryResultEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
TransactionMeta is an XDR Union defines as: union TransactionMeta switch (int v) { case 0: OperationMeta operations<>; case 1: TransactionMetaV1 v1; case 2: TransactionMetaV2 v2; case 3: TransactionMetaV3 v3; };.
TransactionMetaV1 is an XDR Struct defines as: struct TransactionMetaV1 { LedgerEntryChanges txChanges; // tx level changes if any OperationMeta operations<>; // meta for each operation };.
TransactionMetaV2 is an XDR Struct defines as: struct TransactionMetaV2 { LedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMeta operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any };.
TransactionMetaV3 is an XDR Struct defines as: struct TransactionMetaV3 { ExtensionPoint ext; LedgerEntryChanges txChangesBefore; // tx level changes before operations // are applied if any OperationMeta operations<>; // meta for each operation LedgerEntryChanges txChangesAfter; // tx level changes after operations are // applied if any SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for // Soroban transactions).
TransactionPhase is an XDR Union defines as: union TransactionPhase switch (int v) { case 0: TxSetComponent v0Components<>; };.
TransactionResult is an XDR Struct defines as: struct TransactionResult { int64 feeCharged; // actual fee charged for the transaction union switch (TransactionResultCode code) { case txFEE_BUMP_INNER_SUCCESS: case txFEE_BUMP_INNER_FAILED: InnerTransactionResultPair innerResultPair; case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // case txFEE_BUMP_INNER_FAILED: handled above case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; } result; // reserved for future use union switch (int v) { case 0: void; } ext; };.
TransactionResultExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
TransactionResultMeta is an XDR Struct defines as: struct TransactionResultMeta { TransactionResultPair result; LedgerEntryChanges feeProcessing; TransactionMeta txApplyProcessing; };.
TransactionResultPair is an XDR Struct defines as: struct TransactionResultPair { Hash transactionHash; TransactionResult result; // result for the transaction };.
TransactionResultResult is an XDR NestedUnion defines as: union switch (TransactionResultCode code) { case txFEE_BUMP_INNER_SUCCESS: case txFEE_BUMP_INNER_FAILED: InnerTransactionResultPair innerResultPair; case txSUCCESS: case txFAILED: OperationResult results<>; case txTOO_EARLY: case txTOO_LATE: case txMISSING_OPERATION: case txBAD_SEQ: case txBAD_AUTH: case txINSUFFICIENT_BALANCE: case txNO_ACCOUNT: case txINSUFFICIENT_FEE: case txBAD_AUTH_EXTRA: case txINTERNAL_ERROR: case txNOT_SUPPORTED: // case txFEE_BUMP_INNER_FAILED: handled above case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: case txSOROBAN_INVALID: void; }.
TransactionResultSet is an XDR Struct defines as: struct TransactionResultSet { TransactionResultPair results<>; };.
TransactionSet is an XDR Struct defines as: struct TransactionSet { Hash previousLedgerHash; TransactionEnvelope txs<>; };.
TransactionSetV1 is an XDR Struct defines as: struct TransactionSetV1 { Hash previousLedgerHash; TransactionPhase phases<>; };.
TransactionSignaturePayload is an XDR Struct defines as: struct TransactionSignaturePayload { Hash networkId; union switch (EnvelopeType type) { // Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0 case ENVELOPE_TYPE_TX: Transaction tx; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransaction feeBump; } taggedTransaction; };.
TransactionSignaturePayloadTaggedTransaction is an XDR NestedUnion defines as: union switch (EnvelopeType type) { // Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0 case ENVELOPE_TYPE_TX: Transaction tx; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransaction feeBump; }.
TransactionV0 is an XDR Struct defines as: struct TransactionV0 { uint256 sourceAccountEd25519; uint32 fee; SequenceNumber seqNum; TimeBounds* timeBounds; Memo memo; Operation operations<MAX_OPS_PER_TX>; union switch (int v) { case 0: void; } ext; };.
TransactionV0Envelope is an XDR Struct defines as: struct TransactionV0Envelope { TransactionV0 tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; };.
TransactionV0Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
TransactionV1Envelope is an XDR Struct defines as: struct TransactionV1Envelope { Transaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; };.
TrustLineAsset is an XDR Union defines as: union TrustLineAsset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void; case ASSET_TYPE_CREDIT_ALPHANUM4: AlphaNum4 alphaNum4; case ASSET_TYPE_CREDIT_ALPHANUM12: AlphaNum12 alphaNum12; case ASSET_TYPE_POOL_SHARE: PoolID liquidityPoolID; // add other asset types here in the future };.
TrustLineEntry is an XDR Struct defines as: struct TrustLineEntry { AccountID accountID; // account this trustline belongs to TrustLineAsset asset; // type of asset (with issuer) int64 balance; // how much of this asset the user has.
TrustLineEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 1: struct { Liabilities liabilities; union switch (int v) { case 0: void; case 2: TrustLineEntryExtensionV2 v2; } ext; } v1; }.
TrustLineEntryExtensionV2 is an XDR Struct defines as: struct TrustLineEntryExtensionV2 { int32 liquidityPoolUseCount; union switch (int v) { case 0: void; } ext; };.
TrustLineEntryExtensionV2Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; }.
TrustLineEntryV1 is an XDR NestedStruct defines as: struct { Liabilities liabilities; union switch (int v) { case 0: void; case 2: TrustLineEntryExtensionV2 v2; } ext; }.
TrustLineEntryV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; case 2: TrustLineEntryExtensionV2 v2; }.
TtlEntry is an XDR Struct defines as: struct TTLEntry { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; uint32 liveUntilLedgerSeq; };.
TxSetComponent is an XDR Union defines as: union TxSetComponent switch (TxSetComponentType type) { case TXSET_COMP_TXS_MAYBE_DISCOUNTED_FEE: struct { int64* baseFee; TransactionEnvelope txs<>; } txsMaybeDiscountedFee; };.
TxSetComponentTxsMaybeDiscountedFee is an XDR NestedStruct defines as: struct { int64* baseFee; TransactionEnvelope txs<>; }.
UInt128Parts is an XDR Struct defines as: struct UInt128Parts { uint64 hi; uint64 lo; };.
UInt256Parts is an XDR Struct defines as: struct UInt256Parts { uint64 hi_hi; uint64 hi_lo; uint64 lo_hi; uint64 lo_lo; };.
UpgradeEntryMeta is an XDR Struct defines as: struct UpgradeEntryMeta { LedgerUpgrade upgrade; LedgerEntryChanges changes; };.

# Interfaces

Keyer represents a type that can be converted into a LedgerKey.

# Type aliases

AccountFlags is an XDR Enum defines as: enum AccountFlags { // masks for each flag // Flags set on issuer accounts // TrustLines are created with authorized set to "false" requiring // the issuer to set it for each TrustLine AUTH_REQUIRED_FLAG = 0x1, // If set, the authorized flag in TrustLines can be cleared // otherwise, authorization cannot be revoked AUTH_REVOCABLE_FLAG = 0x2, // Once set, causes all AUTH_* flags to be read-only AUTH_IMMUTABLE_FLAG = 0x4, // Trustlines are created with clawback enabled set to "true", // and claimable balances created from those trustlines are created // with clawback enabled set to "true" AUTH_CLAWBACK_ENABLED_FLAG = 0x8 };.
AccountId is an XDR Typedef defines as: typedef PublicKey AccountID;.
AccountMergeResultCode is an XDR Enum defines as: enum AccountMergeResultCode { // codes considered as "success" for the operation ACCOUNT_MERGE_SUCCESS = 0, // codes considered as "failure" for the operation ACCOUNT_MERGE_MALFORMED = -1, // can't merge onto itself ACCOUNT_MERGE_NO_ACCOUNT = -2, // destination does not exist ACCOUNT_MERGE_IMMUTABLE_SET = -3, // source account has AUTH_IMMUTABLE set ACCOUNT_MERGE_HAS_SUB_ENTRIES = -4, // account has trust lines/offers ACCOUNT_MERGE_SEQNUM_TOO_FAR = -5, // sequence number is over max allowed ACCOUNT_MERGE_DEST_FULL = -6, // can't add source balance to // destination balance ACCOUNT_MERGE_IS_SPONSOR = -7 // can't merge account that is a sponsor };.
AllowTrustResultCode is an XDR Enum defines as: enum AllowTrustResultCode { // codes considered as "success" for the operation ALLOW_TRUST_SUCCESS = 0, // codes considered as "failure" for the operation ALLOW_TRUST_MALFORMED = -1, // asset is not ASSET_TYPE_ALPHANUM ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline // source account does not require trust ALLOW_TRUST_TRUST_NOT_REQUIRED = -3, ALLOW_TRUST_CANT_REVOKE = -4, // source account can't revoke trust, ALLOW_TRUST_SELF_NOT_ALLOWED = -5, // trusting self is not allowed ALLOW_TRUST_LOW_RESERVE = -6 // claimable balances can't be created // on revoke due to low reserves };.
ArchivalProofType is an XDR Enum defines as: enum ArchivalProofType { EXISTENCE = 0, NONEXISTENCE = 1 };.
AssetCode12 is an XDR Typedef defines as: typedef opaque AssetCode12[12];.
AssetCode4 is an XDR Typedef defines as: typedef opaque AssetCode4[4];.
AssetType is an XDR Enum defines as: enum AssetType { ASSET_TYPE_NATIVE = 0, ASSET_TYPE_CREDIT_ALPHANUM4 = 1, ASSET_TYPE_CREDIT_ALPHANUM12 = 2, ASSET_TYPE_POOL_SHARE = 3 };.
BeginSponsoringFutureReservesResultCode is an XDR Enum defines as: enum BeginSponsoringFutureReservesResultCode { // codes considered as "success" for the operation BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, // codes considered as "failure" for the operation BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED = -1, BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED = -2, BEGIN_SPONSORING_FUTURE_RESERVES_RECURSIVE = -3 };.
BinaryFuseFilterType is an XDR Enum defines as: enum BinaryFuseFilterType { BINARY_FUSE_FILTER_8_BIT = 0, BINARY_FUSE_FILTER_16_BIT = 1, BINARY_FUSE_FILTER_32_BIT = 2 };.
BucketEntryType is an XDR Enum defines as: enum BucketEntryType { METAENTRY = -1, // At-and-after protocol 11: bucket metadata, should come first.
BucketListType is an XDR Enum defines as: enum BucketListType { LIVE = 0, HOT_ARCHIVE = 1, COLD_ARCHIVE = 2 };.
BumpSequenceResultCode is an XDR Enum defines as: enum BumpSequenceResultCode { // codes considered as "success" for the operation BUMP_SEQUENCE_SUCCESS = 0, // codes considered as "failure" for the operation BUMP_SEQUENCE_BAD_SEQ = -1 // `bumpTo` is not within bounds };.
ChangeTrustResultCode is an XDR Enum defines as: enum ChangeTrustResultCode { // codes considered as "success" for the operation CHANGE_TRUST_SUCCESS = 0, // codes considered as "failure" for the operation CHANGE_TRUST_MALFORMED = -1, // bad input CHANGE_TRUST_NO_ISSUER = -2, // could not find issuer CHANGE_TRUST_INVALID_LIMIT = -3, // cannot drop limit below balance // cannot create with a limit of 0 CHANGE_TRUST_LOW_RESERVE = -4, // not enough funds to create a new trust line, CHANGE_TRUST_SELF_NOT_ALLOWED = -5, // trusting self is not allowed CHANGE_TRUST_TRUST_LINE_MISSING = -6, // Asset trustline is missing for pool CHANGE_TRUST_CANNOT_DELETE = -7, // Asset trustline is still referenced in a pool CHANGE_TRUST_NOT_AUTH_MAINTAIN_LIABILITIES = -8 // Asset trustline is deauthorized };.
ClaimableBalanceFlags is an XDR Enum defines as: enum ClaimableBalanceFlags { // If set, the issuer account of the asset held by the claimable balance may // clawback the claimable balance CLAIMABLE_BALANCE_CLAWBACK_ENABLED_FLAG = 0x1 };.
ClaimableBalanceIdType is an XDR Enum defines as: enum ClaimableBalanceIDType { CLAIMABLE_BALANCE_ID_TYPE_V0 = 0 };.
ClaimantType is an XDR Enum defines as: enum ClaimantType { CLAIMANT_TYPE_V0 = 0 };.
ClaimAtomType is an XDR Enum defines as: enum ClaimAtomType { CLAIM_ATOM_TYPE_V0 = 0, CLAIM_ATOM_TYPE_ORDER_BOOK = 1, CLAIM_ATOM_TYPE_LIQUIDITY_POOL = 2 };.
ClaimClaimableBalanceResultCode is an XDR Enum defines as: enum ClaimClaimableBalanceResultCode { CLAIM_CLAIMABLE_BALANCE_SUCCESS = 0, CLAIM_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1, CLAIM_CLAIMABLE_BALANCE_CANNOT_CLAIM = -2, CLAIM_CLAIMABLE_BALANCE_LINE_FULL = -3, CLAIM_CLAIMABLE_BALANCE_NO_TRUST = -4, CLAIM_CLAIMABLE_BALANCE_NOT_AUTHORIZED = -5 };.
ClaimPredicateType is an XDR Enum defines as: enum ClaimPredicateType { CLAIM_PREDICATE_UNCONDITIONAL = 0, CLAIM_PREDICATE_AND = 1, CLAIM_PREDICATE_OR = 2, CLAIM_PREDICATE_NOT = 3, CLAIM_PREDICATE_BEFORE_ABSOLUTE_TIME = 4, CLAIM_PREDICATE_BEFORE_RELATIVE_TIME = 5 };.
ClawbackClaimableBalanceResultCode is an XDR Enum defines as: enum ClawbackClaimableBalanceResultCode { // codes considered as "success" for the operation CLAWBACK_CLAIMABLE_BALANCE_SUCCESS = 0, // codes considered as "failure" for the operation CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1, CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER = -2, CLAWBACK_CLAIMABLE_BALANCE_NOT_CLAWBACK_ENABLED = -3 };.
ClawbackResultCode is an XDR Enum defines as: enum ClawbackResultCode { // codes considered as "success" for the operation CLAWBACK_SUCCESS = 0, // codes considered as "failure" for the operation CLAWBACK_MALFORMED = -1, CLAWBACK_NOT_CLAWBACK_ENABLED = -2, CLAWBACK_NO_TRUST = -3, CLAWBACK_UNDERFUNDED = -4 };.
ColdArchiveBucketEntryType is an XDR Enum defines as: enum ColdArchiveBucketEntryType { COLD_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first.
ConfigSettingId is an XDR Enum defines as: enum ConfigSettingID { CONFIG_SETTING_CONTRACT_MAX_SIZE_BYTES = 0, CONFIG_SETTING_CONTRACT_COMPUTE_V0 = 1, CONFIG_SETTING_CONTRACT_LEDGER_COST_V0 = 2, CONFIG_SETTING_CONTRACT_HISTORICAL_DATA_V0 = 3, CONFIG_SETTING_CONTRACT_EVENTS_V0 = 4, CONFIG_SETTING_CONTRACT_BANDWIDTH_V0 = 5, CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS = 6, CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES = 7, CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES = 8, CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, CONFIG_SETTING_STATE_ARCHIVAL = 10, CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11, CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12, CONFIG_SETTING_EVICTION_ITERATOR = 13 };.
ContractCostParams is an XDR Typedef defines as: typedef ContractCostParamEntry ContractCostParams<CONTRACT_COST_COUNT_LIMIT>;.
ContractCostType is an XDR Enum defines as: enum ContractCostType { // Cost of running 1 wasm instruction WasmInsnExec = 0, // Cost of allocating a slice of memory (in bytes) MemAlloc = 1, // Cost of copying a slice of bytes into a pre-allocated memory MemCpy = 2, // Cost of comparing two slices of memory MemCmp = 3, // Cost of a host function dispatch, not including the actual work done by // the function nor the cost of VM invocation machinary DispatchHostFunction = 4, // Cost of visiting a host object from the host object storage.
ContractDataDurability is an XDR Enum defines as: enum ContractDataDurability { TEMPORARY = 0, PERSISTENT = 1 };.
ContractEventType is an XDR Enum defines as: enum ContractEventType { SYSTEM = 0, CONTRACT = 1, DIAGNOSTIC = 2 };.
ContractExecutableType is an XDR Enum defines as: enum ContractExecutableType { CONTRACT_EXECUTABLE_WASM = 0, CONTRACT_EXECUTABLE_STELLAR_ASSET = 1 };.
ContractIdPreimageType is an XDR Enum defines as: enum ContractIDPreimageType { CONTRACT_ID_PREIMAGE_FROM_ADDRESS = 0, CONTRACT_ID_PREIMAGE_FROM_ASSET = 1 };.
CreateAccountResultCode is an XDR Enum defines as: enum CreateAccountResultCode { // codes considered as "success" for the operation CREATE_ACCOUNT_SUCCESS = 0, // account was created // codes considered as "failure" for the operation CREATE_ACCOUNT_MALFORMED = -1, // invalid destination CREATE_ACCOUNT_UNDERFUNDED = -2, // not enough funds in source account CREATE_ACCOUNT_LOW_RESERVE = -3, // would create an account below the min reserve CREATE_ACCOUNT_ALREADY_EXIST = -4 // account already exists };.
CreateClaimableBalanceResultCode is an XDR Enum defines as: enum CreateClaimableBalanceResultCode { CREATE_CLAIMABLE_BALANCE_SUCCESS = 0, CREATE_CLAIMABLE_BALANCE_MALFORMED = -1, CREATE_CLAIMABLE_BALANCE_LOW_RESERVE = -2, CREATE_CLAIMABLE_BALANCE_NO_TRUST = -3, CREATE_CLAIMABLE_BALANCE_NOT_AUTHORIZED = -4, CREATE_CLAIMABLE_BALANCE_UNDERFUNDED = -5 };.
CryptoKeyType is an XDR Enum defines as: enum CryptoKeyType { KEY_TYPE_ED25519 = 0, KEY_TYPE_PRE_AUTH_TX = 1, KEY_TYPE_HASH_X = 2, KEY_TYPE_ED25519_SIGNED_PAYLOAD = 3, // MUXED enum values for supported type are derived from the enum values // above by ORing them with 0x100 KEY_TYPE_MUXED_ED25519 = 0x100 };.
DataValue is an XDR Typedef defines as: typedef opaque DataValue<64>;.
DiagnosticEvents is an XDR Typedef defines as: typedef DiagnosticEvent DiagnosticEvents<>;.
Duration is an XDR Typedef defines as: typedef uint64 Duration;.
EncryptedBody is an XDR Typedef defines as: typedef opaque EncryptedBody<64000>;.
EndSponsoringFutureReservesResultCode is an XDR Enum defines as: enum EndSponsoringFutureReservesResultCode { // codes considered as "success" for the operation END_SPONSORING_FUTURE_RESERVES_SUCCESS = 0, // codes considered as "failure" for the operation END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED = -1 };.
EnvelopeType is an XDR Enum defines as: enum EnvelopeType { ENVELOPE_TYPE_TX_V0 = 0, ENVELOPE_TYPE_SCP = 1, ENVELOPE_TYPE_TX = 2, ENVELOPE_TYPE_AUTH = 3, ENVELOPE_TYPE_SCPVALUE = 4, ENVELOPE_TYPE_TX_FEE_BUMP = 5, ENVELOPE_TYPE_OP_ID = 6, ENVELOPE_TYPE_POOL_REVOKE_OP_ID = 7, ENVELOPE_TYPE_CONTRACT_ID = 8, ENVELOPE_TYPE_SOROBAN_AUTHORIZATION = 9 };.
ErrorCode is an XDR Enum defines as: enum ErrorCode { ERR_MISC = 0, // Unspecific error ERR_DATA = 1, // Malformed data ERR_CONF = 2, // Misconfiguration error ERR_AUTH = 3, // Authentication failure ERR_LOAD = 4 // System overloaded };.
ExtendFootprintTtlResultCode is an XDR Enum defines as: enum ExtendFootprintTTLResultCode { // codes considered as "success" for the operation EXTEND_FOOTPRINT_TTL_SUCCESS = 0, // codes considered as "failure" for the operation EXTEND_FOOTPRINT_TTL_MALFORMED = -1, EXTEND_FOOTPRINT_TTL_RESOURCE_LIMIT_EXCEEDED = -2, EXTEND_FOOTPRINT_TTL_INSUFFICIENT_REFUNDABLE_FEE = -3 };.
Hash is an XDR Typedef defines as: typedef opaque Hash[32];.
HostFunctionType is an XDR Enum defines as: enum HostFunctionType { HOST_FUNCTION_TYPE_INVOKE_CONTRACT = 0, HOST_FUNCTION_TYPE_CREATE_CONTRACT = 1, HOST_FUNCTION_TYPE_UPLOAD_CONTRACT_WASM = 2, HOST_FUNCTION_TYPE_CREATE_CONTRACT_V2 = 3 };.
HotArchiveBucketEntryType is an XDR Enum defines as: enum HotArchiveBucketEntryType { HOT_ARCHIVE_METAENTRY = -1, // Bucket metadata, should come first.
InflationResultCode is an XDR Enum defines as: enum InflationResultCode { // codes considered as "success" for the operation INFLATION_SUCCESS = 0, // codes considered as "failure" for the operation INFLATION_NOT_TIME = -1 };.
Int32 is an XDR Typedef defines as: typedef int int32;.
Int64 is an XDR Typedef defines as: typedef hyper int64;.
InvokeHostFunctionResultCode is an XDR Enum defines as: enum InvokeHostFunctionResultCode { // codes considered as "success" for the operation INVOKE_HOST_FUNCTION_SUCCESS = 0, // codes considered as "failure" for the operation INVOKE_HOST_FUNCTION_MALFORMED = -1, INVOKE_HOST_FUNCTION_TRAPPED = -2, INVOKE_HOST_FUNCTION_RESOURCE_LIMIT_EXCEEDED = -3, INVOKE_HOST_FUNCTION_ENTRY_ARCHIVED = -4, INVOKE_HOST_FUNCTION_INSUFFICIENT_REFUNDABLE_FEE = -5 };.
IpAddrType is an XDR Enum defines as: enum IPAddrType { IPv4 = 0, IPv6 = 1 };.
LedgerEntryChanges is an XDR Typedef defines as: typedef LedgerEntryChange LedgerEntryChanges<>;.
LedgerEntryChangeType is an XDR Enum defines as: enum LedgerEntryChangeType { LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger LEDGER_ENTRY_STATE = 3 // value of the entry };.
LedgerEntryType is an XDR Enum defines as: enum LedgerEntryType { ACCOUNT = 0, TRUSTLINE = 1, OFFER = 2, DATA = 3, CLAIMABLE_BALANCE = 4, LIQUIDITY_POOL = 5, CONTRACT_DATA = 6, CONTRACT_CODE = 7, CONFIG_SETTING = 8, TTL = 9 };.
LedgerHeaderFlags is an XDR Enum defines as: enum LedgerHeaderFlags { DISABLE_LIQUIDITY_POOL_TRADING_FLAG = 0x1, DISABLE_LIQUIDITY_POOL_DEPOSIT_FLAG = 0x2, DISABLE_LIQUIDITY_POOL_WITHDRAWAL_FLAG = 0x4 };.
LedgerUpgradeType is an XDR Enum defines as: enum LedgerUpgradeType { LEDGER_UPGRADE_VERSION = 1, LEDGER_UPGRADE_BASE_FEE = 2, LEDGER_UPGRADE_MAX_TX_SET_SIZE = 3, LEDGER_UPGRADE_BASE_RESERVE = 4, LEDGER_UPGRADE_FLAGS = 5, LEDGER_UPGRADE_CONFIG = 6, LEDGER_UPGRADE_MAX_SOROBAN_TX_SET_SIZE = 7 };.
LiquidityPoolDepositResultCode is an XDR Enum defines as: enum LiquidityPoolDepositResultCode { // codes considered as "success" for the operation LIQUIDITY_POOL_DEPOSIT_SUCCESS = 0, // codes considered as "failure" for the operation LIQUIDITY_POOL_DEPOSIT_MALFORMED = -1, // bad input LIQUIDITY_POOL_DEPOSIT_NO_TRUST = -2, // no trust line for one of the // assets LIQUIDITY_POOL_DEPOSIT_NOT_AUTHORIZED = -3, // not authorized for one of the // assets LIQUIDITY_POOL_DEPOSIT_UNDERFUNDED = -4, // not enough balance for one of // the assets LIQUIDITY_POOL_DEPOSIT_LINE_FULL = -5, // pool share trust line doesn't // have sufficient limit LIQUIDITY_POOL_DEPOSIT_BAD_PRICE = -6, // deposit price outside bounds LIQUIDITY_POOL_DEPOSIT_POOL_FULL = -7 // pool reserves are full };.
LiquidityPoolType is an XDR Enum defines as: enum LiquidityPoolType { LIQUIDITY_POOL_CONSTANT_PRODUCT = 0 };.
LiquidityPoolWithdrawResultCode is an XDR Enum defines as: enum LiquidityPoolWithdrawResultCode { // codes considered as "success" for the operation LIQUIDITY_POOL_WITHDRAW_SUCCESS = 0, // codes considered as "failure" for the operation LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1, // bad input LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2, // no trust line for one of the // assets LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED = -3, // not enough balance of the // pool share LIQUIDITY_POOL_WITHDRAW_LINE_FULL = -4, // would go above limit for one // of the assets LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5 // didn't withdraw enough };.
ManageBuyOfferResultCode is an XDR Enum defines as: enum ManageBuyOfferResultCode { // codes considered as "success" for the operation MANAGE_BUY_OFFER_SUCCESS = 0, // codes considered as "failure" for the operation MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling MANAGE_BUY_OFFER_BUY_NO_TRUST = -3, // no trust line for what we're buying MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED = -4, // not authorized to sell MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED = -5, // not authorized to buy MANAGE_BUY_OFFER_LINE_FULL = -6, // can't receive more of what it's buying MANAGE_BUY_OFFER_UNDERFUNDED = -7, // doesn't hold what it's trying to sell MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying // update errors MANAGE_BUY_OFFER_NOT_FOUND = -11, // offerID does not match an existing offer MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer };.
ManageDataResultCode is an XDR Enum defines as: enum ManageDataResultCode { // codes considered as "success" for the operation MANAGE_DATA_SUCCESS = 0, // codes considered as "failure" for the operation MANAGE_DATA_NOT_SUPPORTED_YET = -1, // The network hasn't moved to this protocol change yet MANAGE_DATA_NAME_NOT_FOUND = -2, // Trying to remove a Data Entry that isn't there MANAGE_DATA_LOW_RESERVE = -3, // not enough funds to create a new Data Entry MANAGE_DATA_INVALID_NAME = -4 // Name not a valid string };.
ManageOfferEffect is an XDR Enum defines as: enum ManageOfferEffect { MANAGE_OFFER_CREATED = 0, MANAGE_OFFER_UPDATED = 1, MANAGE_OFFER_DELETED = 2 };.
ManageSellOfferResultCode is an XDR Enum defines as: enum ManageSellOfferResultCode { // codes considered as "success" for the operation MANAGE_SELL_OFFER_SUCCESS = 0, // codes considered as "failure" for the operation MANAGE_SELL_OFFER_MALFORMED = -1, // generated offer would be invalid MANAGE_SELL_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling MANAGE_SELL_OFFER_BUY_NO_TRUST = -3, // no trust line for what we're buying MANAGE_SELL_OFFER_SELL_NOT_AUTHORIZED = -4, // not authorized to sell MANAGE_SELL_OFFER_BUY_NOT_AUTHORIZED = -5, // not authorized to buy MANAGE_SELL_OFFER_LINE_FULL = -6, // can't receive more of what it's buying MANAGE_SELL_OFFER_UNDERFUNDED = -7, // doesn't hold what it's trying to sell MANAGE_SELL_OFFER_CROSS_SELF = -8, // would cross an offer from the same user MANAGE_SELL_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling MANAGE_SELL_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying // update errors MANAGE_SELL_OFFER_NOT_FOUND = -11, // offerID does not match an existing offer MANAGE_SELL_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer };.
MemoType is an XDR Enum defines as: enum MemoType { MEMO_NONE = 0, MEMO_TEXT = 1, MEMO_ID = 2, MEMO_HASH = 3, MEMO_RETURN = 4 };.
MessageType is an XDR Enum defines as: enum MessageType { ERROR_MSG = 0, AUTH = 2, DONT_HAVE = 3, GET_PEERS = 4, // gets a list of peers this guy knows about PEERS = 5, GET_TX_SET = 6, // gets a particular txset by hash TX_SET = 7, GENERALIZED_TX_SET = 17, TRANSACTION = 8, // pass on a tx you have heard about // SCP GET_SCP_QUORUMSET = 9, SCP_QUORUMSET = 10, SCP_MESSAGE = 11, GET_SCP_STATE = 12, // new messages HELLO = 13, SURVEY_REQUEST = 14, SURVEY_RESPONSE = 15, SEND_MORE = 16, SEND_MORE_EXTENDED = 20, FLOOD_ADVERT = 18, FLOOD_DEMAND = 19, TIME_SLICED_SURVEY_REQUEST = 21, TIME_SLICED_SURVEY_RESPONSE = 22, TIME_SLICED_SURVEY_START_COLLECTING = 23, TIME_SLICED_SURVEY_STOP_COLLECTING = 24 };.
NodeId is an XDR Typedef defines as: typedef PublicKey NodeID;.
OfferEntryFlags is an XDR Enum defines as: enum OfferEntryFlags { // an offer with this flag will not act on and take a reverse offer of equal // price PASSIVE_FLAG = 1 };.
OperationResultCode is an XDR Enum defines as: enum OperationResultCode { opINNER = 0, // inner object result is valid opBAD_AUTH = -1, // too few valid signatures / wrong network opNO_ACCOUNT = -2, // source account was not found opNOT_SUPPORTED = -3, // operation not supported at this time opTOO_MANY_SUBENTRIES = -4, // max number of subentries already reached opEXCEEDED_WORK_LIMIT = -5, // operation did too much work opTOO_MANY_SPONSORING = -6 // account is sponsoring too many entries };.
OperationType is an XDR Enum defines as: enum OperationType { CREATE_ACCOUNT = 0, PAYMENT = 1, PATH_PAYMENT_STRICT_RECEIVE = 2, MANAGE_SELL_OFFER = 3, CREATE_PASSIVE_SELL_OFFER = 4, SET_OPTIONS = 5, CHANGE_TRUST = 6, ALLOW_TRUST = 7, ACCOUNT_MERGE = 8, INFLATION = 9, MANAGE_DATA = 10, BUMP_SEQUENCE = 11, MANAGE_BUY_OFFER = 12, PATH_PAYMENT_STRICT_SEND = 13, CREATE_CLAIMABLE_BALANCE = 14, CLAIM_CLAIMABLE_BALANCE = 15, BEGIN_SPONSORING_FUTURE_RESERVES = 16, END_SPONSORING_FUTURE_RESERVES = 17, REVOKE_SPONSORSHIP = 18, CLAWBACK = 19, CLAWBACK_CLAIMABLE_BALANCE = 20, SET_TRUST_LINE_FLAGS = 21, LIQUIDITY_POOL_DEPOSIT = 22, LIQUIDITY_POOL_WITHDRAW = 23, INVOKE_HOST_FUNCTION = 24, EXTEND_FOOTPRINT_TTL = 25, RESTORE_FOOTPRINT = 26 };.
PathPaymentStrictReceiveResultCode is an XDR Enum defines as: enum PathPaymentStrictReceiveResultCode { // codes considered as "success" for the operation PATH_PAYMENT_STRICT_RECEIVE_SUCCESS = 0, // success // codes considered as "failure" for the operation PATH_PAYMENT_STRICT_RECEIVE_MALFORMED = -1, // bad input PATH_PAYMENT_STRICT_RECEIVE_UNDERFUNDED = -2, // not enough funds in source account PATH_PAYMENT_STRICT_RECEIVE_SRC_NO_TRUST = -3, // no trust line on source account PATH_PAYMENT_STRICT_RECEIVE_SRC_NOT_AUTHORIZED = -4, // source not authorized to transfer PATH_PAYMENT_STRICT_RECEIVE_NO_DESTINATION = -5, // destination account does not exist PATH_PAYMENT_STRICT_RECEIVE_NO_TRUST = -6, // dest missing a trust line for asset PATH_PAYMENT_STRICT_RECEIVE_NOT_AUTHORIZED = -7, // dest not authorized to hold asset PATH_PAYMENT_STRICT_RECEIVE_LINE_FULL = -8, // dest would go above their limit PATH_PAYMENT_STRICT_RECEIVE_NO_ISSUER = -9, // missing issuer on one asset PATH_PAYMENT_STRICT_RECEIVE_TOO_FEW_OFFERS = -10, // not enough offers to satisfy path PATH_PAYMENT_STRICT_RECEIVE_OFFER_CROSS_SELF = -11, // would cross one of its own offers PATH_PAYMENT_STRICT_RECEIVE_OVER_SENDMAX = -12 // could not satisfy sendmax };.
PathPaymentStrictSendResultCode is an XDR Enum defines as: enum PathPaymentStrictSendResultCode { // codes considered as "success" for the operation PATH_PAYMENT_STRICT_SEND_SUCCESS = 0, // success // codes considered as "failure" for the operation PATH_PAYMENT_STRICT_SEND_MALFORMED = -1, // bad input PATH_PAYMENT_STRICT_SEND_UNDERFUNDED = -2, // not enough funds in source account PATH_PAYMENT_STRICT_SEND_SRC_NO_TRUST = -3, // no trust line on source account PATH_PAYMENT_STRICT_SEND_SRC_NOT_AUTHORIZED = -4, // source not authorized to transfer PATH_PAYMENT_STRICT_SEND_NO_DESTINATION = -5, // destination account does not exist PATH_PAYMENT_STRICT_SEND_NO_TRUST = -6, // dest missing a trust line for asset PATH_PAYMENT_STRICT_SEND_NOT_AUTHORIZED = -7, // dest not authorized to hold asset PATH_PAYMENT_STRICT_SEND_LINE_FULL = -8, // dest would go above their limit PATH_PAYMENT_STRICT_SEND_NO_ISSUER = -9, // missing issuer on one asset PATH_PAYMENT_STRICT_SEND_TOO_FEW_OFFERS = -10, // not enough offers to satisfy path PATH_PAYMENT_STRICT_SEND_OFFER_CROSS_SELF = -11, // would cross one of its own offers PATH_PAYMENT_STRICT_SEND_UNDER_DESTMIN = -12 // could not satisfy destMin };.
PaymentResultCode is an XDR Enum defines as: enum PaymentResultCode { // codes considered as "success" for the operation PAYMENT_SUCCESS = 0, // payment successfully completed // codes considered as "failure" for the operation PAYMENT_MALFORMED = -1, // bad input PAYMENT_UNDERFUNDED = -2, // not enough funds in source account PAYMENT_SRC_NO_TRUST = -3, // no trust line on source account PAYMENT_SRC_NOT_AUTHORIZED = -4, // source not authorized to transfer PAYMENT_NO_DESTINATION = -5, // destination account does not exist PAYMENT_NO_TRUST = -6, // destination missing a trust line for asset PAYMENT_NOT_AUTHORIZED = -7, // destination not authorized to hold asset PAYMENT_LINE_FULL = -8, // destination would go above their limit PAYMENT_NO_ISSUER = -9 // missing issuer on asset };.
PeerStatList is an XDR Typedef defines as: typedef PeerStats PeerStatList<25>;.
PoolId is an XDR Typedef defines as: typedef Hash PoolID;.
PreconditionType is an XDR Enum defines as: enum PreconditionType { PRECOND_NONE = 0, PRECOND_TIME = 1, PRECOND_V2 = 2 };.
ProofLevel is an XDR Typedef defines as: typedef ArchivalProofNode ProofLevel<>;.
PublicKeyType is an XDR Enum defines as: enum PublicKeyType { PUBLIC_KEY_TYPE_ED25519 = KEY_TYPE_ED25519 };.
RestoreFootprintResultCode is an XDR Enum defines as: enum RestoreFootprintResultCode { // codes considered as "success" for the operation RESTORE_FOOTPRINT_SUCCESS = 0, // codes considered as "failure" for the operation RESTORE_FOOTPRINT_MALFORMED = -1, RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED = -2, RESTORE_FOOTPRINT_INSUFFICIENT_REFUNDABLE_FEE = -3 };.
RevokeSponsorshipResultCode is an XDR Enum defines as: enum RevokeSponsorshipResultCode { // codes considered as "success" for the operation REVOKE_SPONSORSHIP_SUCCESS = 0, // codes considered as "failure" for the operation REVOKE_SPONSORSHIP_DOES_NOT_EXIST = -1, REVOKE_SPONSORSHIP_NOT_SPONSOR = -2, REVOKE_SPONSORSHIP_LOW_RESERVE = -3, REVOKE_SPONSORSHIP_ONLY_TRANSFERABLE = -4, REVOKE_SPONSORSHIP_MALFORMED = -5 };.
RevokeSponsorshipType is an XDR Enum defines as: enum RevokeSponsorshipType { REVOKE_SPONSORSHIP_LEDGER_ENTRY = 0, REVOKE_SPONSORSHIP_SIGNER = 1 };.
ScAddressType is an XDR Enum defines as: enum SCAddressType { SC_ADDRESS_TYPE_ACCOUNT = 0, SC_ADDRESS_TYPE_CONTRACT = 1 };.
ScBytes is an XDR Typedef defines as: typedef opaque SCBytes<>;.
ScEnvMetaKind is an XDR Enum defines as: enum SCEnvMetaKind { SC_ENV_META_KIND_INTERFACE_VERSION = 0 };.
ScErrorCode is an XDR Enum defines as: enum SCErrorCode { SCEC_ARITH_DOMAIN = 0, // Some arithmetic was undefined (overflow, divide-by-zero).
ScErrorType is an XDR Enum defines as: enum SCErrorType { SCE_CONTRACT = 0, // Contract-specific, user-defined codes.
ScMap is an XDR Typedef defines as: typedef SCMapEntry SCMap<>;.
ScMetaKind is an XDR Enum defines as: enum SCMetaKind { SC_META_V0 = 0 };.
ScpStatementType is an XDR Enum defines as: enum SCPStatementType { SCP_ST_PREPARE = 0, SCP_ST_CONFIRM = 1, SCP_ST_EXTERNALIZE = 2, SCP_ST_NOMINATE = 3 };.
ScSpecEntryKind is an XDR Enum defines as: enum SCSpecEntryKind { SC_SPEC_ENTRY_FUNCTION_V0 = 0, SC_SPEC_ENTRY_UDT_STRUCT_V0 = 1, SC_SPEC_ENTRY_UDT_UNION_V0 = 2, SC_SPEC_ENTRY_UDT_ENUM_V0 = 3, SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4 };.
ScSpecType is an XDR Enum defines as: enum SCSpecType { SC_SPEC_TYPE_VAL = 0, // Types with no parameters.
ScSpecUdtUnionCaseV0Kind is an XDR Enum defines as: enum SCSpecUDTUnionCaseV0Kind { SC_SPEC_UDT_UNION_CASE_VOID_V0 = 0, SC_SPEC_UDT_UNION_CASE_TUPLE_V0 = 1 };.
ScString is an XDR Typedef defines as: typedef string SCString<>;.
ScSymbol is an XDR Typedef defines as: typedef string SCSymbol<SCSYMBOL_LIMIT>;.
ScValType is an XDR Enum defines as: enum SCValType { SCV_BOOL = 0, SCV_VOID = 1, SCV_ERROR = 2, // 32 bits is the smallest type in WASM or XDR; no need for u8/u16.
ScVec is an XDR Typedef defines as: typedef SCVal SCVec<>;.
SequenceNumber is an XDR Typedef defines as: typedef int64 SequenceNumber;.
SetOptionsResultCode is an XDR Enum defines as: enum SetOptionsResultCode { // codes considered as "success" for the operation SET_OPTIONS_SUCCESS = 0, // codes considered as "failure" for the operation SET_OPTIONS_LOW_RESERVE = -1, // not enough funds to add a signer SET_OPTIONS_TOO_MANY_SIGNERS = -2, // max number of signers already reached SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option SET_OPTIONS_UNKNOWN_FLAG = -6, // can't set an unknown flag SET_OPTIONS_THRESHOLD_OUT_OF_RANGE = -7, // bad value for weight/threshold SET_OPTIONS_BAD_SIGNER = -8, // signer cannot be masterkey SET_OPTIONS_INVALID_HOME_DOMAIN = -9, // malformed home domain SET_OPTIONS_AUTH_REVOCABLE_REQUIRED = -10 // auth revocable is required for clawback };.
SetTrustLineFlagsResultCode is an XDR Enum defines as: enum SetTrustLineFlagsResultCode { // codes considered as "success" for the operation SET_TRUST_LINE_FLAGS_SUCCESS = 0, // codes considered as "failure" for the operation SET_TRUST_LINE_FLAGS_MALFORMED = -1, SET_TRUST_LINE_FLAGS_NO_TRUST_LINE = -2, SET_TRUST_LINE_FLAGS_CANT_REVOKE = -3, SET_TRUST_LINE_FLAGS_INVALID_STATE = -4, SET_TRUST_LINE_FLAGS_LOW_RESERVE = -5 // claimable balances can't be created // on revoke due to low reserves };.
Signature is an XDR Typedef defines as: typedef opaque Signature<64>;.
SignatureHint is an XDR Typedef defines as: typedef opaque SignatureHint[4];.
SignerKeyType is an XDR Enum defines as: enum SignerKeyType { SIGNER_KEY_TYPE_ED25519 = KEY_TYPE_ED25519, SIGNER_KEY_TYPE_PRE_AUTH_TX = KEY_TYPE_PRE_AUTH_TX, SIGNER_KEY_TYPE_HASH_X = KEY_TYPE_HASH_X, SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD = KEY_TYPE_ED25519_SIGNED_PAYLOAD };.
SorobanAuthorizedFunctionType is an XDR Enum defines as: enum SorobanAuthorizedFunctionType { SOROBAN_AUTHORIZED_FUNCTION_TYPE_CONTRACT_FN = 0, SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_HOST_FN = 1, SOROBAN_AUTHORIZED_FUNCTION_TYPE_CREATE_CONTRACT_V2_HOST_FN = 2 };.
SorobanCredentialsType is an XDR Enum defines as: enum SorobanCredentialsType { SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, SOROBAN_CREDENTIALS_ADDRESS = 1 };.
StellarValueType is an XDR Enum defines as: enum StellarValueType { STELLAR_VALUE_BASIC = 0, STELLAR_VALUE_SIGNED = 1 };.
String32 is an XDR Typedef defines as: typedef string string32<32>;.
String64 is an XDR Typedef defines as: typedef string string64<64>;.
SurveyMessageCommandType is an XDR Enum defines as: enum SurveyMessageCommandType { SURVEY_TOPOLOGY = 0, TIME_SLICED_SURVEY_TOPOLOGY = 1 };.
SurveyMessageResponseType is an XDR Enum defines as: enum SurveyMessageResponseType { SURVEY_TOPOLOGY_RESPONSE_V0 = 0, SURVEY_TOPOLOGY_RESPONSE_V1 = 1, SURVEY_TOPOLOGY_RESPONSE_V2 = 2 };.
ThresholdIndexes is an XDR Enum defines as: enum ThresholdIndexes { THRESHOLD_MASTER_WEIGHT = 0, THRESHOLD_LOW = 1, THRESHOLD_MED = 2, THRESHOLD_HIGH = 3 };.
Thresholds is an XDR Typedef defines as: typedef opaque Thresholds[4];.
TimePoint is an XDR Typedef defines as: typedef uint64 TimePoint;.
TimeSlicedPeerDataList is an XDR Typedef defines as: typedef TimeSlicedPeerData TimeSlicedPeerDataList<25>;.
TransactionResultCode is an XDR Enum defines as: enum TransactionResultCode { txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded txSUCCESS = 0, // all operations succeeded txFAILED = -1, // one of the operations failed (none were applied) txTOO_EARLY = -2, // ledger closeTime before minTime txTOO_LATE = -3, // ledger closeTime after maxTime txMISSING_OPERATION = -4, // no operation was specified txBAD_SEQ = -5, // sequence number does not match source account txBAD_AUTH = -6, // too few valid signatures / wrong network txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve txNO_ACCOUNT = -8, // source account not found txINSUFFICIENT_FEE = -9, // fee is too small txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction txINTERNAL_ERROR = -11, // an unknown error occurred txNOT_SUPPORTED = -12, // transaction type not supported txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed txBAD_SPONSORSHIP = -14, // sponsorship not confirmed txBAD_MIN_SEQ_AGE_OR_GAP = -15, // minSeqAge or minSeqLedgerGap conditions not met txMALFORMED = -16, // precondition is invalid txSOROBAN_INVALID = -17 // soroban-specific preconditions were not met };.
TrustLineFlags is an XDR Enum defines as: enum TrustLineFlags { // issuer has authorized account to perform transactions with its credit AUTHORIZED_FLAG = 1, // issuer has authorized account to maintain and reduce liabilities for its // credit AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG = 2, // issuer has specified that it may clawback its credit, and that claimable // balances created with its credit may also be clawed back TRUSTLINE_CLAWBACK_ENABLED_FLAG = 4 };.
TxAdvertVector is an XDR Typedef defines as: typedef Hash TxAdvertVector<TX_ADVERT_VECTOR_MAX_SIZE>;.
TxDemandVector is an XDR Typedef defines as: typedef Hash TxDemandVector<TX_DEMAND_VECTOR_MAX_SIZE>;.
TxSetComponentType is an XDR Enum defines as: enum TxSetComponentType { // txs with effective fee <= bid derived from a base fee (if any).
Uint256 is an XDR Typedef defines as: typedef opaque uint256[32];.
Uint32 is an XDR Typedef defines as: typedef unsigned int uint32;.
Uint64 is an XDR Typedef defines as: typedef unsigned hyper uint64;.
UpgradeType is an XDR Typedef defines as: typedef opaque UpgradeType<128>;.
Value is an XDR Typedef defines as: typedef opaque Value<>;.