Skip to content

📝 Refresh six classic guides #723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 130 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
130 commits
Select commit Hold shift + click to select a range
a125983
🔁 Channel accounts: explain resolutions
JFWooten4 Jun 20, 2024
01424db
🔁 Channel accounts: simplify narrative
JFWooten4 Jun 22, 2024
37e38c3
🔁 Channel accounts: specify cards
JFWooten4 Jun 23, 2024
9ed2a0a
🔁 Channel accounts: finalize visuals
JFWooten4 Jun 23, 2024
44309a2
🔁 Channel accounts: simplify narrative
JFWooten4 Jun 26, 2024
dd7d761
🔁 Channel accounts: expand details
JFWooten4 Jun 26, 2024
c4a46dc
Merge branch 'stellar:main' into refresh-classic-guides
JFWooten4 Jul 5, 2024
68f165d
🔁 Channel accounts: hyperlinks, context
JFWooten4 Jul 7, 2024
07e613a
🔁 Channel accounts: initial diagrams
JFWooten4 Jul 9, 2024
bf6e15f
🔁 Channel accounts: reference configuration
JFWooten4 Jul 9, 2024
15d1288
🔁 Channel accounts: KaTeX formatting
JFWooten4 Jul 10, 2024
b874bc7
🔁 Channel accounts: context, links
JFWooten4 Jul 10, 2024
e290fb3
🔁 Channel accounts: conceptual images
JFWooten4 Jul 12, 2024
1f8a904
🔁 Channel accounts: simplify image
JFWooten4 Jul 12, 2024
46f49c6
🔁 Channel accounts: prioritize readability
JFWooten4 Jul 14, 2024
3f2e731
🔁 Channel accounts: overload example
JFWooten4 Jul 14, 2024
8a3d963
🔁 Channel accounts: configuration example
JFWooten4 Jul 15, 2024
cd7f447
🫴🏽 Claimable balances: first example
JFWooten4 Jul 18, 2024
e2248db
🫴🏽 Claimable balances: second example
JFWooten4 Jul 29, 2024
1992240
🫴🏽 Claimable balances: third example
JFWooten4 Jul 29, 2024
ee6175a
🫴🏽 Claimable balances: expand precomputation
JFWooten4 Aug 2, 2024
95ffe3c
🔎 Refresh: asset design considerations
JFWooten4 Aug 5, 2024
d93ae63
🦞 Clawbacks: confer readable diction
JFWooten4 Aug 5, 2024
e1611fc
🦞 Clawbacks: minor example diction
JFWooten4 Aug 5, 2024
03ac66d
🦞 Clawbacks: format account names
JFWooten4 Aug 5, 2024
86f3ca8
🦞 Clawbacks: format more names
JFWooten4 Aug 5, 2024
d1a9252
🦞 Clawbacks: apply name diction
JFWooten4 Aug 5, 2024
eb0e9be
🦞 Clawbacks: translate preamble example
JFWooten4 Aug 6, 2024
f4ad468
🦞 Clawbacks: expand example one
JFWooten4 Aug 6, 2024
e72e4a8
🦞 Clawbacks: translate next instances
JFWooten4 Aug 6, 2024
09fa456
🦞 Clawbacks: continue example dev
JFWooten4 Aug 6, 2024
b3e3230
💱 Trading examples: add lumenaut
JFWooten4 Aug 8, 2024
ee66e13
⏬ Prep for GH sync
JFWooten4 Aug 12, 2024
364f656
Merge remote-tracking branch 'upstream/main' into refresh-classic-guides
JFWooten4 Aug 12, 2024
6e866b7
Merge remote-tracking branch 'upstream/main' into refresh-classic-guides
JFWooten4 Aug 21, 2024
080ec03
💱 Trading examples: clarify narrative
JFWooten4 Sep 13, 2024
b529869
💱 Trading examples: contextualize sources
JFWooten4 Sep 13, 2024
127142e
↕️ Merge branch with self
JFWooten4 Sep 13, 2024
fea178f
🙌 Missed a reference link
JFWooten4 Sep 13, 2024
1a12877
💱 Trading examples: sell offers
JFWooten4 Sep 16, 2024
550b941
💱 Trading examples: level two
JFWooten4 Sep 16, 2024
fff2713
💱 Trading examples: time & sales
JFWooten4 Sep 16, 2024
06d249d
Merge remote-tracking branch 'upstream/main' into refresh-classic-guides
JFWooten4 Sep 30, 2024
4658706
🔁 Sync, move work items
JFWooten4 Sep 30, 2024
760d423
🔁 Clarify channel context links
JFWooten4 Oct 1, 2024
3d30353
🔁 Further advance text flow
JFWooten4 Oct 4, 2024
f6691fa
🔁 Start last code examples
JFWooten4 Oct 7, 2024
b273d71
🔁 Remove random channel generation
JFWooten4 Oct 7, 2024
954210d
🔁 Rest of authorization example
JFWooten4 Oct 7, 2024
ce8d61e
🔁 Remove adding channel custody
JFWooten4 Oct 7, 2024
7cb4b01
🔁 Clear up last tasks
JFWooten4 Oct 7, 2024
56c608a
🔁 Start state rotation example
JFWooten4 Oct 7, 2024
f83f4ad
🔁 Temporary merge, nonfinal publication
JFWooten4 Oct 11, 2024
1a91082
🔗 Minimum compilation link requirements
JFWooten4 Oct 15, 2024
11555a0
🖌️ Prettier compilation demo fixes
JFWooten4 Oct 15, 2024
d521205
🔁 Clarify base fee, miscellaneous 🤝🏻
JFWooten4 Oct 16, 2024
33f342e
Merge branch 'stellar:main' into refresh-classic-guides
JFWooten4 Oct 17, 2024
09fffca
👽 Translate java to JS
JFWooten4 Oct 19, 2024
03d2199
🔁 Last example java & go
JFWooten4 Oct 22, 2024
1c8851d
Merge branch 'stellar:main' into refresh-classic-guides
JFWooten4 Oct 22, 2024
cb9687a
🔁 Closing example explanation, diagrams
JFWooten4 Oct 22, 2024
06183cc
🔁 Put back `set timeouts`
JFWooten4 Oct 22, 2024
cbe3aca
🔁 Cleanup remaining frame items
JFWooten4 Oct 23, 2024
b45f8b2
🔁 Comment active-tense transitive verbs
JFWooten4 Oct 23, 2024
a73d966
🔁 Finalize the story flow
JFWooten4 Oct 23, 2024
a3c5d64
🔁 Polish off minor syntax
JFWooten4 Oct 23, 2024
eac05da
🔗 Remove depricated community link
JFWooten4 Oct 27, 2024
91b40fd
🔎 Clarify note on trustlines
JFWooten4 Oct 27, 2024
7109cb5
🫴🏽 Finish most cleaning up
JFWooten4 Nov 4, 2024
320de48
Merge branch 'main' into refresh-classic-guides
JFWooten4 Nov 4, 2024
0948700
🔗 Update simplified syntax reference
JFWooten4 Nov 4, 2024
19fbf45
🦞 Clean up final examples
JFWooten4 Nov 4, 2024
75a3ea0
💱 Remove items explicitly moved
JFWooten4 Nov 5, 2024
9bc3c63
💱 Remove duplicate placeholder drafts
JFWooten4 Nov 5, 2024
2a2638c
💱 Sidebar section intro description
JFWooten4 Nov 5, 2024
9d01898
💱 First rewrite run through
JFWooten4 Nov 6, 2024
32455bb
💱 Clean up scaffolding leftovers
JFWooten4 Nov 19, 2024
da7e8a3
💱 Translate starting AMM preamble
JFWooten4 Nov 19, 2024
a5c1874
💱 Capital pool > liquidity pool
JFWooten4 Nov 19, 2024
f8a304f
💱 Translate two AMM steps
JFWooten4 Nov 20, 2024
535b09b
📍 Follow up on this
JFWooten4 Nov 24, 2024
be7abb0
💱 Translate removing AMM liquidity
JFWooten4 Nov 24, 2024
eb18115
💱 Translate Java wrap-up example
JFWooten4 Nov 24, 2024
f871bab
💱 Last legacy, 535b09babed7a2afef37d58250f13ff01c2544fa fix
JFWooten4 Nov 24, 2024
b7f4a07
💱 Clean up go conclusion
JFWooten4 Nov 24, 2024
5492eb3
📌 Simplify starting frame, independence
JFWooten4 Nov 24, 2024
80784d8
💱 Seperate preliminary config, example
JFWooten4 Nov 25, 2024
f1a50e2
🖌️ Update prettier config note
JFWooten4 Nov 26, 2024
a4bdaeb
💱 Optimize, clarify global declarations
JFWooten4 Nov 26, 2024
ddd80c6
Merge branch 'main' into refresh-classic-guides
JFWooten4 Dec 6, 2024
81efcf5
💱 DEX code examples setup
JFWooten4 Dec 8, 2024
c7865bb
💱 Initial sell offer examples
JFWooten4 Dec 8, 2024
1f31ba4
💱 Example resolving limit OB
JFWooten4 Dec 8, 2024
34fb3b0
💱 Pricing point local calculation
JFWooten4 Dec 9, 2024
8417495
💱 Start prepping final flow
JFWooten4 Dec 10, 2024
d6d2335
💱 Continue on the intro
JFWooten4 Dec 11, 2024
2dc7db6
💱 Start of execution chat
JFWooten4 Dec 12, 2024
7f9bdc6
💱 Migrate some ancillary points
JFWooten4 Dec 12, 2024
909911a
💱 Introduce the OB outreach
JFWooten4 Dec 12, 2024
62b35af
💱 Translate pricing calculation examples
JFWooten4 Dec 13, 2024
24e3bb4
🖋 Some primative punctuation upgrades
JFWooten4 Dec 31, 2024
59d3686
💱 Remove elementary explanation diction
JFWooten4 Dec 31, 2024
873423e
Merge branch 'refresh-classic-guides' of https://github.com/JFWooten4…
JFWooten4 Dec 31, 2024
49477f8
🐛 Reinstate space line seperators
JFWooten4 Dec 31, 2024
2cbe9ab
Merge branch 'refresh-classic-guides' of https://github.com/JFWooten4…
JFWooten4 Dec 31, 2024
a7e985b
Merge branch 'main' into refresh-classic-guides
JFWooten4 Jan 17, 2025
25dcb88
✏ Operations as complete(r) sentences
JFWooten4 Jan 17, 2025
fae66ef
📊 Upgrade Dashboard API version
JFWooten4 Jan 31, 2025
babb3ad
Merge branch 'main' into refresh-classic-guides
JFWooten4 Feb 21, 2025
baa3ef0
Merge https://github.com/stellar/stellar-docs into refresh-classic-gu…
JFWooten4 Mar 26, 2025
770fbc9
🐛 git merge extra line
JFWooten4 Mar 26, 2025
66d54a6
💱 First terminus run through
JFWooten4 Mar 27, 2025
f2ef1f4
💱 Second terminus run through
JFWooten4 Apr 2, 2025
a3b7dcd
💱 Small example bug TODOs
JFWooten4 Apr 2, 2025
598fa8b
🐛 compilation bug fixes, hrefs
JFWooten4 Apr 7, 2025
63be545
💱 Add pending relevant backlinks
JFWooten4 Apr 8, 2025
a8e0831
🐛yarn fixes, format checks
JFWooten4 Apr 20, 2025
8976161
🐜 Reformat the operations page
JFWooten4 Apr 20, 2025
24daa5e
💱 narrative done; last technicals
JFWooten4 May 13, 2025
ebf96f4
🤷‍♂️ a lot of prettier-ness
JFWooten4 May 13, 2025
d5ff964
💱 remove rest of politics
JFWooten4 May 14, 2025
2379abf
💱 trim down until SD1545
JFWooten4 May 14, 2025
388e694
💱 subsection for offerID resolution
JFWooten4 May 15, 2025
2342304
🐞 Active tense on index
JFWooten4 May 15, 2025
a2f8847
💱 limited pathfiding explanation for example
JFWooten4 May 28, 2025
2b37b58
💱 Minimumm viable path payments
JFWooten4 May 28, 2025
ffce0c5
💱 setup for solo PP workj
JFWooten4 May 31, 2025
c3933e0
💱 simplify start off PP
JFWooten4 Jun 1, 2025
9bc41c9
💱 PP; simplyifing path diction
JFWooten4 Jun 1, 2025
0510f43
💱 Simply Liquidity Horizon Documentation
JFWooten4 Jun 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
#!/bin/bash

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

