Skip to content

Commit afcf802

Browse files
Merge pull request #1141 from multiversx/cookbook-relayed-08-07
In cookbooks, adjust the sections about relayed transactions
2 parents 89a6c0c + 0bd1bd7 commit afcf802

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v14.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,18 +2364,16 @@ After the `10-epoch unbonding period` is complete, we can proceed with withdrawi
23642364
```
23652365

23662366
### Relayed transactions
2367-
We are currently on the `third iteration (V3)` of relayed transactions. V1 and V2 will soon be deactivated, so we will focus on V3.
2367+
We are currently on the third iteration (V3) of relayed transactions. V1 and V2 will be deactivated soon, so we'll focus on V3.
23682368

2369-
For V3, two new fields have been added to transactions:
2370-
- relayer
2371-
- relayerSignature
2369+
For V3, two new fields have been added on transactions: `relayer` and `relayerSignature`.
23722370

2373-
Signing Process:
2374-
1. The relayer must be set before the sender signs the transaction.
2375-
2. Once the sender has signed, the relayer can also sign the transaction and broadcast it.
2371+
Note that:
2372+
1. the sender and the relayer can sign the transaction in any order.
2373+
2. before any of the sender or relayer can sign the transaction, the `relayer` field must be set.
2374+
3. relayed transactions require an additional `50,000` of gas.
2375+
4. the sender and the relayer must be in the same network shard.
23762376

2377-
**Important Consideration**:
2378-
Relayed V3 transactions require an additional `50,000` gas.
23792377
Let’s see how to create a relayed transaction:
23802378

23812379
```js

docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v15.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,18 +2384,16 @@ After the `10-epoch unbonding period` is complete, we can proceed with withdrawi
23842384
```
23852385

23862386
### Relayed transactions
2387-
We are currently on the `third iteration (V3)` of relayed transactions. V1 and V2 will soon be deactivated, so we will focus on V3.
2387+
We are currently on the third iteration (V3) of relayed transactions. V1 and V2 will be deactivated soon, so we'll focus on V3.
23882388

2389-
For V3, two new fields have been added to transactions:
2390-
- relayer
2391-
- relayerSignature
2389+
For V3, two new fields have been added on transactions: `relayer` and `relayerSignature`.
23922390

2393-
Signing Process:
2394-
1. The relayer must be set before the sender signs the transaction.
2395-
2. Once the sender has signed, the relayer can also sign the transaction and broadcast it.
2391+
Note that:
2392+
1. the sender and the relayer can sign the transaction in any order.
2393+
2. before any of the sender or relayer can sign the transaction, the `relayer` field must be set.
2394+
3. relayed transactions require an additional `50,000` of gas.
2395+
4. the sender and the relayer must be in the same network shard.
23962396

2397-
**Important Consideration**:
2398-
Relayed V3 transactions require an additional `50,000` gas.
23992397
Let’s see how to create a relayed transaction:
24002398

24012399
```js

docs/sdk-and-tools/sdk-py.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,17 @@ tx_hash = entrypoint.send_transaction(transaction)
27622762

27632763
### Relayed transactions
27642764

2765-
We are currently on the third iteration of relayed transactions. V1 and V2 are soon to be deactivated so we'll focus on V3. For V3, two new fields have been added on transactions: `relayer` and `relayerSignature`. Before the sender signs the transaction, the relayer needs to be set. After the sender has signed the transaction, the relayer can also sign the transaction and broadcast it. Keep in mind that, for relayed V3 transactions we need an extra `50_000` gas. Let's see how we can create a relayed transaction:
2765+
We are currently on the third iteration (V3) of relayed transactions. V1 and V2 will be deactivated soon, so we'll focus on V3.
2766+
2767+
For V3, two new fields have been added on transactions: `relayer` and `relayerSignature`.
2768+
2769+
Note that:
2770+
1. the sender and the relayer can sign the transaction in any order.
2771+
2. before any of the sender or relayer can sign the transaction, the `relayer` field must be set.
2772+
3. relayed transactions require an additional `50,000` of gas.
2773+
4. the sender and the relayer must be in the same network shard.
2774+
2775+
Let’s see how to create a relayed transaction:
27662776

27672777
```py
27682778
from pathlib import Path

0 commit comments

Comments
 (0)