Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Entity

An Entity is a uniquely identifiable data object, defined by a GraphQL schema, that represents a state or event (e.g., a specific NFT or transfer) within an indexed blockchain dataset.
Chainscore © 2026
definition
BLOCKCHAIN GLOSSARY

What is an Entity?

In blockchain and computer science, an entity is a fundamental concept representing a distinct, identifiable actor or object within a system.

An entity is a distinct, identifiable actor, object, or component within a system that can be uniquely referenced and can perform actions or hold state. In blockchain contexts, common entities include user accounts (controlled by private keys), smart contracts, validator nodes, and decentralized autonomous organizations (DAOs). Each entity is defined by a unique identifier, such as an Ethereum address (0x...) or a public key, which allows the network to track its interactions, permissions, and asset ownership. This precise identification is the foundation for accountability and programmability in decentralized systems.

The concept is critical for understanding on-chain interactions. Every transaction is an action initiated by one entity (the sender) targeting another (the recipient or contract). For example, when a user swaps tokens on a decentralized exchange, the entities involved are the user's wallet, the liquidity pool's smart contract, and the token contracts. This entity-centric model enables the transparent audit trail inherent to blockchains, as all state changes are permanently linked to the addresses of the participating entities.

Beyond simple accounts, entities can be complex and autonomous. A smart contract is a non-human entity that executes code when triggered, holding its own balance and state. A DAO is a higher-order entity governed by the collective actions of its member token holders. In zero-knowledge proof systems, an entity might be represented by a cryptographic commitment rather than a public address, balancing identifiability with privacy. Understanding the types and capabilities of entities is essential for analyzing network security, governance, and economic flows.

From a data modeling perspective, entities and their relationships form the core of blockchain analytics. Tools like The Graph index on-chain data by structuring it around entities (e.g., a specific DeFi protocol) and their events (e.g., deposits, swaps). This abstraction allows developers and analysts to query complex interactions without parsing raw transaction logs. The precise definition and isolation of entities ensure that decentralized applications can interoperate predictably, knowing exactly with whom or what they are transacting.

how-it-works
CORE CONCEPT

How Entities Work in Indexing

In blockchain data indexing, an entity is a structured data model that represents a distinct on-chain or off-chain object, such as a smart contract, token, wallet address, or transaction. It serves as the fundamental unit for organizing and querying data within an indexer's database.

An entity is the primary data model within a subgraph or indexing framework like The Graph. It defines the schema for a specific type of record, such as a User, TokenTransfer, or Pool. Each entity has a unique ID and a set of typed fields (e.g., String, BigInt, Bytes) that store its state and attributes. When an indexer processes blockchain events, it creates, updates, or deletes entity instances based on the logic defined in the subgraph's mapping handlers, effectively translating raw, sequential blockchain data into a queryable graph database.

The power of entities lies in their relationships. Entities can be linked through fields, enabling complex graph-like queries. For example, a Transaction entity can have a from field linking to a Wallet entity and an involvedTokens field linking to multiple Token entities. This relational structure allows developers to query interconnected data in a single request—such as "fetch all transactions for this wallet and the associated token details"—which would require multiple, inefficient calls to a standard blockchain node. Indexers use these defined relationships to optimize data storage and retrieval.

Entity state management is deterministic and event-driven. The indexer's data source specifies which smart contracts and events to monitor. When a relevant event (like a Transfer) is emitted, the mapping handler executes, loading the current state of related entities, applying the business logic from the event data, and then saving the updated entities back to the store. This process ensures the indexed database is a materialized view that reflects the cumulative state of the blockchain up to the indexed block, enabling fast and complex queries that are impossible directly from an RPC endpoint.

key-features
BLOCKCHAIN CONTEXT

Key Features of an Entity

In blockchain systems, an Entity is a distinct, identifiable participant or component within a network. These are the fundamental actors and objects that interact to create the system's state.

01

Externally Owned Account (EOA)

An Entity controlled by a private key, typically representing a user. It is the most common type of account on networks like Ethereum.

  • Key Features: Can initiate transactions, hold native tokens (e.g., ETH), and sign messages.
  • Limitation: Contains no executable code itself; all logic is triggered via transactions to other addresses.
02

Smart Contract Account