if ! nvm use 22 >/dev/null 2>&1; then
echo "⚠️ Node v22 not installed. Skipping formatting check."
exit 0
fi

G='\033[0;32m'
P='\033[0;35m'
CLEAN='\033[0;0m'

yarn run check:mdx || (echo -e "${G}Hint:${CLEAN} execute ${P}yarn run format:mdx${CLEAN} to format files" && exit 1)
if command -v yarn >/dev/null 2>&1; then
CHECK_OUTPUT=$(yarn run check:mdx 2>&1)
STATUS=$?

if echo "$CHECK_OUTPUT" | grep -q 'The engine "node" is incompatible with this module'; then
echo -e "${G}Warning:${CLEAN} Node version mismatch. Skipping formatting check."
exit 0
fi

if [ "$STATUS" -ne 0 ]; then
echo "$CHECK_OUTPUT"
echo -e "${G}Hint:${CLEAN} Run ${P}yarn run format:mdx${CLEAN} to fix formatting."
exit 1
fi

else
echo -e "${G}Hint:${CLEAN} Yarn not installed. Skipping formatting check."
exit 0
fi
4 changes: 1 addition & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
module.exports = {
...require("@stellar/prettier-config"),
// This is mostly content, and prose wrap has a way of exploding markdown
// diffs. Override the default for a better experience.
overrides: [
{
files: "*.mdx",
options: {
proseWrap: "never",
proseWrap: "never", // Minimize `mdx` diffs with simpler content lines
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/build/apps/moneygram-access-integration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Many cryptocurrency exchanges support purchasing XLM or USDC on Stellar. The SDF

When you’ve purchased XLM and / or USDC on an exchange, you can make a payment to an external account, specifically to the funds public key you generated in the previous step. Note that you will first need to send XLM to create the account, then add a USDC [trustline], then send the USDC. Creating a trustline to USDC can be done using [Stellar Lab] or any Stellar-enabled wallet application, such as [Lobstr].

Some exchanges support XLM but do not support USDC on Stellar. This is not a problem, because you can always sell XLM for USDC on Stellar’s decentralized exchange (or SDEX).
Some exchanges support XLM but do not support USDC on Stellar. This is not a problem, because you can always sell XLM for USDC on [Stellar’s decentralized exchange](../../learn/encyclopedia/sdex/README.mdx).

To do this, send your XLM to the funds public key from the exchange, add a USDC trustline, and sell XLM for USDC using a [sell offer].

Expand Down
2 changes: 1 addition & 1 deletion docs/build/apps/wallet/sep24.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Header from "./component/header.mdx";

<Header />

The [SEP-24] standard defines the standard way for anchors and wallets to interact on behalf of users. Wallets use this standard to facilitate exchanges between on-chain assets (such as stablecoins) and off-chain assets (such as fiat, or other network assets such as BTC).
The [SEP-24] standard defines the standard way for anchors and wallets to interact on behalf of users. Wallets use this standard to facilitate exchanges between on-chain assets (such as stablecoins) and off-chain assets (such as fiat or other crypto networks).

During the flow, a wallet makes several requests to the anchor, and finally receives an interactive URL to open in iframe. This URL is used by the user to provide an input (such as KYC) directly to the anchor. Finally, the wallet can fetch transaction information using query endpoints.

Expand Down
2 changes: 1 addition & 1 deletion docs/build/apps/wallet/sep6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Header from "./component/header.mdx";

<Header WIPLangs={["kotlin"]} />

The [SEP-6] standard defines a way for anchors and wallets to interact on behalf of users. Wallets use this standard to facilitate exchanges between on-chain assets (such as stablecoins) and off-chain assets (such as fiat, or other network assets such as BTC).
The [SEP-6] standard defines a way for anchors and wallets to interact on behalf of users. Wallets use this standard to facilitate exchanges between on-chain assets (such as stablecoins) and off-chain assets (such as fiat or other crypto networks).

Please note, this is for _programmatic_ deposits and withdrawals. For hosted deposits and withdrawals, where the anchor interacts with wallets interactively using a popup, please see [Hosted Deposit and Withdrawal](./sep24.mdx).

Expand Down
22 changes: 11 additions & 11 deletions docs/build/guides/storage/use-temporary.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ hide_table_of_contents: true
description: Temporary storage is useful for a contract to store data that can quickly become irrelevant or out-dated
---

Temporary storage is useful for a contract to store data that can quickly become irrelevant or out-dated. For example, here's how a contract might be used to store a recent price of BTC against the US Dollar.
Temporary storage is useful for a contract to store data that can quickly become irrelevant or out-dated. For example, here's how a contract might be used to store a recent price of AstroPesos against AstroDollars.

```rust
// This function updates the BTC price
pub fn update_btc_price(env: Env, price: i128) {
env.storage().temporary().set(&!symbol_short("BTC"), &price);
// This function updates the PEN price
pub fn update_pen_price(env: Env, price: i128) {
env.storage().temporary().set(&!symbol_short("PEN"), &price);
}

// This function reads and returns the current BTC price (zero if the storage
// This function reads and returns the current PEN price (zero if the storage
// entry is archived)
pub fn get_btc_price(env: Env) -> i128 {
if let Some(price) = env.storage().temporary().get(&!symbol_short("BTC")) {
price
} else {
0
}
pub fn get_pen_price(env: Env) -> i128 {
if let Some(price) = env.storage().temporary().get(&!symbol_short("PEN")) {
price
} else {
0
}
}
```
2 changes: 1 addition & 1 deletion docs/build/guides/tokens/stellar-asset-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ client.mint(...);

## Testing

Soroban Rust SDK provides an easy way to instantiate a Stellar Asset Contract tokens using `register_stellar_asset_contract_v2`. This function can be seen as the deployment of a generic token. It also allows you to manipulate flags on the issuer account like `AUTH_REVOCABLE` and `AUTH_REQUIRED`. In the following example, we are following the best practices outlined in the [Issuing and Distribution Accounts section](../../../tokens/control-asset-access.mdx#issuing-and-distribution-accounts):
Soroban Rust SDK provides an easy way to instantiate a Stellar Asset Contract tokens using `register_stellar_asset_contract_v2`. This function can be seen as the deployment of a generic token. It also allows you to manipulate flags on the issuer account like `AUTH_REVOCABLE` and `AUTH_REQUIRED`. In the following example, we are following the best practices outlined in the [Issuing and Distribution Accounts section](../../../tokens/control-asset-access.mdx#issuer-and-distributor-accounts):

```rust
#![cfg(test)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Custom accounts are exclusive to Soroban and can't be used to perform other Stel

:::danger

Implementing a custom account contract requires a very good understanding of authentication and authorization and requires rigorous testing and review. The example here is _not_ a full-fledged account contract - use it as an API reference only.
Implementing a custom account contract requires a very good understanding of authentication and authorization and requires rigorous testing and review. The example here is _not_ a full-fledged account contract; use it as an API reference only.

:::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ where true

Offers are statements about how much of an asset an account wants to buy or sell.

Learn more about [offers](../../../../learn/glossary.mdx#decentralized-exchange).
Learn more about [offers](../../../../learn/glossary.mdx#offers).

### List All Offers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

An order book is a collection of offers for a specific pair of assets.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

Learn more about [order books](../../../../../../learn/glossary.mdx#decentralized-exchange).
_See_ [Liquidity on Stellar Encyclopedia Entry: the Unified Orderbook](../../../../../../learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#orderbook).

<EndpointsTable title="Endpoints">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ When Horizon returns information about an order book, it uses the following form

</AttributeTable>

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<ExampleResponse>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

Paths provide information about potential path payments. A path can be used to populate the necessary fields for a path payment operation.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The HTTP header in the response includes the [latest ledger](../../structure/consistency.mdx) known to Horizon.

Learn more about the two types of path payment: [`path payment strict send`](../../../../../../learn/fundamentals/transactions/list-of-operations.mdx#path-payment-strict-send) and [`path payment strict receive`](../../../../../../learn/fundamentals/transactions/list-of-operations.mdx#path-payment-strict-receive)
Learn more about path usage: [Path Payments Encyclopedia Entry](../../../../../../learn/encyclopedia/transactions-specialized/path-payments.mdx)

<EndpointsTable title="Endpoints">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ When Horizon returns information about a path, it uses the following format:

</AttributeTable>

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<ExampleResponse>

Expand Down
6 changes: 3 additions & 3 deletions docs/data/apis/horizon/api-reference/errors/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ sidebar_position: 40

import { MethodTable } from "@site/src/components/MethodTable";

After processing a request, Horizon returns a success or error response to the client. A success response will return a Status Code of 200, and an error response will return a Status Code in the range of 4XX - 5XX along with additional information about why the request could not complete successfully.
After processing a request, Horizon returns a success or error response to the client. A success response will return a Status Code of 200, and an error response will return a Status Code in the range of `4XX` – `5XX` along with additional information about why the request could not complete successfully.

There are two categories of errors: [HTTP Status Codes](./http-status-codes/README.mdx) and [Result Codes](./result-codes/README.mdx). Result Codes only follow a Transaction Failed (400) HTTP Status Code.
There are two categories of errors: [HTTP Status Codes](./http-status-codes/README.mdx) and [Result Codes](./result-codes/README.mdx). Result Codes only follow an HTTP Status Code `400` (Transaction Failed).

<MethodTable title="Error Categories">

| | |
| --- | --- |
| [HTTP Status Codes](./http-status-codes/README.mdx) | Errors that occur at the Horizon Server level. |
| [HTTP Status](./http-status-codes/README.mdx) | Errors that occur at the Horizon Server level. |
| [Result Codes](./result-codes/README.mdx) | Errors that occur at the Stellar Core level. |

</MethodTable>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

Users interact with the Stellar network through accounts. Everything else in the ledger—assets, offers, trustlines, etc.—are owned by accounts, and accounts must authorize all changes to the ledger through signed transactions.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

Learn more about [accounts](../../../../../../learn/glossary.mdx#account).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ When Horizon returns information about an account, it uses the following format:

</AttributeTable>

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<ExampleResponse>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

Assets are representations of value issued on the Stellar network. An asset consists of a type, code, and issuer.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

Learn more about [assets](../../../../../../learn/glossary.mdx#asset).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ When Horizon returns information about an asset, it uses the following format:

</AttributeTable>

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<ExampleResponse>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

A Claimable Balance represents the transfer of ownership of some amount of an asset. Claimable balances provide a mechanism for setting up a payment which can be claimed in the future. This allows you to make payments to accounts which are currently not able to accept them.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<EndpointsTable title="Endpoints">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ When Horizon returns information about a claimable balance, it uses the followin

</AttributeTable>

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<ExampleResponse>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ order: 0

import { EndpointsTable } from "@site/src/components/EndpointsTable";

Liquidity Pools provide a simple, non-interactive way to trade large amounts of capital and enable high volumes of trading.
Liquidity Pools provide a simple, non-interactive way to trade large amounts of capital and enable trading high volumes.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

Learn more about pool participation: [Liquidity on Stellar: Automated Market Making Encyclopedia Entry](../../../../../../learn/encyclopedia/sdex/liquidity-on-stellar-sdex-liquidity-pools.mdx#amms)

<EndpointsTable title="Endpoints">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

Offers are statements about how much of an asset an account wants to buy or sell.

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.

Learn more about [offers](../../../../../../learn/glossary.mdx#decentralized-exchange).
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<EndpointsTable title="Endpoints">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ When Horizon returns information about an offer, it uses the following format:

</AttributeTable>

The [latest ledger](../../structure/consistency.mdx) known to Horizon is included as an HTTP header in the response.
The response includes the [latest ledger](../../structure/consistency.mdx) known in an HTTP header.

<ExampleResponse>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { AttributeTable } from "@site/src/components/AttributeTable";

Creates, updates, or deletes a buy offer to trade assets. A buy offer specifies a certain amount of the buying asset that should be sold in exchange for the minimum quantity of the selling asset.

If an entire buy offer isn't fulfilled by existing liquidity, the remaining order volume gets converted to a sell offer representation internally.

See the [`Manage Buy Offer` errors](../../../errors/result-codes/operation-specific/manage-buy-offer.mdx).

<AttributeTable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import { EndpointsTable } from "@site/src/components/EndpointsTable";

When an offer is fully or partially fulfilled, a trade happens. Trades can also be caused by successful path payments, because path payments involve fulfilling offers.

A trade occurs between two parties—`base` and `counter`. Which is which is either arbitrary or determined by the calling query.

Learn more about [trades](/docs/learn/glossary/#decentralized-exchange).
A trade occurs between two parties: `base` and `counter`. Name is either arbitrary or determined by the calling query.

<EndpointsTable title="Endpoints">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: retrieve-an-order-book
title: "Retrieve an Order Book"
description: "The order book endpoint provides an order book's bids and asks and can be used in [streaming](https://developers.stellar.org/docs/data/apis/horizon/api-reference/structure/streaming) mode."
description: "The order book endpoint provides an order book's bids and asks and can be used in [streaming](./structure/streaming.mdx) mode."
sidebar_label: "Retrieve an Order Book"
hide_title: true
hide_table_of_contents: true
Expand Down Expand Up @@ -36,7 +36,7 @@ import Heading from "@theme/Heading";



The order book endpoint provides an order book's bids and asks and can be used in [streaming](https://developers.stellar.org/docs/data/apis/horizon/api-reference/structure/streaming) mode.
The order book endpoint provides an order book's bids and asks and can be used in [streaming](./structure/streaming.mdx) mode.

When filtering for a specific order book, you must use use all six of these arguments: `base_asset_type`, `base_asset_issuer`, `base_asset_code`, `counter_asset_type`, `counter_asset_issuer`, and `counter_asset_code`. If the base or counter asset is XLM, you only need to indicate the asset type as `native` and do not need to designate the code or the issuer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Each individual transaction, operation, ledger, etc. is returned as a record, an

To move between pages of a collection of records, use the links in the `next` and `prev` attributes nested under the top-level `_links` attribute.

---

<AttributeTable>

- ATTRIBUTE
Expand All @@ -39,7 +41,15 @@ To move between pages of a collection of records, use the links in the `next` an

</AttributeTable>

<CodeExample title="Example Request">
---

## Larger Queries

For fewer round trips, you can specify the `limit` parameter up to `200` to receive more items in each response. You can also lower it for calls with a smaller scope. Learn more in the [call arguments](./page-arguments.mdx).

## Example Request

<CodeExample>

```js
var StellarSdk = require("stellar-sdk");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { CodeExample } from "@site/src/components/CodeExample";
- A designation of the order in which records should appear. Options include `asc`(ascending) or `desc` (descending). If this argument isn’t set, it defaults to `asc`.
- limit
- optional
- The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.
- The maximum number of records returned. The limit can range from 1 to 200&mdash;an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

</AttributeTable>

Expand Down
Loading