package
0.0.0-20190507022301-b1bd2f5c3845
Repository: https://github.com/gincoinc/go.git
Documentation: pkg.go.dev

# Functions

Marshal writes an xdr element `v` into `w`.
No description provided by the author
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.
NewAccountEntryV1Ext creates a new AccountEntryV1Ext.
NewAccountId creates a new AccountId.
NewAccountMergeResult creates a new AccountMergeResult.
NewAllowTrustOpAsset creates a new AllowTrustOpAsset.
NewAllowTrustResult creates a new AllowTrustResult.
NewAsset creates a new Asset.
NewAuthenticatedMessage creates a new AuthenticatedMessage.
NewBucketEntry creates a new BucketEntry.
NewBucketMetadataExt creates a new BucketMetadataExt.
NewBumpSequenceResult creates a new BumpSequenceResult.
NewChangeTrustResult creates a new ChangeTrustResult.
NewCreateAccountResult creates a new CreateAccountResult.
NewDataEntryExt creates a new DataEntryExt.
NewInflationResult creates a new InflationResult.
NewLedgerEntryChange creates a new LedgerEntryChange.
NewLedgerEntryData creates a new LedgerEntryData.
NewLedgerEntryExt creates a new LedgerEntryExt.
NewLedgerHeaderExt creates a new LedgerHeaderExt.
NewLedgerHeaderHistoryEntryExt creates a new LedgerHeaderHistoryEntryExt.
NewLedgerKey creates a new LedgerKey.
NewLedgerUpgrade creates a new LedgerUpgrade.
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.
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.
NewPathPaymentResult creates a new PathPaymentResult.
NewPaymentResult creates a new PaymentResult.
NewPeerAddressIp creates a new PeerAddressIp.
NewPublicKey creates a new PublicKey.
NewScpHistoryEntry creates a new ScpHistoryEntry.
NewScpStatementPledges creates a new ScpStatementPledges.
NewSetOptionsResult creates a new SetOptionsResult.
NewSignerKey creates a new SignerKey.
NewStellarMessage creates a new StellarMessage.
NewStellarValueExt creates a new StellarValueExt.
NewTransactionExt creates a new TransactionExt.
NewTransactionHistoryEntryExt creates a new TransactionHistoryEntryExt.
NewTransactionHistoryResultEntryExt creates a new TransactionHistoryResultEntryExt.
NewTransactionMeta creates a new TransactionMeta.
NewTransactionResultExt creates a new TransactionResultExt.
NewTransactionResultResult creates a new TransactionResultResult.
NewTransactionSignaturePayloadTaggedTransaction creates a new TransactionSignaturePayloadTaggedTransaction.
NewTrustLineEntryExt creates a new TrustLineEntryExt.
NewTrustLineEntryV1Ext creates a new TrustLineEntryV1Ext.
SafeUnmarshal decodes the provided reader into the destination and verifies that provided bytes are all consumed by the unmarshalling process.
SafeUnmarshalBase64 first decodes the provided reader from base64 before decoding the xdr into the provided destination.
Unmarshal reads an xdr element from `r` into `v`.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaskAccountFlags is an XDR Const defines as: const MASK_ACCOUNT_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; .
MaxOpsPerTx is an XDR Const defines as: const MAX_OPS_PER_TX = 100; .
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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<20>; // possible signers for this account // reserved for future use union switch (int v) { case 0: void; case 1: struct { Liabilities liabilities; union switch (int v) { case 0: void; } ext; } v1; } ext; }; .
AccountEntryExt 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; } ext; } v1; } .
AccountEntryV1 is an XDR NestedStruct defines as: struct { Liabilities liabilities; union switch (int v) { case 0: void; } ext; } .
AccountEntryV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; } .
AccountMergeResult is an XDR Union defines as: union AccountMergeResult switch (AccountMergeResultCode code) { case ACCOUNT_MERGE_SUCCESS: int64 sourceAccountBalance; // how much got transfered from source account default: void; }; .
AllowTrustOp is an XDR Struct defines as: struct AllowTrustOp { AccountID trustor; union switch (AssetType type) { // ASSET_TYPE_NATIVE is not allowed case ASSET_TYPE_CREDIT_ALPHANUM4: opaque assetCode4[4]; case ASSET_TYPE_CREDIT_ALPHANUM12: opaque assetCode12[12]; // add other asset types here in the future } asset; bool authorize; }; .
AllowTrustOpAsset is an XDR NestedUnion defines as: union switch (AssetType type) { // ASSET_TYPE_NATIVE is not allowed case ASSET_TYPE_CREDIT_ALPHANUM4: opaque assetCode4[4]; case ASSET_TYPE_CREDIT_ALPHANUM12: opaque assetCode12[12]; // add other asset types here in the future } .
AllowTrustResult is an XDR Union defines as: union AllowTrustResult switch (AllowTrustResultCode code) { case ALLOW_TRUST_SUCCESS: void; default: void; }; .
Asset is an XDR Union defines as: union Asset switch (AssetType type) { case ASSET_TYPE_NATIVE: // Not credit void; case ASSET_TYPE_CREDIT_ALPHANUM4: struct { opaque assetCode[4]; // 1 to 4 characters AccountID issuer; } alphaNum4; case ASSET_TYPE_CREDIT_ALPHANUM12: struct { opaque assetCode[12]; // 5 to 12 characters AccountID issuer; } alphaNum12; // add other asset types here in the future }; .
AssetAlphaNum12 is an XDR NestedStruct defines as: struct { opaque assetCode[12]; // 5 to 12 characters AccountID issuer; } .
AssetAlphaNum4 is an XDR NestedStruct defines as: struct { opaque assetCode[4]; // 1 to 4 characters AccountID issuer; } .
Auth is an XDR Struct defines as: struct Auth { // Empty message, just to confirm // establishment of MAC keys.
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; } .
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; } .
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; default: void; }; .
ChangeTrustOp is an XDR Struct defines as: struct ChangeTrustOp { Asset 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; default: void; }; .
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; }; .
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; default: void; }; .
CreatePassiveSellOfferOp is an XDR Struct defines as: struct CreatePassiveSellOfferOp { Asset selling; // A Asset buying; // B int64 amount; // amount taker gets.
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 }; .
DontHave is an XDR Struct defines as: struct DontHave { MessageType type; uint256 reqHash; }; .
Error is an XDR Struct defines as: struct Error { ErrorCode code; string msg<100>; }; .
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]; }; .
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<>; default: void; }; .
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; } data; // reserved for future use union switch (int v) { case 0: void; } 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; } .
LedgerEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; } .
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; } .
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; Asset asset; } trustLine; case OFFER: struct { AccountID sellerID; int64 offerID; } offer; case DATA: struct { AccountID accountID; string64 dataName; } data; }; .
LedgerKeyAccount is an XDR NestedStruct defines as: struct { AccountID accountID; } .
LedgerKeyData is an XDR NestedStruct defines as: struct { AccountID accountID; string64 dataName; } .
LedgerKeyOffer is an XDR NestedStruct defines as: struct { AccountID sellerID; int64 offerID; } .
LedgerKeyTrustLine is an XDR NestedStruct defines as: struct { AccountID accountID; Asset asset; } .
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 }; .
Liabilities is an XDR Struct defines as: struct Liabilities { int64 buying; int64 selling; }; .
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; default: 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; default: void; }; .
ManageOfferSuccessResult is an XDR Struct defines as: struct ManageOfferSuccessResult { // offers that got claimed while creating this offer ClaimOfferAtom offersClaimed<>; union switch (ManageOfferEffect effect) { case MANAGE_OFFER_CREATED: case MANAGE_OFFER_UPDATED: OfferEntry offer; default: void; } offer; }; .
ManageOfferSuccessResultOffer is an XDR NestedUnion defines as: union switch (ManageOfferEffect effect) { case MANAGE_OFFER_CREATED: case MANAGE_OFFER_UPDATED: OfferEntry offer; default: 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; default: 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 }; .
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 AccountID* sourceAccount; union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT: PathPaymentOp pathPaymentOp; 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: AccountID destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; } body; }; .
OperationBody is an XDR NestedUnion defines as: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountOp createAccountOp; case PAYMENT: PaymentOp paymentOp; case PATH_PAYMENT: PathPaymentOp pathPaymentOp; 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: AccountID destination; case INFLATION: void; case MANAGE_DATA: ManageDataOp manageDataOp; case BUMP_SEQUENCE: BumpSequenceOp bumpSequenceOp; case MANAGE_BUY_OFFER: ManageBuyOfferOp manageBuyOfferOp; } .
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: PathPaymentResult pathPaymentResult; 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; } tr; default: void; }; .
OperationResultTr is an XDR NestedUnion defines as: union switch (OperationType type) { case CREATE_ACCOUNT: CreateAccountResult createAccountResult; case PAYMENT: PaymentResult paymentResult; case PATH_PAYMENT: PathPaymentResult pathPaymentResult; 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; } .
PathPaymentOp is an XDR Struct defines as: struct PathPaymentOp { Asset sendAsset; // asset we pay with int64 sendMax; // the maximum amount of sendAsset to // send (excluding fees).
PathPaymentResult is an XDR Union defines as: union PathPaymentResult switch (PathPaymentResultCode code) { case PATH_PAYMENT_SUCCESS: struct { ClaimOfferAtom offers<>; SimplePaymentResult last; } success; case PATH_PAYMENT_NO_ISSUER: Asset noIssuer; // the asset that caused the error default: void; }; .
PathPaymentResultSuccess is an XDR NestedStruct defines as: struct { ClaimOfferAtom offers<>; SimplePaymentResult last; } .
PaymentOp is an XDR Struct defines as: struct PaymentOp { AccountID 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; default: 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]; } .
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; }; .
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; PublicKey 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 } .
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; default: void; }; .
Signer is an XDR Struct defines as: struct Signer { SignerKey key; uint32 weight; // really only need 1byte }; .
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; }; .
SimplePaymentResult is an XDR Struct defines as: struct SimplePaymentResult { AccountID destination; Asset asset; int64 amount; }; .
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 TRANSACTION: TransactionEnvelope transaction; // 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 }; .
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 (int v) { case STELLAR_VALUE_BASIC: void; case STELLAR_VALUE_SIGNED: LedgerCloseValueSignature lcValueSignature; } .
TimeBounds is an XDR Struct defines as: struct TimeBounds { TimePoint minTime; TimePoint maxTime; // 0 here means no maxTime }; .
Transaction is an XDR Struct defines as: struct Transaction { // account used to run the transaction AccountID sourceAccount; // the fee the sourceAccount will pay uint32 fee; // sequence number to consume in the account SequenceNumber seqNum; // validity range (inclusive) for the last ledger close time TimeBounds* timeBounds; Memo memo; Operation operations<MAX_OPS_PER_TX>; // reserved for future use union switch (int v) { case 0: void; } ext; }; .
TransactionEnvelope is an XDR Struct defines as: struct TransactionEnvelope { Transaction tx; /* Each decorated signature is a signature over the SHA256 hash of * a TransactionSignaturePayload */ DecoratedSignature signatures<20>; }; .
TransactionExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; } .
TransactionHistoryEntry is an XDR Struct defines as: struct TransactionHistoryEntry { uint32 ledgerSeq; TransactionSet txSet; // reserved for future use union switch (int v) { case 0: void; } ext; }; .
TransactionHistoryEntryExt is an XDR NestedUnion defines as: union switch (int v) { case 0: void; } .
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; }; .
TransactionMetaV1 is an XDR Struct defines as: struct TransactionMetaV1 { LedgerEntryChanges txChanges; // tx level changes if any OperationMeta operations<>; // meta for each operation }; .
TransactionResult is an XDR Struct defines as: struct TransactionResult { int64 feeCharged; // actual fee charged for the transaction union switch (TransactionResultCode code) { case txSUCCESS: case txFAILED: OperationResult results<>; default: 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; } .
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 txSUCCESS: case txFAILED: OperationResult results<>; default: 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<>; }; .
TransactionSignaturePayload is an XDR Struct defines as: struct TransactionSignaturePayload { Hash networkId; union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: Transaction tx; /* All other values of type are invalid */ } taggedTransaction; }; .
TransactionSignaturePayloadTaggedTransaction is an XDR NestedUnion defines as: union switch (EnvelopeType type) { case ENVELOPE_TYPE_TX: Transaction tx; /* All other values of type are invalid */ } .
TrustLineEntry is an XDR Struct defines as: struct TrustLineEntry { AccountID accountID; // account this trustline belongs to Asset 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; } ext; } v1; } .
TrustLineEntryV1 is an XDR NestedStruct defines as: struct { Liabilities liabilities; union switch (int v) { case 0: void; } ext; } .
TrustLineEntryV1Ext is an XDR NestedUnion defines as: union switch (int v) { case 0: void; } .

# 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 }; .
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 }; .
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 }; .
AssetType is an XDR Enum defines as: enum AssetType { ASSET_TYPE_NATIVE = 0, ASSET_TYPE_CREDIT_ALPHANUM4 = 1, ASSET_TYPE_CREDIT_ALPHANUM12 = 2 }; .
BucketEntryType is an XDR Enum defines as: enum BucketEntryType { METAENTRY = -1, // At-and-after protocol 11: bucket metadata, should come first.
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 }; .
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 }; .
CryptoKeyType is an XDR Enum defines as: enum CryptoKeyType { KEY_TYPE_ED25519 = 0, KEY_TYPE_PRE_AUTH_TX = 1, KEY_TYPE_HASH_X = 2 }; .
DataValue is an XDR Typedef defines as: typedef opaque DataValue<64>; .
EnvelopeType is an XDR Enum defines as: enum EnvelopeType { ENVELOPE_TYPE_SCP = 1, ENVELOPE_TYPE_TX = 2, ENVELOPE_TYPE_AUTH = 3, ENVELOPE_TYPE_SCPVALUE = 4 }; .
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 }; .
Hash is an XDR Typedef defines as: typedef opaque Hash[32]; .
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; .
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 }; .
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 }; .
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, 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 }; .
NodeId is an XDR Typedef defines as: typedef PublicKey NodeID; .
OfferEntryFlags is an XDR Enum defines as: enum OfferEntryFlags { // issuer has authorized account to perform transactions with its credit 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 }; .
OperationType is an XDR Enum defines as: enum OperationType { CREATE_ACCOUNT = 0, PAYMENT = 1, PATH_PAYMENT = 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 }; .
PathPaymentResultCode is an XDR Enum defines as: enum PathPaymentResultCode { // codes considered as "success" for the operation PATH_PAYMENT_SUCCESS = 0, // success // codes considered as "failure" for the operation PATH_PAYMENT_MALFORMED = -1, // bad input PATH_PAYMENT_UNDERFUNDED = -2, // not enough funds in source account PATH_PAYMENT_SRC_NO_TRUST = -3, // no trust line on source account PATH_PAYMENT_SRC_NOT_AUTHORIZED = -4, // source not authorized to transfer PATH_PAYMENT_NO_DESTINATION = -5, // destination account does not exist PATH_PAYMENT_NO_TRUST = -6, // dest missing a trust line for asset PATH_PAYMENT_NOT_AUTHORIZED = -7, // dest not authorized to hold asset PATH_PAYMENT_LINE_FULL = -8, // dest would go above their limit PATH_PAYMENT_NO_ISSUER = -9, // missing issuer on one asset PATH_PAYMENT_TOO_FEW_OFFERS = -10, // not enough offers to satisfy path PATH_PAYMENT_OFFER_CROSS_SELF = -11, // would cross one of its own offers PATH_PAYMENT_OVER_SENDMAX = -12 // could not satisfy sendmax }; .
PaymentResultCode is an XDR Enum defines as: enum PaymentResultCode { // codes considered as "success" for the operation PAYMENT_SUCCESS = 0, // payment successfuly 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 }; .
PublicKeyType is an XDR Enum defines as: enum PublicKeyType { PUBLIC_KEY_TYPE_ED25519 = KEY_TYPE_ED25519 }; .
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 }; .
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 }; .
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 }; .
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>; .
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; .
TransactionResultCode is an XDR Enum defines as: enum TransactionResultCode { 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 occured }; .
TrustLineFlags is an XDR Enum defines as: enum TrustLineFlags { // issuer has authorized account to perform transactions with its credit AUTHORIZED_FLAG = 1 }; .
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<>; .