An Entity defined by code deployed at a specific address on-chain. It is autonomous and executes logic when receiving transactions.

  • Key Features: Contains persistent storage and executable functions. Operations are deterministic and verifiable by all network nodes.
  • Example: A Decentralized Exchange (DEX) pool or an ERC-20 token contract are Smart Contract Entities.
03

Decentralized Autonomous Organization (DAO)

A collective Entity governed by smart contracts and member votes, operating without central leadership.

  • Mechanism: Governance tokens confer voting rights on proposals (e.g., treasury spending, protocol upgrades).
  • Examples: MakerDAO, which manages the DAI stablecoin, and Uniswap Governance, which controls protocol fees.
04

Validator / Miner

A network-participant Entity responsible for consensus and block production.

  • Proof-of-Stake (PoS): Validators stake native tokens to propose and attest to blocks.
  • Proof-of-Work (PoW): Miners compete using computational power to solve cryptographic puzzles.
  • Role: These entities are critical for security and liveness, and are incentivized via block rewards and transaction fees.
05

Oracle

A trusted external data-source Entity that bridges off-chain information to the blockchain.

  • Function: Provides smart contracts with real-world data (e.g., asset prices, weather outcomes).
  • Design Patterns: Can be decentralized (e.g., Chainlink network) or centralized, with varying trust assumptions.
06

Bridge & Cross-Chain Protocol

An Entity or set of contracts that enables the transfer of assets and data between distinct blockchain networks.

  • Mechanisms: Use mint/burn or lock/unlock models with varying security models (trusted, federated, trust-minimized).
  • Risk: These are complex entities and frequent targets for exploits, representing significant systemic risk.
schema-definition
BLOCKCHAIN DATA MODELING

Entity Schema Definition

An entity schema is a formal data model that defines the structure, attributes, and relationships of a specific type of record or object within a blockchain data system, enabling structured querying and analysis.

In the context of blockchain analytics, an entity schema is a blueprint that specifies the properties and connections for a class of on-chain actors or assets, such as wallets, smart contracts, tokens, or DAOs. It transforms raw, low-level blockchain data—like transaction hashes and log events—into semantically meaningful, queryable objects. For example, a TokenTransfer entity schema would define fields for from_address, to_address, amount, token_address, and block_timestamp, creating a consistent model for all transfer events across different protocols.

The definition process involves mapping smart contract events and transaction traces to predefined entity types and their properties. This is often done using a specialized query language or abstraction layer, such as those provided by The Graph's subgraphs or Dune Analytics' spellbooks. A well-designed schema acts as an abstraction layer, insulating analysts from the underlying complexity of raw chain data and enabling them to ask business-logic questions (e.g., 'total daily DEX volume') instead of technical ones (e.g., 'decode all Swap events from this ABI').

Implementing an entity schema provides critical structure for on-chain data indexing and decoding. It allows analytics platforms to efficiently organize, relate, and cache data, powering everything from dashboards to complex financial models. Key related concepts include data normalization, which ensures consistency across sources, and entity resolution, which is the process of linking multiple addresses or identifiers to a single real-world actor, such as a protocol treasury or a known investor.

For developers and data engineers, defining a robust entity schema is a foundational step in building reliable blockchain applications. It dictates how data is ingested, transformed, and served. Common challenges include handling upgradable contracts where event signatures change, managing the sheer volume of chain data, and designing schemas that are both specific enough to be useful and flexible enough to accommodate future protocol changes without requiring a complete overhaul of downstream applications.

code-example
GLOSSARY

Code Example: Entity in a Schema

A practical illustration of how an entity is defined and structured within a data schema, such as those used in blockchain indexing or relational databases.

In data modeling, an entity is a distinct object or concept—like a user, transaction, or smart contract—about which data is stored. A schema formally defines this entity's structure using attributes (or fields) that describe its properties and relationships to other entities. For example, in a blockchain indexing context, an Account entity would be defined with attributes for its address, balance, and a relationship to a list of associated Transaction entities. This structured definition serves as a blueprint for how data is organized, queried, and interconnected within a database or an indexing service like The Graph.

