Skip to content

Commit 7ca2d4b

Browse files
committed
chore: Remove outdated CLI examples and batch operation section from payment execution guide
- Deleted sections on using CLI with RLC and vouchers, as well as the batch operations example to streamline the documentation. - Focused on enhancing clarity and relevance of payment methods in the guide.
1 parent 3d9b559 commit 7ca2d4b

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

src/guides/use-iapp/how-to-pay-executions.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,6 @@ const result = await dataProtectorCore.processProtectedData({
7373
});
7474
```
7575

76-
### Using CLI with RLC
77-
78-
```bash
79-
# Execute with RLC payment
80-
iexec app run 0x456def... --protectedData 0xa0c15e...
81-
82-
# Check your balance
83-
iexec account show
84-
85-
# Deposit RLC
86-
iexec account deposit 100
87-
```
88-
8976
## Method 2: Paying with Vouchers <ChainNotSupportedBadge />
9077

9178
Vouchers are pre-funded payment instruments that simplify the payment process
@@ -150,16 +137,6 @@ be used in combination with `useVoucher: true`.
150137

151138
:::
152139

153-
#### CLI with Vouchers
154-
155-
```bash
156-
# Use your own voucher
157-
iexec app run 0x456def... --protectedData 0xa0c15e... --useVoucher
158-
159-
# Use someone else's voucher
160-
iexec app run 0x456def... --protectedData 0xa0c15e... --useVoucher --voucherOwner 0x5714eB...
161-
```
162-
163140
## Understanding Pricing
164141

165142
### Cost Components
@@ -263,35 +240,6 @@ const result = await dataProtectorCore.processProtectedData({
263240
});
264241
```
265242

266-
### 4. Batch Operations
267-
268-
Group multiple executions to optimize costs:
269-
270-
```ts twoslash
271-
import { IExecDataProtectorCore, getWeb3Provider } from '@iexec/dataprotector';
272-
273-
const web3Provider = getWeb3Provider('PRIVATE_KEY');
274-
const dataProtectorCore = new IExecDataProtectorCore(web3Provider);
275-
// ---cut---
276-
// Execute multiple tasks efficiently
277-
const tasks = [
278-
{ protectedData: '0x123abc...', app: '0x456def...' },
279-
{ protectedData: '0x124abc...', app: '0x456def...' },
280-
];
281-
282-
const results = await Promise.all(
283-
tasks.map((task) =>
284-
dataProtectorCore.processProtectedData({
285-
...task,
286-
dataMaxPrice: 5,
287-
appMaxPrice: 3,
288-
workerpoolMaxPrice: 2,
289-
useVoucher: true,
290-
})
291-
)
292-
);
293-
```
294-
295243
## Payment Troubleshooting
296244

297245
### Insufficient Balance

0 commit comments

Comments
 (0)