Documentation Index
Fetch the complete documentation index at: https://base-a060aa97-meyer9-move-azul-to-top-of-upgrades.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Automatic Attribution on Base
Once your app is registered on base.dev, the Base App will auto-append your Builder Code to transactions its users make in your app (e.g. via your app, or the Base App’s browser). This powers your onchain analytics in base.dev and qualifies you for potential future rewards.Integrating Outside the Base App
If users also access your app on the web or through other clients, you’ll need to integrate thedataSuffix parameter to capture that activity.
When you register on base.dev, you will receive a Builder Code—a random string (e.g., bc_b7k3p9da) that you’ll use to generate your attribution suffix. The recommended approach is to configure dataSuffix at the client level, which appends your Builder Code to all transactions.
Quick Setup with Wagmi
Configure Your Wagmi Client
Add the
dataSuffix option to your Wagmi config. This automatically appends your Builder Code to all transactions.config.ts
Quick Setup with Viem
Configure Your Wallet Client
Add the
dataSuffix option when creating your wallet client. See the viem wallet client docs for more configuration options.client.ts
Using Privy
Privy provides adataSuffix plugin that automatically appends your Builder Code to all transactions—including both EOA transactions and ERC-4337 smart wallet user operations.
See the Privy Builder Codes integration guide for setup instructions.
Legacy: Per-Transaction Approach
Appending dataSuffix Per-Transaction
Appending dataSuffix Per-Transaction
If you need to append the suffix on a per-transaction basis rather than at the client level, you can pass
dataSuffix directly to the transaction.- useSendTransaction
- useSendCalls
App.tsx
Verify Attribution
To confirm your Builder Code is being appended correctly: 1. Check base.dev- Visit base.dev
- Select Onchain from the transaction type dropdown
- Under the Total Transactions section, attribution counts increment when transactions with your code are processed
- Find your transaction hash
- View the input data field
- Verify the last 16 bytes are the
8021repeating - Decode the suffix to confirm your Builder Code is present
- Use the Builder Code Validation tool
- Select transaction type
- Enter the transaction or UserOperation hash
- Click the Check Attribution button