The definition of an entity within a schema is typically expressed in a schema definition language (SDL), such as GraphQL SDL or a similar declarative syntax. Key components include the type keyword to declare the entity, followed by a list of its fields and their data types (e.g., String, ID, BigInt). Relationships are defined by field types that reference another entity type, often indicating a one-to-many or many-to-one connection. This explicit schema enables powerful, type-safe querying, ensuring that applications request only valid combinations of data and receive it in a predictable shape.

Consider a simplified schema for a decentralized application tracking non-fungible tokens (NFTs). An NFT entity might be defined with fields for id, tokenId, owner (linking to an Account), and collection (linking to a Contract). Simultaneously, a Transfer entity would log events, with fields for from, to, timestamp, and a relationship back to the NFT. This relational structure allows complex queries, such as "fetch all NFTs owned by a specific address along with their transfer history," to be executed efficiently by the underlying indexing engine, transforming raw blockchain data into a queryable graph of entities.

examples
ENTITY TYPES

Common Entity Examples

In blockchain analytics, an Entity is a cluster of addresses controlled by a single actor. These are the primary categories used to segment and analyze on-chain activity.

06

Institutional Fund / VC

A venture capital firm, hedge fund, or asset manager operating on-chain. These entities are clusters of treasury, deployment, and staking addresses. Notable examples include:

  • Paradigm (Investment deployment multisigs)
  • a16z Crypto (Fund wallets and delegate addresses)
  • Alameda Research (Historical trading clusters) Their on-chain flows signal investment theses, portfolio allocations, and lock-up schedules for vested tokens.
$100B+
Crypto AUM (Est.)
DATA MODEL COMPARISON

Entity vs. Related Data Structures

A technical comparison of the on-chain Entity data structure with related concepts like accounts, smart contracts, and tokens.

FeatureEntityEOA / AccountSmart ContractToken (ERC-20/721)

Primary Purpose

Represent a real-world actor or organization

Control assets and sign transactions

Execute arbitrary logic and manage state

Represent a fungible or non-fungible asset

State Storage

Custom, structured data fields (metadata, credentials)

Native balance, nonce

Arbitrary contract storage

Balances, approvals, token metadata

Control Mechanism

Governed by a Controller (EOA or contract)

Private key signature

Immutable code, may have an owner

Owner or minter permissions, often via contract

On-Chain Identity

Persistent, unique identifier (Entity ID)

Public address (EOA)

Contract address

Contract address (and token ID for NFTs)

Interoperability

Designed for cross-protocol attestations and linking

Universal across EVM chains

Chain-specific, requires deployment

Chain-specific, standards enable wallet support

Data Mutability

Mutable by Controller; attestations are append-only

Mutable (balance/nonce updates)

Immutable code, mutable storage

Mutable balances, immutable total supply (typically)

Standardization

Chainscore Entity Standard (proposed)

Native to protocol (e.g., Ethereum Yellow Paper)

EVM bytecode, various creation standards

ERC-20, ERC-721, ERC-1155 standards

ecosystem-usage
ENTITY

Ecosystem Usage & Protocols

In blockchain, an Entity is a distinct, identifiable participant or component within a decentralized network, ranging from individual wallets to complex smart contracts and DAOs. Understanding entity interactions is fundamental to analyzing protocol mechanics and ecosystem health.

01

Core Participant Types

Blockchain entities are categorized by their function and autonomy.

  • Externally Owned Accounts (EOAs): Wallets controlled by private keys, used by human users or off-chain services to initiate transactions and sign messages.
  • Contract Accounts: Smart contract code deployed on-chain, acting autonomously based on predefined logic (e.g., a Uniswap pool or Compound lending market).
  • Decentralized Autonomous Organizations (DAOs): Entities governed by token-holding members who vote on proposals executed via smart contracts.
02

On-Chain Identification

Entities are primarily identified by their unique address, a cryptographic hash derived from a public key or contract deployment.

  • EOA Address: Generated from a public key (e.g., 0x742d35...).
  • Contract Address: Determined at deployment by the creator's address and nonce.

Secondary identifiers include:

  • ENS Domains: Human-readable names (e.g., vitalik.eth).
  • Protocol-Specific IDs: Internal identifiers within a system, like a Position ID for a Uniswap V3 liquidity position.
03

Entity Interaction Patterns

