Loading...
Loading...
Compare original and translation side by side
oxnpm install oxoxnpm install oxBuilder Codes Integration:
- [ ] Step 1: Detect framework (Required First Step)
- [ ] Step 2: Install dependencies
- [ ] Step 3: Generate the dataSuffix constant
- [ ] Step 4: Apply attribution (framework-specific)
- [ ] Step 5: Verify attribution is workingBuilder Codes Integration:
- [ ] Step 1: Detect framework (Required First Step)
- [ ] Step 2: Install dependencies
- [ ] Step 3: Generate the dataSuffix constant
- [ ] Step 4: Apply attribution (framework-specific)
- [ ] Step 5: Verify attribution is workingundefinedundefinedundefinedundefined| Framework | Detection Signal |
|---|---|
| |
| |
| |
| |
| 框架 | 检测信号 |
|---|---|
| package.json或导入语句中存在 |
| package.json或导入语句中存在 |
| package.json中存在 |
| 检测到 |
"I detected you are using [Framework]. I'll implement builder codes using the [Framework] approach — does that sound right?"
"我检测到你正在使用[Framework]。我将采用[Framework]方案来实现builder codes——这样可以吗?"
@privy-io/react-authwindow.ethereum@privy-io/react-authwindow.ethereumnpm install oxviem >= 2.45.0@privy-io/react-auth >= 3.13.0npm install oxviem >= 2.45.0@privy-io/react-auth >= 3.13.0src/lib/attribution.tssrc/constants/builderCode.tsimport { Attribution } from "ox/erc8021";
export const DATA_SUFFIX = Attribution.toDataSuffix({
codes: ["YOUR-BUILDER-CODE"], // Replace with your code from base.dev
});src/lib/attribution.tssrc/constants/builderCode.tsimport { Attribution } from "ox/erc8021";
export const DATA_SUFFIX = Attribution.toDataSuffix({
codes: ["YOUR-BUILDER-CODE"], // 替换为你从base.dev获取的代码
});dataSuffixdataSuffixdataSuffixdataSuffixDATA_SUFFIXwindow.ethereumsendCallscapabilitieswindow.ethereumDATA_SUFFIXsendCallscapabilities80218021dataSuffixdataSuffix@privy-io/wagmidataSuffixdataSuffix@privy-io/wagmiundefinedundefined
For client-level integration (Wagmi/Viem/Privy), you typically only need to modify the config file — individual transaction call sites remain unchanged.
对于客户端级别集成(Wagmi/Viem/Privy),通常只需修改配置文件——无需更改单个交易调用位置。