Media Protocol

Protocol, Network, Foundation

Let’s clarify the differences among the various components of the Media Ecosystem. Some of these might confuse newcomers. Media Network concept was born first, and subsequently, the Media Protocol was established as its foundation. The Media Foundation is the driving force behind the development of both projects.
Media Protocol Media Protocol

A suite of persistent, non-upgradable smart contracts that together form a protocol, enabling anyone to create unstoppable peer-to-peer marketplaces. Learn more about the Media Protocol.
Media Network Media Network

Media Network is a decentralized web services marketplace, offering a peer-to-peer alternative to industry giants like Google Cloud & AWS. It’s anchored in the Media Protocol’s permissionless system. Visit Media Network’s website to learn more.

Media Protocol
Media Foundation Media Foundation

This entity acts as the driving force behind the development of the Media Protocol and Media Network. Get the latest updates from the Media Foundation’s X profile.
note

Some concepts and portions of this documentation have been inspired by or adapted from Uniswap. We acknowledge and appreciate the contributions of the Uniswap community to the decentralized ecosystem.

Media Protocol
Introduction

Media Protocol is a blockchain-based system that enables individuals to create their own marketplaces and generate revenue through transaction fees. Designed to connect clients with providers and facilitate direct interactions, these marketplaces allow users to buy or sell virtually any type of digital or physical goods and services.

The mechanism is straightforward: users can register as providers to list their products or services, while others, acting as clients, can browse and engage with these offerings.

The protocol is implemented as a set of persistent, non-upgradable smart contracts, which will be deployed across all major permissionless blockchains. This widespread deployment underscores the protocol’s emphasis on censorship resistance, security, self-custody, and independent operations, free from the constraints of intermediaries.
Key Features

Instanceable: Users can initialize their own marketplaces and set multiple parameters, including the transaction fee percentage and the fee receiver.
Permissionless: Both the protocol and the marketplaces initialized through it are accessible to everyone, requiring no permission from a central authority.
Peer-to-Peer: It enables direct interactions between users, eliminating the need for intermediaries, and promoting censorship resistance.
Immutable: The protocol is implemented as a set of persistent, non-upgradable smart contracts, ensuring consistency and reliability.
Decentralized Governance: Managed by a decentralized autonomous organization (DAO) controlled by its user community.
Multi-Chain: The protocol is deployed across multiple blockchains, providing flexibility for users to engage on their preferred chain.
Uniswap Integrated: It allows providers to register and clients to pay for goods and services using any token with available liquidity on Uniswap or in Uniswap-compatible pools.
Billing System: Offers a user-friendly system for managing payments and billing. It allows providers to create subscription-based or one-time payment offers and set parameters like usage limits, minimum subscription durations, and cancellation policies.

What is the Media Token (MEDIA)?

MEDIA is the governance and utility token of the Media Protocol & Media Network. In its utility role, MEDIA serves as a medium of exchange between clients and providers. For governance, the decentralized nature of the protocol, which prevents control by a single entity, places oversight in the collective hands of individuals and entities. This democratic structure allows MEDIA token holders to cast votes on decisions important to the protocol.
Exploring the Functions of MEDIA Token

The MEDIA token plays four key roles: as a commitment from registered providers, as a payment method for transactions, as a means for MEDIA holders to participate in the protocol’s governance, and for treasury management.
Commitment

Providers who wish to register in a specific marketplace initiated on the Media Protocol must stake a Uniswap V3 Position NFT representing a minimum liquidity value as set by the owner of that marketplace. To mint these NFTs, users must contribute liquidity to the MEDIA/ETH pair on Uniswap V3.

By staking a UNI-V3-POS NFT with the required liquidity and ensuring it is in range, providers become registered for that particular marketplace and are then able to offer services and interact with clients. This staking mechanism is essential for providers to demonstrate their commitment to a specific marketplace and contribute to the trust and stability of the protocol.
Transactions

Providers price their offerings in MEDIA tokens. Clients use MEDIA tokens to secure these offerings, leading to formalized deals. Billing is based on the duration and rate agreed upon in these deals. At the conclusion or cancellation of a deal, tokens are distributed to the provider for services rendered, with any unused tokens returned to the client. This ensures fairness and efficiency in transactions.
Governance

