Skip to content

Commit

Permalink
Merge pull request #14 from coinbase/lukas/fallbacks-2
Browse files Browse the repository at this point in the history
fallbacks 2
  • Loading branch information
lukasrosario authored Apr 30, 2024
2 parents 1db5268 + 8d38df2 commit 1ad0506
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/pages/guides/batch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

With Smart Wallet, you can send multiple onchain calls in a single transaction. Doing so improves the UX of multi-step interactions by reducing them to a single click. A common example of where you might want to leverage batch transactions is an ERC-20 `approve` followed by a swap.

You can submit batch transactions by using [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) RPC methods.
You can submit batch transactions by using new `wallet_sendCalls` RPC, defined [here](https://eips.ethereum.org/EIPS/eip-5792).

## Using Wagmi + Viem

:::warning[Warning]
:::info
The actions below are experimental and not supported in most wallets. It is recommended to have a fallback mechanism if using this in production.
:::

Expand Down Expand Up @@ -100,7 +100,7 @@ if (walletClient) {

### 3. Check on the status of your calls

The above `writeContracts` and `sendCalls` examples both return a call bundle identifier. Ese the Viem `getCallsStatus` action with this identifier to check on the status of your calls.
The above `writeContracts` and `sendCalls` examples both return a call bundle identifier. Use the Viem `getCallsStatus` action with this identifier to check on the status of your calls.

This will return a `PENDING` or `CONFIRMED` status along with a subset of a transaction receipt.

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/guides/paymaster.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Paymasters (Sponsored Transactions)

One of the biggest UX enhancements unlocked by Smart Wallet is the ability for app developers to sponsor their users' transactions. If your app supports Smart Wallet, you can start sponsoring your users' transactions by using [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) and [ERC-7677](https://erc7677.xyz).
One of the biggest UX enhancements unlocked by Smart Wallet is the ability for app developers to sponsor their users' transactions. If your app supports Smart Wallet, you can start sponsoring your users' transactions by using [standardized paymaster service communication](https://erc7677.xyz) enabled by [new wallet RPC methods](https://eips.ethereum.org/EIPS/eip-5792).

## Using Wagmi + Viem

:::warning[Warning]
:::info
The actions below are experimental and not supported in most wallets. It is recommended to have a fallback mechanism if using this in production.
:::

Expand Down

0 comments on commit 1ad0506

Please sign in to comment.