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
Copy file name to clipboardExpand all lines: docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,48 @@ const tx = new Transaction({
107
107
tx.nonce=42n;
108
108
```
109
109
110
+
### Preparing a relayed transaction
111
+
112
+
We are currently on the third iteration of relayed transactions. V1 and V2 are soon to be deactivated so we'll focus on V3.
113
+
For V3, two new fields have been added on transactions: `relayer` and `relayerSignature`.
114
+
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.
115
+
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:
0 commit comments