Belong.net Logo
API, SDK & contracts

Smart Contracts

Documentation for Belong's second-generation smart contracts related to the check-in system.
A purple robot surrounded by HubRegistry, HubMembership, and CheckIn labels beside Belong Smart Contracts v2.
The contract architecture separates hub registration, membership, and check-in logic.Original post

Smart Contracts v2

This section of the repository contains the second-generation smart contracts designed for the check-in system and related hub membership logic within the Belong ecosystem.

Use this page to find the contract source and understand how hubs, membership, and check-in fit together. A hub is the venue or community container; its membership rules determine who can use the access flow. Application developers can start with the API before working directly with contract code.

View the source code and documentation here:
👉 GitHub — checkin-contracts


🧩 Architecture Overview

The Smart Contracts v2 are modular and built with extensibility in mind.
They define the core logic for hub membership, user verification, and activity check-ins.

Main Components

HubRegistry

  • Manages registration and ownership of hubs.
  • Keeps track of hub metadata and authorized administrators.
  • Provides access control for other contracts interacting with specific hubs.

Membership

  • Handles user memberships within hubs.
  • Supports joining and leaving hubs, as well as assigning roles.
  • Integrates with HubRegistry for permission validation.

CheckIn

  • Implements the check-in mechanism for events or hubs.
  • Verifies user membership and eligibility.
  • Emits on-chain events for transparency and analytics.

Utils and Interfaces

  • Contain shared utilities and standardized interfaces for interoperability.
  • Ensure that external integrations can interact safely with the core contracts.

⚙️ Technical Details

  • Language: Solidity
  • Framework: Hardhat
  • Network Support: EVM-compatible chains (BNB, Polygon, Skale, etc.)
  • Version: v2 branch (active development)
Copyright © 2026