MEDIA token holders guide the Media Protocol’s direction. Through a DAO, they can vote on key decisions, influencing the protocol’s evolution and policies. For more information, please refer to the governance docs.
Treasury Management

Transaction fees generated within the protocol contribute to a treasury. MEDIA token holders have a say in how these funds are allocated, used, or distributed. Essentially, the MEDIA token allows holders to manage and direct the protocol’s financial resources.

Protocol Flow

This section aims to explain how the Media Protocol works, providing a high-level overview of its main components and how they interact with each other.
Overview

Media Protocol is a blockchain-based system that enables individuals to create their own marketplaces and generate revenue through transaction fees. Designed to connect clients with providers and facilitate direct interactions, these marketplaces allow anyone to buy or sell virtually any type of digital or physical goods and services.
Marketplaces

On the Media Protocol, anyone can initialize new marketplace instances, setting multiple parameters, including the transaction fee percentage and the fee receiver. The protocol is permissionless, meaning that both the protocol and the marketplaces initialized through it are accessible to everyone, requiring no permission from a central authority.

After initializing a marketplace, users can register as providers to list their products or services, while others, acting as clients, can browse and engage with these offerings.

Providers create offers within the marketplace, detailing the products or services they are selling, along with any associated terms and conditions. Clients can then review these offers and, if they agree with the terms, take these offers, creating deals to finalize the transaction. This deal formalizes the agreement between the provider and the client within the marketplace.

Another essential feature of the Media Protocol is the ability to attach resources to deals. Resources can be shared from clients to providers, serving as a secure method for exchanging encrypted data. This feature is particularly valuable when the transaction involves sensitive information that need to be protected.
Providers

Providers in our protocol play a crucial role by creating offers within the marketplace. These offers can include a wide range of details tailored to the provider’s needs. However, certain key information is mandatory: providers must specify the price per second (e.g., hourly or daily rate), the maximum duration, and any other relevant terms and conditions. Check the OffersTerms and Offers Structs for more information.

To participate in a marketplace, providers must first register. This registration ensures that they are recognized as legitimate participants and can list their offers for clients to view. Once registered, providers can create and manage their offers, making them available for clients to browse.

Clients can then access a list of available offers through the marketplace, where they can interact with and select offers that meet their needs. Once a client takes an offer, a deal is created, formalizing the agreement between the provider and the client.

If at any point the provider fails to adhere to the agreed-upon terms, the protocol allows for a dispute to be initiated. This ensures that providers are held accountable and that there is a mechanism in place to resolve any issues that may arise during their interaction.
Clients

Clients in our protocol engage with the marketplace primarily by browsing through available offers. These offers, created by providers, outline the terms and conditions under which products or services are offered. Clients can review these offers and, when they find one that meets their needs, choose to take it.

Once a client takes an offer, a deal is automatically created. This deal formalizes the agreement between the client and the provider and may involve the exchange of resources, depending on the nature of the offer. Clients are not required to take any further action after accepting an offer, as the deal is established based on the terms specified by the provider.

The provider is then responsible for delivering the product or service as agreed upon. Clients would tipically browse marketplaces through user interfaces, so for example, if you are acquiring a web service from a site like Media Network, after you take a CDN offer, you would be able to see the newly created endpoint URL in your CDN Resource dashboard.

Clients must accept the terms as provided by the providers, without the option to negotiate or customize the deal. This ensures clarity and consistency in the agreements made within the platform.

If a provider fails to uphold their end of the deal, the client has the option to initiate a dispute. This mechanism allows for the resolution of conflicts, ensuring that clients are protected and that the integrity of the marketplace is maintained.
Resources

Resources are a versatile mechanism designed to facilitate the secure exchange of information between clients and providers. They play a crucial role in maintaining privacy and data security within the marketplace. When a resource is shared, it can be encrypted so that only the authorized provider—the one specified in the deal—can access and read the content. This ensures that sensitive information is protected and accessible only to those intended to view it.

Resources are primarily used as a means to exchange information between parties. While they can be associated with deals, they are not necessarily tied to the creation of a deal itself. Instead, they function as an independent feature within the protocol, allowing for the secure transfer of data regardless of whether a deal or offer is in place.

