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
npm install
npm run devOpen http://localhost:3000 and enter a transaction hash.
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