Skip to content

Commit 702d166

Browse files
committed
docs: second pass of 7702 default
1 parent d9858d8 commit 702d166

11 files changed

Lines changed: 21 additions & 27 deletions

File tree

fern/wallets/pages/transactions/cross-chain-swap-tokens/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You will need to fill in values wrapped in curly braces like `{SIGNER_ADDRESS}`.
99
additional actions after a cross-chain swap.
1010
</Info>
1111

12-
Use your signer address directly as the `from` field. Request a cross-chain swap quote by specifying both the source chain (`chainId`) and destination chain (`toChainId`). In addition, just like in [single-chain swaps](/wallets/transactions/swap-tokens) you can specify either a `minimumToAmount` or a `fromAmount`.
12+
Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default. Request a cross-chain swap quote by specifying both the source chain (`chainId`) and destination chain (`toChainId`). In addition, just like in [single-chain swaps](/wallets/transactions/swap-tokens) you can specify either a `minimumToAmount` or a `fromAmount`.
1313

1414
<Info>
1515
If you're using an EOA or just want the raw array of calls returned, pass the

fern/wallets/pages/transactions/pay-gas-with-any-token/api-postop.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ for full descriptions of the parameters used in the following example.
44

55
<Steps>
66
<Step title="Prepare Calls">
7-
Prepare calls using the `paymasterService` capability. Use your signer address directly as the `from` field.
7+
Prepare calls using the `paymasterService` capability. Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default.
88
```bash
99
curl --request POST \
1010
--url https://api.g.alchemy.com/v2/$ALCHEMY_API_KEY \
@@ -43,6 +43,6 @@ curl --request POST \
4343
```
4444
</Step>
4545
<Step title="Sign & Send">
46-
Sign the returned signature request and send using `wallet_sendPreparedCalls`. See the [send transactions guide](/wallets/transactions/send-transactions) for more info.
46+
Sign the returned signature request and send using `wallet_sendPreparedCalls`. On the first transaction for a new account, the response type will be `array` containing both an EIP-7702 authorization and a user operation. See the [send transactions guide](/wallets/transactions/send-transactions) for a complete example.
4747
</Step>
4848
</Steps>

fern/wallets/pages/transactions/pay-gas-with-any-token/api-preop.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Steps>
22
<Step title="Initial Prepare Calls">
3-
Prepare calls using the `paymasterService` capability. Use your signer address directly as the `from` field.
3+
Prepare calls using the `paymasterService` capability. Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default.
44

55
```bash
66
curl --request POST \
@@ -74,6 +74,6 @@
7474
</Step>
7575

7676
<Step title="Sign & Send">
77-
Sign and send the last prepared calls result as usual using `wallet_sendPreparedCalls`. See the [send transactions guide](/wallets/transactions/send-transactions) for more info.
77+
Sign and send the last prepared calls result as usual using `wallet_sendPreparedCalls`. On the first transaction for a new account, the response type will be `array` containing both an EIP-7702 authorization and a user operation. See the [send transactions guide](/wallets/transactions/send-transactions) for a complete example.
7878
</Step>
7979
</Steps>

fern/wallets/pages/transactions/retry-transactions/api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You will need to fill in values wrapped in curly braces like `{SIGNER_ADDRESS}`.
44

55
<Step title="Send the initial transaction">
66

7-
Use your signer address directly as the `from` field.
7+
Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default.
88

99
```bash
1010
curl -X POST https://api.g.alchemy.com/v2/{API_KEY} \
@@ -55,7 +55,7 @@ This returns:
5555
}
5656
```
5757

58-
Sign the `raw` field and send the transaction as usual. See the [sending transactions documentation](/wallets/transactions/send-transactions) for more details.
58+
Sign the `raw` field and send the transaction as usual. On the first transaction for a new account, the response type will be `array` containing both an EIP-7702 authorization and a user operation. See the [sending transactions documentation](/wallets/transactions/send-transactions) for more details.
5959

6060
</Step>
6161

fern/wallets/pages/transactions/send-batch-transactions/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for full descriptions of the parameters used in the following example.
99

1010
<Steps>
1111
<Step title="Prepare Calls">
12-
Prepare calls with multiple calls specified in the batch. Use your signer address directly as the `from` field.
12+
Prepare calls with multiple calls specified in the batch. Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default.
1313
```bash twoslash
1414
curl --request POST \
1515
--url https://api.g.alchemy.com/v2/$ALCHEMY_API_KEY \

