> ## Documentation Index
> Fetch the complete documentation index at: https://neweraai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart contracts

## The decentralized infrastructure powering the NewEra protocol.

Every important action within NewEra is executed through smart contracts deployed on BNB Chain.

Instead of trusting a centralized platform to process transactions, the protocol enforces predefined rules directly on-chain, ensuring that ownership, payments, and treasury allocations are transparent and verifiable.

***

## Core Contracts

Implements the BEP-20 utility token used for AI generation, marketplace transactions, ecosystem rewards, and protocol operations.

Processes AI generation payments and records every completed generation as an on-chain economic event.

Handles listings, purchases, ownership transfers, and payment settlement for AI-generated assets and prompts.

Receives the protocol allocation from marketplace activity and funds ecosystem development, rewards, and future expansion.

***

## Automated Settlement

### Buyer Initiates Purchase

The buyer purchases an asset using NEA.

### Contract Verification

The marketplace contract verifies ownership and listing status.

### Ownership Transfer

Ownership is transferred automatically to the buyer.

### Revenue Distribution

Creator earnings and treasury allocation are distributed according to protocol rules.

### Transaction Complete

The blockchain permanently records the transaction.

***

## Protocol Guarantees

| Function         | Smart Contract Responsibility      |
| :--------------- | :--------------------------------- |
| AI Generation    | Records generation payments        |
| Asset Ownership  | Verifies creator ownership         |
| Marketplace      | Executes purchases and transfers   |
| Creator Payments | Automatically distributes earnings |
| Treasury         | Receives protocol allocation       |
| Token Utility    | Powers ecosystem interactions      |

***

## Design Principles

Every transaction can be independently verified on-chain.

Protocol rules execute automatically without manual intervention.

Completed transactions and ownership records cannot be altered.

***

## Upgrade Philosophy

The protocol is designed to evolve over time while preserving creator ownership and ecosystem integrity.

Future upgrades may introduce additional contracts for new AI models, creator tools, governance, and marketplace functionality without changing the core principles of transparent ownership and decentralized settlement.

***

Every generation, ownership transfer, marketplace transaction, and payment follows transparent protocol rules that are executed automatically on-chain.