Importantly, resources exist independently of deals and offers. This means they can be managed, shared, and utilized without being directly connected to a specific transaction within the marketplace. There are also no specific restrictions on what can be considered a resource, offering flexibility in the types of information that can be exchanged.
Offers

Offers are the cornerstone of transactions between providers and clients. An offer is created by a provider and contains all the essential terms and conditions under which they are willing to sell a product or service. This includes crucial details like the price, the duration of the deal that will be created upon acceptance, and any other specific conditions that apply.

Providers have the flexibility to update their offers even after they have been created. However, it’s important to note that any deals previously made based on an older version of the offer will not be affected by these changes. This ensures that agreements made under specific terms remain consistent and enforceable.

Offers can be presented to clients through a user interface, typically displayed as a list that clients can browse. This list format allows clients to easily compare different offers and choose the one that best meets their needs.

Although offers do not automatically expire, they can be removed by the provider at any time. This gives providers control over their listings, allowing them to remove or modify their offers as circumstances change. This although, does not affect any deals that have already been created based on the offer.

When a client decides to take an offer, this action automatically creates a deal within the protocol. This deal formalizes the agreement between the provider and the client based on the terms specified in the offer, setting the stage for the transaction to proceed.
Deals

A deal represents a formal agreement that is created when a client takes an offer from a provider. This action effectively “seals” the contract between the two parties, establishing a binding agreement based on the terms specified in the offer. A deal may be created with or without an associated resource, depending on the specific nature of the transaction.

Once a deal is created, it is recorded on the blockchain, ensuring that the details of the agreement are securely stored and tamper-proof. This blockchain-based tracking provides transparency and trust, as all participants can verify the existence and terms of the deal at any time.

The responsibilities and obligations of both the provider and the client are defined by the terms and conditions originally set in the offer. These terms include details like payment and duration, along with other relevant factors. Since the deal is a direct acceptance of the offer, no further negotiation is required after the deal is made.

While deals are binding agreements, they can be canceled if necessary. However, once a deal is created, it cannot be modified. This ensures that the integrity of the original agreement is maintained and that both parties are held accountable to the terms they accepted.

If issues arise or the providers fails to fulfill their obligations, a dispute resolution process can be initiated to address and resolve any conflicts. This mechanism ensures that clients are protected and that fair practices are upheld within the marketplace.

FAQ
What is the Media Foundation?

The Media Foundation is the organization responsible for spearheading and developing tools and applications atop the Media Protocol. It’s the guiding entity behind the innovation and development shaping products like the smart contracts and Media Protocol.
What is the MEDIA token?

MEDIA is the governance and utility token of the Media Protocol & Media Network. It functions as a medium of exchange between clients and providers. In governance, MEDIA’s decentralized nature places control in the hands of a collective, allowing token holders to cast votes on protocol decisions.
Is Media Protocol safe?

Safety and security have been top priorities for the Media Protocol. Designed as a robust decentralized protocol, it has efficiently managed myriad transactions seamlessly. Additionally, the contracts underpinning it have been meticulously examined by industry-leading security experts.
Does Media Protocol charge fees?

The Media Foundation itself doesn’t levy any fees for users to access or operate on its platform. However, when engaging with the network, users might come across three main fees: (1) Network Fee, (2) Provider Fees, and (3) Protocol Fee.

Network Fees – As Media Protocol is blockchain-based, every transaction incurs a network fee, commonly termed as a “gas fee.” These fees compensate network validators who use their systems to authenticate and process transactions, ensuring the decentralized nature of the platform. The magnitude of these fees is influenced by network activity — higher activity leads to increased fees and vice versa.

Provider Fees – These fees serve as remuneration for providers in the marketplace in exchange for the content or services they deliver. Though the percentage might differ based on various factors, this fee is directed straight to individual providers.

Protocol Fee – A specific fee designed to support and maintain the Media ecosystem. Accumulated protocol fees are pooled and then distributed based on decisions made by MEDIA token holders. This decentralized decision-making process empowers the community to determine the best use of these funds, whether it’s for development, marketing, grants, or other initiatives that benefit the network.