Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit d62e053

Browse files
authored
[links] Update TS SDK links (#818)
1 parent f98941f commit d62e053

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

apps/nextra/pages/en/build/guides/aptos-keyless/federated-keyless/other.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ title: "FAQ"
66

77
**What if I stop using my IAM for my application? What if I switch IAM providers?**
88

9-
- An account address depends on values of several variables that are specific to an IAM service, including `aud` (client ID) and `iss` (issuer). If these values are changed, then a different address will be derived.
10-
- If you want to switch IAM providers, you will need to develop an account migration flow, resulting in a key rotation from the account derived from the prior IAM provider to the account derived from the new IAM provider.
11-
- We recommend allowing your users to add a secondary authentication method to their accounts (e.g., back-up private key) so that they can maintain access should the authentication path into their account via Federated Keyless be disrupted via a service provider change. In order to implement this, you need to do a key rotation to a multikey account. For relevant documentation see [key rotation](https://aptos.dev/en/build/guides/key-rotation) and [multikey SDK](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.29.1/classes/MultiKeyAccount.html).
9+
- An account address depends on values of several variables that are specific to an IAM service, including `aud` (client ID) and `iss` (issuer). If these values are changed, then a different address will be derived.
10+
- If you want to switch IAM providers, you will need to develop an account migration flow, resulting in a key rotation from the account derived from the prior IAM provider to the account derived from the new IAM provider.
11+
- We recommend allowing your users to add a secondary authentication method to their accounts (e.g., back-up private key) so that they can maintain access should the authentication path into their account via Federated Keyless be disrupted via a service provider change. In order to implement this, you need to do a key rotation to a multikey account. For relevant documentation see [key rotation](https://aptos.dev/en/build/guides/key-rotation) and [multikey SDK](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.35.0/classes/MultiKeyAccount.html).
1212

1313
**Does using an IAM cost money?**
1414

@@ -20,4 +20,4 @@ title: "FAQ"
2020

2121
**I use an open source IAM like Keycloak. Can I use Federated Keyless?**
2222

23-
- Not today. Due to the trust placed in the IAM to have sufficient uptime and security standards, we have limited the accepted IAM set to the currently supported issuers. If you believe your provider should be included for consideration, please consider raising an AIP or contact us in the Keyless developers [telegram](https://t.me/+h5CN-W35yUFiYzkx).
23+
- Not today. Due to the trust placed in the IAM to have sufficient uptime and security standards, we have limited the accepted IAM set to the currently supported issuers. If you believe your provider should be included for consideration, please consider raising an AIP or contact us in the Keyless developers [telegram](https://t.me/+h5CN-W35yUFiYzkx).

apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Callout, Steps } from 'nextra/components';
1010
Transactions allow you to change on-chain data or trigger events. Generally, transactions follow 5 steps from building to executing on chain: building, simulating, signing, submitting, and waiting.
1111

1212
<Callout type="info">
13-
For these examples, `aptos` is an instance of the [`Aptos`](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.12.2/classes/Aptos.html) client object.
13+
For these examples, `aptos` is an instance of the [`Aptos`](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.35.0/classes/Aptos.html) client object.
1414
</Callout>
1515

1616
<Steps>
@@ -51,7 +51,7 @@ The SDK provides sensible defaults for these values if they are not specified ex
5151

5252
### Simulate (Optional)
5353

54-
Every transaction on the Aptos chain has a gas fee associated with how much work the network machines have to do when executing the transaction. In order to estimate the cost associated with that, you can simulate transactions before committing them.
54+
Every transaction on the Aptos chain has a gas fee associated with how much work the network machines have to do when executing the transaction. In order to estimate the cost associated with that, you can simulate transactions before committing them.
5555

5656
<Callout type="info">
5757
This simulation only requires the `publicKey` of an account since it will not impact the actual state of the ledger.
@@ -93,7 +93,7 @@ const committedTransaction = await aptos.transaction.submit.simple({
9393

9494
### Wait
9595

96-
Finally, you can wait for the result of the transaction by using [`aptos.waitForTransaction`](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.12.2/classes/Aptos.html#waitForTransaction) and specifying the hash of the transaction you just submitted like so:
96+
Finally, you can wait for the result of the transaction by using [`aptos.waitForTransaction`](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.35.0/classes/Aptos.html#waitForTransaction) and specifying the hash of the transaction you just submitted like so:
9797

9898
```ts filename="build-a-transaction.ts"
9999
// 5. Wait
@@ -134,7 +134,7 @@ async function example() {
134134
await aptos.fundAccount({
135135
accountAddress: alice.accountAddress,
136136
amount: 100_000_000,
137-
});
137+
});
138138
await aptos.fundAccount({
139139
accountAddress: bob.accountAddress,
140140
amount: 100,

apps/nextra/pages/en/build/sdks/ts-sdk/fetch-data-via-sdk.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Callout } from 'nextra/components'
77

88
# Fetch Data via the TypeScript SDK
99

10-
You can use the `Aptos` client to get on-chain data using a variety of helper functions. Specifically, many of the functions listed in the reference docs [here](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.12.2/classes/Aptos.html) that start with `get...` will retrieve data from on-chain.
10+
You can use the `Aptos` client to get on-chain data using a variety of helper functions. Specifically, many of the functions listed in the reference docs [here](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.35.0/classes/Aptos.html) that start with `get...` will retrieve data from on-chain.
1111

1212
Here’s an example showing how to fetch common data you may need in your application:
1313

@@ -42,7 +42,7 @@ The `Aptos` client can out of the box query both network data from [fullnodes](h
4242

4343
## Using Generic Queries
4444

45-
Some queries are intentionally broad, but this can make inferring the proper return type difficult. To accommodate that, these broad requests like `getAccountResources` allow you to specify what the expected response type should be.
45+
Some queries are intentionally broad, but this can make inferring the proper return type difficult. To accommodate that, these broad requests like `getAccountResources` allow you to specify what the expected response type should be.
4646

4747
```ts filename="fetch-data.ts"
4848
type Coin = { coin: { value: string } };
@@ -58,7 +58,7 @@ const value = resource.coin.value;
5858

5959
## Using Move View Functions
6060

61-
You can call view functions which return custom data from on-chain by using `aptos.view`.
61+
You can call view functions which return custom data from on-chain by using `aptos.view`.
6262

6363
For example, you can look up the network you are using with the `chain_id` view function:
6464

@@ -74,7 +74,7 @@ const chainId = (await aptos.view({ payload }))[0];
7474

7575
Behind the scenes, some requests use the [Indexer API](../../indexer.mdx) to access data which has been processed or aggregated. That extra parsing can take a bit of time, so the data may lag slightly behind the latest ledger.
7676

77-
If you want to ensure that the data is fresh, you can specify the `minimumLedgerVersion` in any request which uses the Indexer API.
77+
If you want to ensure that the data is fresh, you can specify the `minimumLedgerVersion` in any request which uses the Indexer API.
7878

7979
```ts filename="fetch-data.ts"
8080
// Get the latest ledger version number
@@ -86,7 +86,7 @@ const tokens = await aptos.getAccountOwnedTokens({
8686
});
8787
```
8888

89-
You can also ensure that your request has the data from a transaction you submitted by getting the ledger version from the transaction validation itself.
89+
You can also ensure that your request has the data from a transaction you submitted by getting the ledger version from the transaction validation itself.
9090

9191
```ts filename="fetch-data.ts"
9292
// Wait for a transaction you just submitted

apps/nextra/pages/en/build/sdks/ts-sdk/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ All told, you just learned how to transfer APT via a transaction by:
328328

329329
1. Connecting to the network using the `Aptos` client.
330330
2. Creating an account.
331-
3. Looking up data from on-chain using client helper functions like [`aptos.getAccountModules`](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.13.1/classes/Aptos.html#getAccountModules).
331+
3. Looking up data from on-chain using client helper functions like [`aptos.getAccountModules`](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.35.0/classes/Aptos.html#getAccountModules).
332332
4. Signing and submitting a transaction to the network.
333333
5. Waiting for Aptos to execute the transaction.
334334

@@ -337,5 +337,5 @@ To see all this in action, you can copy and run the full working code snippet fo
337337
<Callout type="info">
338338
For future development, make sure to bookmark the [reference docs](https://aptos-labs.github.io/aptos-ts-sdk/) to look up specific function signatures.
339339

340-
Note that most helper functions are listed on the [`Aptos` client object](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.13.1/classes/Aptos.html).
340+
Note that most helper functions are listed on the [`Aptos` client object](https://aptos-labs.github.io/aptos-ts-sdk/@aptos-labs/ts-sdk-1.35.0/classes/Aptos.html).
341341
</Callout>

0 commit comments

Comments
 (0)