You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
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
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.
302
302
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.
304
304
305
305
And to do so - use `aptos.confidentialAsset.rolloverPendingBalance`.
306
306
307
307
<Callouttype="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.
309
309
</Callout>
310
310
311
311
To cover [normalization](#normalization) & `rollover` simultaneously, you could use `aptos.confidentialAsset.safeRolloverPendingCB`.
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
407
407
408
408
Let's say you have a recipient's account address, let's get their encryption key.
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`
460
460
461
461
<Callouttype="warning">
462
462
But keep in mind, that `key-rotation` checks that pending balance equals 0.
0 commit comments