# NodeFi Protocol

NodeFi Protocol is a decentralized financial layer designed to connect **real-world infrastructure networks with on-chain capital markets**.

By combining **RWA (Real World Assets), DePIN (Decentralized Physical Infrastructure Networks), and DeFi**, NodeFi enables infrastructure services such as compute power, bandwidth, and sensor data to be transformed into **tokenized financial assets**.

This framework allows infrastructure operators to access liquidity while enabling DeFi participants to earn yield backed by real-world network demand.

***

## Core Participants

The NodeFi ecosystem consists of three main participants.

| Participant         | Role                                             | Benefit                             |
| ------------------- | ------------------------------------------------ | ----------------------------------- |
| Node Operators      | Deploy and maintain hardware infrastructure      | Earn service-based revenue          |
| Liquidity Providers | Supply capital to infrastructure liquidity pools | Earn yield from network demand      |
| Service Users       | Consume compute, bandwidth, or data services     | Access decentralized infrastructure |

This creates a **market-driven infrastructure economy**.

***

## Protocol Workflow

NodeFi operates through a continuous infrastructure finance cycle.

| Step | Process                                        |
| ---- | ---------------------------------------------- |
| 1    | Infrastructure nodes are deployed              |
| 2    | Nodes provide real-world services              |
| 3    | Services are tokenized as on-chain assets      |
| 4    | Liquidity providers fund infrastructure pools  |
| 5    | Revenue generated from services is distributed |

This mechanism allows infrastructure networks to scale through decentralized capital markets.

***

## Protocol Architecture

NodeFi is composed of four primary layers.

| Layer                | Description                                 |
| -------------------- | ------------------------------------------- |
| Infrastructure Layer | Physical hardware nodes providing services  |
| Verification Layer   | Node performance validation and data proofs |
| Smart Contract Layer | Protocol logic and revenue distribution     |
| Liquidity Layer      | DeFi capital markets and liquidity pools    |

This architecture enables a seamless connection between **real-world infrastructure and decentralized finance.**

***

## Infrastructure Tokenization

NodeFi introduces a mechanism called **Service Share Tokenization**, which converts infrastructure output into tradable digital assets.

Each infrastructure service can be represented as a **Service Share**, which represents a portion of the infrastructure capacity and its corresponding revenue.

| Infrastructure Type | Tokenized Asset  |
| ------------------- | ---------------- |
| Edge Compute        | Compute Shares   |
| Bandwidth Nodes     | Bandwidth Shares |
| Sensor Networks     | Data Shares      |
| Data Infrastructure | Storage Shares   |

These tokenized assets can participate in liquidity pools and DeFi markets.

***

## Smart Contract Logic (Example)

The following simplified smart contract illustrates how NodeFi distributes revenue generated by infrastructure services.

```
pragma solidity ^0.8.0;

contract NodeFiRewards {

    mapping(address => uint256) public nodeStake;
    mapping(address => uint256) public rewards;

    uint256 public totalStake;

    function stakeNode() public payable {
        nodeStake[msg.sender] += msg.value;
        totalStake += msg.value;
    }

    function distributeRevenue(uint256 revenue) public {
        for (uint i = 0; i < participants.length; i++) {
            address node = participants[i];
            uint256 share = (nodeStake[node] * revenue) / totalStake;
            rewards[node] += share;
        }
    }

    function claimRewards() public {
        uint256 reward = rewards[msg.sender];
        rewards[msg.sender] = 0;
        payable(msg.sender).transfer(reward);
    }

}
```

This simplified model demonstrates how infrastructure revenue can be distributed automatically through smart contracts.

***

## Node Verification Mechanism

To ensure fair and accurate reward distribution, NodeFi integrates a **verification layer** that validates node performance.

Key verification metrics include:

* Node uptime
* Bandwidth capacity
* Compute performance
* Task completion rate

Verified performance data is submitted to the protocol through **oracles or attestation networks** before rewards are distributed.

***

## Infrastructure Finance Layer

NodeFi creates a financial system where infrastructure becomes **liquid, investable, and scalable**.

Through tokenization and decentralized liquidity markets, NodeFi enables:

* Infrastructure-backed yield
* Liquidity access for node operators
* Capital-efficient network expansion

This transforms decentralized infrastructure into a **global financial marketplace**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nodefi-protocol.gitbook.io/nodefi-protocol-docs/nodefi-protocol.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