fern/wallets/pages/transactions/send-parallel-transactions/api.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ You will need to fill in values wrapped in curly braces like `{SIGNER_ADDRESS}`.
22

33
<Steps>
44
<Step title="Prepare parallel calls">
5-
Use your signer address directly as the `from` field. To send parallel calls, use the `nonceOverride` capability. This allows us to specify a `nonceKey` parameter, a hex value that fits inside a `uint152` and differentiates transactions.
5+
Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default. To send parallel calls, use the `nonceOverride` capability. This allows us to specify a `nonceKey` parameter, a hex value that fits inside a `uint152` and differentiates transactions.
66

77
In production, as long as the nonce key override is nonzero (zero is the default), and different between `prepareCalls` requests, the transactions will be processed in parallel.
88

@@ -90,6 +90,8 @@ You will need to fill in values wrapped in curly braces like `{SIGNER_ADDRESS}`.
9090
```
9191

9292
Note the two `signatureRequest` objects that were returned for each request! Also keep the returned `data` object from each request, you'll need them when we send the parallel transactions!
93+
94+
On the first transaction for a new account, the response type will be `array` containing both an EIP-7702 authorization and a user operation. See [Send Transactions](/wallets/transactions/send-transactions) for handling first-time authorization signing.
9395
</Step>
9496

9597
<Step title="Sign the signature requests">

fern/wallets/pages/transactions/send-transactions/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SIGNER_PRIVATE_KEY=your-signer-private-key
2323

2424
<Step title="Prepare Calls">
2525

26-
Prepare the calls using your signer address as the `from` field. With 7702-enabled accounts, you can use your signer address directly without first calling `wallet_requestAccount`.
26+
Prepare the calls using your signer address as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default. You can use your signer address directly without first calling `wallet_requestAccount`.
2727

2828
```bash twoslash
2929
PREPARE_CALLS_RESPONSE=$(curl --request POST \

fern/wallets/pages/transactions/sponsor-gas/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ for full descriptions of the parameters used in the following example.
44

55
<Steps>
66
<Step title="Prepare Calls">
7-
Prepare calls using the `paymasterService` capability. Use your signer address directly as the `from` field.
7+
Prepare calls using the `paymasterService` capability. Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default.
88
```bash
99
curl --request POST \
1010
--url https://api.g.alchemy.com/v2/$ALCHEMY_API_KEY \

fern/wallets/pages/transactions/swap-tokens/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ You will need to fill in values wrapped in curly braces like `{SIGNER_ADDRESS}`.
44

55
<Step title="Request a swap quote">
66

7-
Use your signer address directly as the `from` field. Note that `postCalls` are optional and allow you to batch an array of calls after the swap.
7+
Use your signer address directly as the `from` field to enable [EIP-7702](/wallets/transactions/using-eip-7702) by default. Note that `postCalls` are optional and allow you to batch an array of calls after the swap.
88

99
<Info>
1010
If you're using an EOA or just want the raw array of calls returned, pass the

fern/wallets/pages/transactions/using-eip-7702/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ See the [`wallet_prepareCalls` API
22
reference](/wallets/api-reference/smart-wallets/wallet-api-endpoints/wallet-api-endpoints/wallet-prepare-calls)
33
for full descriptions of the parameters used in the following example.
44

5-
EIP-7702 is now the default mode when using your signer address directly with `wallet_prepareCalls`. The API will automatically return authorization requests when delegation is needed.
5+
EIP-7702 is now the default mode when using your signer address directly with `wallet_prepareCalls`. The API will automatically return an authorization request when delegation is needed.
66

77
<Steps>
88
<Step title="Prepare Calls">

0 commit comments

Comments
 (0)