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

Commit 7e9ff9d

Browse files
authored
update link
1 parent 69c0da9 commit 7e9ff9d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export const aptos = new Aptos(config);
163163

164164
### Create Decryption Key (DK)
165165

166-
To interact with the confidential asset, create a [unique key pair](/en/build/smart-contracts/confidential-asset#confidential-asset-store) first.
166+
To interact with the confidential asset, create a [unique key pair](confidential-asset.mdx#confidential-asset-store) first.
167167

168168
Generate new:
169169

@@ -191,7 +191,7 @@ Or use [`pepper`](/en/build/guides/aptos-keyless/how-keyless-works) from [Keyles
191191

192192
### Register
193193

194-
Next, you need to [register](/en/build/smart-contracts/confidential-asset#register) a previously generated encryption key (EK) in contracts:
194+
Next, you need to [register](confidential-asset.mdx#register) a previously generated encryption key (EK) in contracts:
195195

196196
```typescript
197197
export const registerConfidentialBalance = async (
@@ -261,7 +261,7 @@ Let's check the user's balance after the deposit.
261261
const userConfidentialBalance = await aptos.confidentialAsset.getBalance({ accountAddress: user.accountAddress, tokenAddress: TOKEN_ADDRESS });
262262
```
263263

264-
This method returns you the user's [`pending` and `actual`](/en/build/smart-contracts/confidential-asset#confidential-asset-store) confidential balances, and to [decrypt](/en/build/smart-contracts/confidential-asset#encryption-and-decryption) them, you can use `ConfidentialAmount` class
264+
This method returns you the user's [`pending` and `actual`](confidential-asset.mdx#confidential-asset-store) confidential balances, and to [decrypt](confidential-asset.mdx#encryption-and-decryption) them, you can use `ConfidentialAmount` class
265265

266266
```typescript
267267
export const getConfidentialBalances = async (
@@ -300,12 +300,12 @@ export const getConfidentialBalances = async (
300300

301301
After you deposited to user's confidential balance, you can see, that he has, for instance `5n` at his `pending` balance, and `0n` at his `actual` balance.
302302

303-
User can't operate with `pending` balance, so you could [rollover](/en/build/smart-contracts/confidential-asset#rollover-pending-balance) it to `actual` one.
303+
User can't operate with `pending` balance, so you could [rollover](confidential-asset.mdx#rollover-pending-balance) it to `actual` one.
304304

305305
And to do so - use `aptos.confidentialAsset.rolloverPendingBalance`.
306306

307307
<Callout type="warning">
308-
Important note, that user's actual balance need to be [normalized](/en/build/smart-contracts/confidential-asset#normalize) before `rollover` operation.
308+
Important note, that user's actual balance need to be [normalized](confidential-asset.mdx#normalize) before `rollover` operation.
309309
</Callout>
310310

311311
To cover [normalization](#normalization) & `rollover` simultaneously, you could use `aptos.confidentialAsset.safeRolloverPendingCB`.
@@ -330,7 +330,7 @@ export const safelyRolloverConfidentialBalance = async (
330330

331331
### Normalization
332332

333-
Usually you don't need to explicitly call [normalization](/en/build/smart-contracts/confidential-asset#normalize)
333+
Usually you don't need to explicitly call [normalization](confidential-asset.mdx#normalize)
334334

335335
In case you want to:
336336

@@ -377,7 +377,7 @@ export const normalizeConfidentialBalance = async (
377377

378378
### Withdraw
379379

380-
To [withdraw](/en/build/smart-contracts/confidential-asset#withdraw) your assets out from confidential balance:
380+
To [withdraw](confidential-asset.mdx#withdraw) your assets out from confidential balance:
381381

382382
```typescript
383383
export const withdrawConfidentialBalance = async (
@@ -403,7 +403,7 @@ export const withdrawConfidentialBalance = async (
403403

404404
### Transfer
405405

406-
For [transfer](/en/build/smart-contracts/confidential-asset#confidential-transfer) you need to know the recipient's encryption key and `aptos` account address
406+
For [transfer](confidential-asset.mdx#confidential-transfer) you need to know the recipient's encryption key and `aptos` account address
407407

408408
Let's say you have a recipient's account address, let's get their encryption key.
409409

@@ -456,7 +456,7 @@ export const transferConfidentialCoin = async (
456456

457457
### Key Rotation
458458

459-
To do [key rotation](/en/build/smart-contracts/confidential-asset#rotate-encryption-key), you need to create a new decryption key and use `aptos.confidentialAsset.rotateCBKey`
459+
To do [key rotation](confidential-asset.mdx#rotate-encryption-key), you need to create a new decryption key and use `aptos.confidentialAsset.rotateCBKey`
460460

461461
<Callout type="warning">
462462
But keep in mind, that `key-rotation` checks that pending balance equals 0.

0 commit comments

Comments
 (0)