Skip to content

driver-bail/Base-Scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Scope (Built for Base)

Deployed on Base Mainnet.

Base Scope is a browser-first reference repository that demonstrates scoped, read-only inspection of the Base blockchain using Coinbase Wallet SDK and official Base RPC endpoints. The project is intentionally minimal, auditable, and suitable for validating Base tooling and account abstraction–compatible flows.


Base ecosystem alignment

Built for Base.

Supported networks:

The application explicitly targets Base networks by chainId and relies on official Base infrastructure.


What the script does

The app.base-scope.ts script provides an in-browser interface that:

  1. Connects a wallet using Coinbase Wallet SDK
  2. Reads and validates the active chainId
  3. Performs read-only Base RPC queries:
    • latest block number
    • ETH balance of the connected address
  4. Fetches latest block metadata (timestamp, gas usage)
  5. Allows ETH balance checks for arbitrary addresses
  6. Outputs Basescan links for verification

All interactions are read-only. No transactions are broadcast.


Repository structure

  • app.base-scope.ts
    Browser-based script that connects to a wallet, toggles Base networks, and inspects onchain state.

  • contracts/
    Solidity contracts deployed to Base Sepolia for testnet validation:

    • ERC20.sol — contract implementing weighted voting using ERC20 tokens, allowing token claims, voting on issues with a quorum requirement, and managing token-based voting with custom error handling
    • ERC721.sol — contract for minting and sharing Haiku NFTs, with unique haiku validation, ERC721 token functionality, and custom error handling for duplicate haikus and ownership checks
  • package.json
    Dependency manifest including Coinbase SDKs and 2–5 repositories from the Base GitHub organization.

  • README.md
    Technical documentation, Base references, licensing, and testnet deployment records.


Libraries used

  • @coinbase/wallet-sdk
    Wallet connection layer compatible with Coinbase tooling and Base accounts.

  • viem
    RPC client used for Base reads and block inspection.

  • Coinbase GitHub repositories
    Included as dependencies to reference the broader Coinbase open-source ecosystem.

  • Base GitHub repositories
    Included as dependencies to document linkage with Base tooling and infrastructure.


Installation and execution

Install dependencies using Node.js.
Serve the project with a modern frontend dev server and open the page in a browser.

Expected result:

  • Connected address printed with Basescan link
  • Active chainId displayed (8453 or 84532)
  • Read-only Base RPC data displayed
  • Latest block metadata available on demand

License

MIT License

Copyright (c) 2025

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Author

GitHub: https://github.com/driver-bail Email: driver-bail-0n@icloud.com Public contact: https://x.com/AshtonBrad73398


Testnet Deployment (Base Sepolia)

As part of pre-production validation, one or more contracts may be deployed to the Base Sepolia test network to confirm correct behavior and tooling compatibility.

Network: Base Sepolia
chainId (decimal): 84532
Explorer: https://sepolia.basescan.org

Contract "ERC20" address:
0x35662317ec7cc818dc2aa73845972e36e0eb3549

Deployment and verification:

Contract "ERC721" address:
0x0f274f01d742610850c51edf7a77d00a92908271

Deployment and verification:

These testnet deployments provide a controlled environment for validating Base tooling, account abstraction flows, and read-only onchain interactions prior to Base Mainnet usage.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors