GrantScope

GrantScope privately scans, analyzes, and revokes risky Web3 token permissions using Anon-RPC.

GrantScope

Created At

ETHGlobal Mumbai

Project Description

GrantScope — Privacy-First Web3 Permission Management

GrantScope is a privacy-first Web3 security platform that helps Ethereum users discover, understand, and revoke token-spending permissions while protecting their blockchain query privacy through the Ethereum Foundation's Anon-RPC.

The Problem

Every time users interact with decentralized exchanges or DeFi applications, they may grant smart contracts permission to spend their tokens. These approvals, sometimes unlimited, can remain active long after the original transaction is completed. If an authorized contract is compromised or malicious, users' funds may be exposed without their private keys being stolen.

The problem becomes more complex with Uniswap Permit2 and smart accounts, where permissions can exist across multiple authorization layers. Revoking one permission does not necessarily eliminate every related authorization.

Additionally, traditional wallet security scanners send blockchain queries directly to RPC providers, potentially exposing users' IP addresses alongside the wallet addresses they inspect.

Our Solution

GrantScope combines wallet permission security with privacy-preserving blockchain infrastructure.

Key Features:

  • Privacy-First Scanning: Integrates Ethereum Foundation's Anon-RPC to route blockchain reads through supported anonymizing transports such as Tor or Nym, reducing direct exposure of users' IP addresses to RPC providers.
  • ERC-20 Permission Discovery: Identifies token-spending approvals using blockchain events and smart contract allowance queries.
  • Permit2 Analysis: Inspects supported Uniswap Permit2 permissions and explains the relationship between underlying ERC-20 approvals and individual spender authorizations.
  • Risk Assessment: Highlights unlimited allowances, excessive spending permissions, expired authorizations, and permissions requiring review.
  • Permission Revocation: Enables users to revoke unwanted approvals through wallet-authorized transactions and verify the updated blockchain state.
  • Smart Account Awareness: Supports read-only inspection of smart-account addresses while clearly identifying limitations around account-specific delegations.
  • Privacy Transparency: Provides visibility into RPC routing, anonymized requests, network performance, and disclosed privacy exceptions.

How It Works

Users enter an Ethereum wallet address without connecting their wallet. GrantScope retrieves supported permission data through Anon-RPC, analyzes active allowances, and presents an understandable security dashboard.

Users can inspect which contracts have spending authority, understand their potential exposure, and connect their wallet only when they choose to revoke a permission. After the transaction is confirmed, GrantScope checks the updated allowance to verify the result.

What Makes GrantScope Different?

Unlike traditional approval dashboards, GrantScope emphasizes both permission security and inspection privacy. It helps users understand layered token authorizations while minimizing unnecessary exposure of their network identity during blockchain reads.

GrantScope does not claim to hide public blockchain transactions or support every smart-account permission mechanism. Instead, it provides transparent privacy guarantees, explainable assessments, and user-controlled security actions.

Our Vision

We believe checking your wallet's security should not require sacrificing your privacy.

GrantScope makes Ethereum permissions understandable, revocable, and more private to inspect—empowering users to take control of their Web3 security.

How it's Made

How It's Made — GrantScope

GrantScope is built using React, Vite, TypeScript, and Tailwind CSS, with a modular, browser-first architecture designed around privacy, security, and performance.

Frontend and Architecture

We used React and TypeScript to build a responsive Web3 security dashboard, with Tailwind CSS for styling and reusable UI components. The application separates wallet inspection, permission discovery, risk analysis, transaction execution, and privacy monitoring into independent modules.

Instead of relying on a centralized backend to process wallet data, we designed GrantScope to perform blockchain analysis directly in the browser, minimizing unnecessary exposure of wallet information.

Ethereum Foundation — Anon-RPC Integration

The core integration is the Ethereum Foundation's Anon-RPC, which enables privacy-preserving blockchain reads through anonymizing transports such as Tor and Nym.

We integrated the Anon-RPC browser harness into our Ethereum RPC layer, allowing supported JSON-RPC requests to pass through an anonymizing worker rather than directly contacting a conventional RPC provider.

A particularly important engineering challenge was handling anonymous transport initialization, network timeouts, and gateway availability. We designed the transport layer to fail closed, meaning it does not silently switch to a non-anonymous RPC connection when an anonymous transport fails.

We also developed a Privacy Lab to report RPC routing, transport status, request latency, and disclosed non-anonymous operations.

ERC-20 and Permit2 Permission Analysis

We used viem and Ethereum smart contract ABIs to inspect ERC-20 token balances and allowances through functions such as balanceOf() and allowance().

Our permission discovery engine uses Ethereum Approval events and eth_getLogs queries to identify potential token-spender relationships, followed by current-state contract reads to verify active allowances.

We also incorporated Uniswap Permit2's AllowanceTransfer model to analyze an additional authorization layer, including spender allowances and expiration times.

A key technical design decision was distinguishing underlying ERC-20 approvals from Permit2 permissions so overlapping spending authority is not incorrectly double-counted.

Permission Revocation

GrantScope integrates wallet-based transaction signing to help users revoke unwanted token permissions.

For ERC-20 tokens, revocation uses approve(spender, 0). Supported Permit2 authorizations can be revoked through the appropriate Permit2 contract functions.

After transaction confirmation, the application rechecks the current permission state instead of assuming that submitting a transaction means the permission was successfully removed.

For testing, we deployed a custom GrantScope Test Token (GST) on Ethereum Sepolia, minted test tokens, and created a positive token allowance to validate the scanning and revocation workflow.

Explainable Security Analysis

We built a deterministic permission assessment engine that evaluates allowance size, token balances, expiration, spender information, and available scanning coverage.

Rather than labeling unknown contracts as malicious, GrantScope explains which permissions deserve review and why.

We also support read-only scanning of smart-account addresses while acknowledging that session keys and account-specific modules require additional integration.

What Makes It Technically Interesting?

The most distinctive part of GrantScope is combining privacy-preserving RPC infrastructure with practical wallet security operations.

The architecture includes:

  • Browser-based blockchain scanning without mandatory wallet connection.
  • Anon-RPC transport integration with explicit failure handling.
  • Event-based ERC-20 permission discovery.
  • Cross-layer ERC-20 and Permit2 authorization analysis.
  • Wallet-authorized revocation with post-transaction verification.
  • A transparent privacy dashboard that distinguishes anonymized requests from exceptions.

GrantScope demonstrates how Ethereum security tools can help users inspect and manage onchain permissions while reducing unnecessary exposure of their blockchain query activity.

background image mobile

Join the mailing list

Get the latest news and updates