Skip to content
 
 

Repository files navigation

8021 Attribution Checker

Validate whether Base blockchain transactions are 8021 attributed by checking if the last 16 bytes of input data match the pattern 80218021802180218021802180218021.

Learn more: ERC-8021

Quick Start

npm install
npm run dev

Open http://localhost:3000 and enter a transaction hash.

API

Verify Attribution

Endpoint: POST /api/v1/verify

Request:

{
  "hash": "0x...",
  "isUserOperation": false
}
Field Type Description
hash string Transaction or userOperation hash
isUserOperation boolean Set true for Account Abstraction transactions

Response:

{
  "success": true,
  "attributed": true,
  "data": {
    "hash": "0x...",
    "isUserOperation": false,
    "schemaId": 0,
    "codes": ["baseapp"],
    "suffix": "80218021802180218021802180218021",
    "inputData": "0x..."
  }
}

Example:

curl -X POST https://your-domain.com/api/v1/verify \
  -H "Content-Type: application/json" \
  -d '{"hash": "0x6e864ef...", "isUserOperation": false}'

Also supports GET /api/v1/verify?hash=0x...&isUserOperation=false

About

A Next.js app that validates whether Base blockchain transactions are 8021 attributed by checking if the last 16 bytes of input data match the 8021 pattern.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages