Skip to content

Commit bfea2e7

Browse files
committed
update to steps component
1 parent e1fdf19 commit bfea2e7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/mini-apps/core-concepts/base-account.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ you can follow the steps detailed in the [Common Issues & Debugging](/mini-apps/
2828

2929
## Implementation
3030

31-
### 1. Set Up Wagmi Provider
32-
31+
<Steps>
32+
<Step title="Set Up Wagmi Provider">
3333
Configure Wagmi with the Farcaster Mini App connector and Base Account connector to enable Base Account features in your Mini App:
3434

3535
```typescript wagmi.ts expandable highlight={16-22}
@@ -71,9 +71,9 @@ export default function Provider({ children }: { children: React.ReactNode }) {
7171
<Note>
7272
The `farcasterMiniApp()` connector automatically connects to the user's Base Account when the Mini App launches within the Base App.
7373
</Note>
74+
</Step>
7475

75-
### 2. Send Batch Transactions with Capabilities
76-
76+
<Step title="Send Batch Transactions with Capabilities">
7777
Use Wagmi's [`sendCalls`](https://wagmi.sh/core/api/actions/sendCalls) to send batched transactions. First, check if the wallet supports paymaster capabilities using [`getCapabilities`](https://wagmi.sh/core/api/actions/getCapabilities), then conditionally include paymaster settings in your transaction:
7878

7979
```typescript components/BatchTransaction.tsx highlight={9,10,11,12,34}
@@ -126,6 +126,8 @@ async function sendBatchTransaction() {
126126
<Tip>
127127
You can get your paymaster API key from [Coinbase Developer Platform](https://docs.cdp.coinbase.com/paymaster/introduction/welcome) to sponsor gas fees for your users.
128128
</Tip>
129+
</Step>
130+
</Steps>
129131

130132
<CardGroup cols={2}>
131133
<Card title="Batch Transactions Guide" icon="layer-group" href="/base-account/improve-ux/batch-transactions">

0 commit comments

Comments
 (0)