Skip to content

Commit b98079c

Browse files
committed
add code file titles and tooltip
1 parent cac1daa commit b98079c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/base-chain/quickstart/builder-codes.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ Once your app is registered on [Base.dev](http://base.dev/), the Base App will a
2323

2424
When you register on [base.dev](https://base.dev/), you will receive a **Builder Code**—a random string (e.g., `bc_b7k3p9da` ) that you'll use to generate your attribution suffix.
2525

26-
You can find your code anytime under **Settings****Builder Code**.
26+
<Tip>
27+
You can find your code anytime under **Settings****Builder Code**.
28+
</Tip>
2729

2830
<Steps>
2931
<Step title="Install the Standard Library for Ethereum">
3032

3133
This will allow you to append the encoded version of your builder code.
3234

33-
```bash
35+
```bash Terminal
3436
npm i ox
3537
```
3638
</Step>
@@ -42,7 +44,7 @@ This will allow you to append the encoded version of your builder code.
4244
<Step title="Create the Encoded Data Suffix">
4345
Use the `Attribution.toDataSuffix` method from the `ox` library to encode your builder code:
4446

45-
```ts
47+
```ts App.tsx
4648
import { Attribution } from "ox/erc8021";
4749

4850
const DATA_SUFFIX = Attribution.toDataSuffix({
@@ -54,7 +56,7 @@ This will allow you to append the encoded version of your builder code.
5456
<Step title="Send transaction using the dataSuffix capability">
5557
Use Wagmi's `useSendCalls` hook with the `dataSuffix` capability to append attribution data to your transactions.
5658

57-
```ts
59+
```ts App.tsx
5860
import { useSendCalls } from "wagmi";
5961
import { parseEther } from "viem";
6062
import { Attribution } from "ox/erc8021";

0 commit comments

Comments
 (0)