Protocol mechanics are defined by how entities interact. Key patterns include:

  • User-to-Contract: An EOA calls a function on a smart contract (e.g., swapping tokens on a DEX).
  • Contract-to-Contract: A smart contract calls another contract, creating complex, composable DeFi Lego systems (e.g., a yield aggregator depositing funds into a lending protocol).
  • Flash Loans: A contract borrows assets within a single transaction, performs arbitrage or liquidation, and repays the loan, all without collateral.

These interactions form the state transition of the blockchain.

04

Analysis & Graph Theory

Entity analysis uses graph theory to map ecosystem health and risks.

  • Transaction Graphs: Nodes are entities, edges are transactions or calls. Used to trace fund flows and identify whale wallets.
  • Control Graphs: Map ownership and voting power, crucial for assessing DAO governance centralization.
  • Dependency Graphs: Show contract-to-contract calls to identify systemic risk; if a core contract fails, dependent protocols may fail (contagion risk).

Tools like Etherscan and The Graph provide foundational data for this analysis.

05

Entity Abstraction (ERC-4337)

Account Abstraction is a paradigm shift that blurs the line between EOAs and smart contracts. ERC-4337 introduces UserOperations and Bundlers, allowing:

  • Smart Contract Wallets: User accounts with programmable logic for social recovery, multi-signature rules, and gas sponsorship.
  • Session Keys: Temporary permissions for specific dApp interactions.
  • Paymasters: Third parties that can pay transaction fees on a user's behalf.

This upgrades the basic EOA entity into a more flexible and secure programmable account.

06

Regulatory & Legal Entity Mapping

Linking on-chain entities to real-world legal structures is a growing focus for compliance (Travel Rule, MiCA).

  • VASPs: Virtual Asset Service Providers (exchanges, custodians) are legal entities that control many on-chain addresses.
  • Attestations: Services like Ethereum Attestation Service (EAS) allow verifiable, on-chain claims about an address (e.g., KYC verification).
  • On-Chain Investigations: Firms use clustering heuristics to group addresses likely controlled by a single entity, tracing activity for sanctions compliance or law enforcement.
ENTITY

Technical Deep Dive

An entity is a distinct, identifiable object or concept within a system, such as a smart contract, wallet address, or token. This section explores the technical properties, behaviors, and relationships of core blockchain entities.

An Externally Owned Account (EOA) is a blockchain account controlled by a private key, typically representing a user or an external actor. It is defined by a cryptographic key pair (public/private) and has no associated code. In contrast, a Contract Account (or smart contract) is controlled by its own code, has no private key, and is deployed to a specific address on-chain. The key differences are:

  • Control: EOAs are controlled by private keys; contracts are controlled by their programmed logic.
  • Initiation: Only an EOA can initiate a transaction; contracts can only execute in response to a transaction or message call.
  • State: Both have a balance, nonce, storage, and codeHash, but a contract's codeHash points to its deployed bytecode, while an EOA's is empty (0x).
ENTITY

Common Misconceptions

Clarifying frequent misunderstandings about blockchain entities, from smart contracts to decentralized autonomous organizations.

No, a smart contract is a piece of self-executing code deployed on a blockchain, not a legally binding agreement in the traditional sense. While it can encode terms and automate enforcement (e.g., releasing funds when conditions are met), it lacks the legal nuance, jurisdiction, and interpretative flexibility of a paper contract. Its "contract" refers to the computational logic, not legal standing. For a smart contract to have legal force, it must be explicitly linked to a traditional legal framework through an oracle or referenced in a separate legal document.

ENTITY

Frequently Asked Questions

Common questions about the concept of an entity in blockchain and smart contract development.

In blockchain and smart contract development, an entity is a distinct, identifiable object or actor that can own assets, execute actions, and interact with a decentralized system. This is a conceptual term, not a native blockchain primitive, used to model participants like externally owned accounts (EOAs), smart contract accounts, decentralized autonomous organizations (DAOs), or specific data structures within a contract. An entity's core attributes are a unique identifier (like an address) and the ability to hold a state or balance. Understanding entities is fundamental to designing systems that manage permissions, ownership, and complex interactions on-chain.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Entity: Definition in Blockchain & NFT Indexing | ChainScore Glossary