erc8021-attribution

erc8021-attribution is a skill for Claude Code, Codex from gblinproject/gblin-treasury-risk-regime. It costs 54 tokens per session (900 once invoked), scanned A, original, MIT.

A guide for adding ERC-8021 Builder Codes to transactions on Base, a blockchain network, so a referring developer or AI agent can be identified.

In plain words
What is it for?
Registering a Builder Code, appending it to transaction data, and attributing transactions across supported Base protocols.
Why use it?
It helps track which referrer led to a transaction and supports fee sharing when the receiving protocol allows it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Registering a Builder Code, appending it to transaction data, and attributing transactions across supported Base protocols.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gblinproject/gblin-treasury-risk-regime --skill erc8021-attribution
Clone the repo
git clone --depth 1 https://github.com/gblinproject/gblin-treasury-risk-regime

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for erc8021-attribution

README.md
[![agentmods](https://agentmods.dev/badge/skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution/github.svg)](https://agentmods.dev/skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution)
Your own site
<a href="https://agentmods.dev/skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution"><img src="https://agentmods.dev/badge/skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for erc8021-attribution

Your own site · 80×15
<a href="https://agentmods.dev/skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution"><img src="https://agentmods.dev/badge/skills/gblinproject/gblin-treasury-risk-regime/erc8021-attribution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00900
Opus 5 $0.00027 $0.00450
Sonnet 5 $0.00011 $0.00180
Haiku 4.5 $0.00005 $0.00090

Measured 11d ago against content hash 0da36a3f3786, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

erc8021-attribution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/erc8021-attribution/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ERC-8021 Builder Code Attribution

When this skill applies

Trigger when:

  • The user is building on Base and wants to track which agents/developers drive transactions
  • The user wants to share protocol fees with the referrer of a transaction
  • The user is integrating with protocols that support Builder Code (Aerodrome, Morpho, GBLIN, etc.)

What ERC-8021 is

ERC-8021 is the Builder Code standard on Base — a way to attribute on-chain transactions to the developer or agent that referred them. Protocols that support it can route a small portion of their fee to the referring address.

Format: bc_<8 alphanumeric characters>. Example: bc_gbdo32j0.

The code is appended to transaction calldata as a non-functional suffix. Protocol contracts can read it and apply revenue-share logic.

How to register a Builder Code

  1. Go to https://base.dev/builders
  2. Sign in with a Base Smart Wallet
  3. Generate a Builder Code linked to your wallet address
  4. Save the code

The Builder Code is portable — you can use it across any protocol that supports ERC-8021.

Integration pattern: append Builder Code to calldata

import { encodePacked } from 'viem';

const BUILDER_CODE = process.env.BUILDER_CODE; // e.g. 'bc_gbdo32j0'

function appendBuilderCode(originalCalldata: `0x${string}`): `0x${string}` {
  if (!BUILDER_CODE) return originalCalldata;
  const codeBytes = Buffer.from(BUILDER_CODE, 'utf-8').toString('hex');
  return `${originalCalldata}${codeBytes}` as `0x${string}`;
}

Protocols that support ERC-8021 on Base (as of May 2026)

Protocol Status Fee share to builder
GBLIN Live 0.025% of transaction value (half of founder fee)
Aerodrome Live Varies by pool
Morpho Base Partial Via separate referral program

Check the live registry: https://base.dev/builders/registry

Pattern: pass referrer through your MCP tool

If your MCP server helps agents transact on Base, expose the Builder Code in the response so the receiving agent knows the referral chain:

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 98 lines · 54 tokens per session scan A 0da36a3f3786

Subscribe to this mod's changes

erc8021-attribution is a skill published in the GitHub repository gblinproject/gblin-treasury-risk-regime (1 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 900 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.