# What is AlgoWIFI

AlgoWIFI - where adv meets blockchain.

**AlgoWIFI** is a digital billboard system that changes online advertising making it safe, easy and fast for publications and payments by creating a circuit based on the Algorand blockchain.

**AlgoWIFi** is the platform that combines the transparency of blockchain with online advertising.

**Why AlgoWIFI ?**

**AlgoWIFI** was created mainly to enhance advertising on public and private wifi hot-spots during the access and connection phase to the internet.

But with the [Web 3.0 version](/how-it-works/algowifi-for-web-3.0), AlgoWIFI can also be activated on Websites and the [Metaverse](/todo/algowifi-for-metaverse) by users that want to enhance the access to their content.

***Disclaimer -**&#x61;ll information in this document is subject to change. AlgoWIFI is active on the* [*Algorand testNet*](https://testnet.algoexplorer.io/address/HX2NYIIWEYBTSKE2EMAKIRZAQPRRL2JJOLPBCX33V2TYWGIBR626JHM6RA)*.*


# How it works

Based on best in class Pure PoS blockchain: Algorand.

There are several ways in which AlgoWIFI works.&#x20;

If installed on an access point, during the access phase an image is displayed in the captive portal.

Each transaction is then recorded in real time on the blockchain and at the same time the revenues and charges are sent to the various stakeholders.

**Example of a transaction from an access point:**

```json
{
  "Mac": "B0:73:5D:6A:EC:3A",
  "Location": "Torre WIFI - MetroWimax",
  "CampaignName": "MetroWimax",
  "CampaignId": "5",
  "referer": "http://172.0.0.1/"
}
```

**Example of a transaction from a web site:**

```json
{
  "CampaignName": "Turning Based Lovers",
  "CampaignId": "19",
  "referer": "https://turnbasedlovers.com/",
  "remote": "66.249.70.53"
}
```


# AlgoWifi for HotSpot

Create a direct channel with your customers, check the revenue of your new product.

Imagine your campaign displayed directly in your customers' hotspot (public or private). You can build loyalty and develop new products by directly verifying their satisfaction.

**Example of transaction from Access point:**

```json
{
  "Mac": "B0:73:5D:6A:EC:3A",
  "Location": "Torre WIFI - MetroWimax",
  "CampaignName": "MetroWimax",
  "CampaignId": "5",
  "referer": "http://172.0.0.1/"
}
```

Activating AlgoWIFI on your compatible router / modem is very simple:

1. Register on AlgoWIFI as a HotSpotter
2. Copy the generated code to your compatible router / modem
3. Configure your router / modem for guest access ([how-to](/configurations))


# AlgoWIFI for Home

Imagine your campaign displayed directly in your customers' homes. You can build loyalty and develop new products by directly verifying their satisfaction.

**What types of access points can I use ?**

Actually we have tested AlgoWIFI for HotSpot on[ FRITZ! Box](/configurations/install-on-fritz-box) modems/routers with firmware version  7.29+ and Mikrotik RoS from version 6.xx+.


# AlgoWifi for Web 3.0

Earn money from your site or blog by showing premium advertising campaigns.

Thanks to a small script to be inserted on your web pages, you will be able to access the premium circuit of AlgoWIFI and monetize your views immediately and clearly.

**Here is an example script:**

```html
 <script type="text/javascript" crossorigin="anonymous">
        var code = 0000000; //YOUR NFT!!
        const xhttp = new XMLHttpRequest();
        xhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) {
                const obj = JSON.parse(this.responseText);
                document.getElementById("campaignImage").src = obj['image'];
            }
        };
        xhttp.open("POST", "algowifiRest.php", true);
        xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        xhttp.send("identity="+code);
    </script>

<body>
    <img id="campaignImage" />
</body>

```

Activating AlgoWIFI on your web site is very simple:

1. Register on AlgoWIFI as a HotSpotter
2. Copy the generated code to your web site


# AlgoWIFI Counter

A tool to measure your worth.

AlgoWIFI Counter is a useful measurement tool for both HotSpotters and Publishers, to evaluate their investment and their visibility on the web.

Each view is recorded in the blockchain in order to be able to carry out more in-depth analyses through specialised software, in addition to the simple counting of accesses.&#x20;

The Publisher can then evaluate the number of views on a specific HotSpotter in order to calibrate their campaign.&#x20;

The HotSpotter can measure its presence on the web and activate useful tools to increase visits.

**Example of code:**

```html
 <script type="text/javascript" crossorigin="anonymous">
        var code = 00000000000000000000000000; //YOUR Algorand Address
        const xhttp = new XMLHttpRequest();
        xhttp.open("POST", "algowifiCount.php", true);
        xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        xhttp.send("identity="+code);
    </script>
```

Activating the AlgoWIFI Counter is simple:

1. Register on AlgoWIFI&#x20;
2. Activate your counter&#x20;
3. Put $ALGO in selected wallet ( 0.0015 $Algo for count)&#x20;
4. Enter the code in the site you want to measure

Here are some examples:

1. I want to know how long it takes to consume 10,000 views
2. What are the best times to access

And so on...


# StakeHolders

Who is participating?

<div align="left"><img src="/files/RTxtSM7yK2TvBnkYGOTD" alt=""></div>

The main actors of the platform are the Publishers / Sponsors / Vendors and HotSpotters. AlgoWIFI puts operators in direct contact with the market.


# Publisher

Publishers are those professionals which create and promote advertising campaigns, by using AlgoWiFi they ensure their ads are viewed and registered within the blockchain.\
For example:<br>

A publisher purchases a package of 10k views from AlgoWifi;

* They create the advertising campaign;
* &#x20;They select the HotSpotters, found in AlgoWifi's lists, which will host the advertisements;
* The campaign is published and started following the authorisation process by AlgoWifi, in order to comply with legislation.


# HotSpotter

HotSpotters are the owners and/or hosts of Hotspots/Websites/Domestic Networks who work in direct contact with Publishers via AlgoWifi, by offering the advertising space required from which they earn.


# Economic Model


# Algorand Blockchain

Pure Proof of Stake.

Designed by MIT professor and Turing Award winning cryptographer [Silvio Micali](https://www.linkedin.com/in/silvio-micali-26bb37152/) – is uniquely capable of delivering on the promise of a borderless global economy.

**Why** **Algorand.**

It achieves transaction throughputs at the speed of traditional finance, but with immediate finality, near zero transaction costs, and on a 24/7 basis.&#x20;

In traditional finance, trading assets generally requires a trusted intermediary, like a bank or an exchange, to make sure that both sides receive what they agreed to. On the Algorand blockchain, this type of trade is implemented within the protocol as an [**Atomic Transfer**](/technical-note/atomic-transfer). This simply means that transactions that are part of the transfer either all succeed or all fail.

Its carbon-neutral platform and unique pure proof-of-stake consensus mechanism solves for the “**blockchain** **trilemma**” by achieving both security and scalability on a decentralized protocol, and without a second of downtime since it went live in 2019.


# User Address

When you register with AlgoWIFI, your account is associated with an Algorand address generated at the time that is activated with the resources necessary to import the AWIFI token.&#x20;

All transactions will be carried out with this address that you can follow with [AlgoExplorer](https://testnet.algoexplorer.io/) or [Pera Wallet. ](https://perawallet.app/)

If you are a HotSpotter, a specific **NFT** is generated for your Access Point or website. AlgoWIFI will pay the revenues to the owner of this NFT. In the future, it will be possible to transfer your NFT to others.&#x20;

If you are a Publisher, this address will be used to pay for the campaign to all actors and you can follow it in real time even on the blockchain through AlgoExplorer or Pera Wallet.

&#x20;


# Reserve Address

Earn rewards even when there are no campaigns.

The purpose of the reserve account is to guarantee revenue for the hotspotters even when there are no campaigns.

In this case, an AlgoWIFI [institutional campaign](/campaign/default-campaign) will be displayed which will be enhanced anyway.

The mechanism is very simple: for each view, the system sets aside 10% of the campaign value which integrates the value made available by AlgoWIFI every beginning of the calendar year.

When the [institutional campaign](/campaign/default-campaign) is in progress, the funds are withdrawn from this account. In this way, revenue is always and fairly guaranteed.

Reserve address is public [**here.**](https://testnet.algoexplorer.io/address/QYEZ6NCSPFSU53WWEOROREHFBYP42FBSUSJ5ZEM3R2R5VPNUSNKDHG5JSY)


# Revenues / Payment

How do you want your money?

AlgoWIFI pays the [HotSpotter](/stakeholders/hotspotter) hosting the advertising campaign using the [AWIFI](/economic-model/token) token for each live view.&#x20;

The HotSpotter can redeem the **AWIFI** token in different ways:

* trading on a dex (tinyman type) through a pool that will be created shortly **AWIFI / ALGO.**
* a monthly payment to the Paypal account.
* through a bank transfer directly to your account on a monthly basis.
* With Amazon coupons.


# Token

The token of AlgoWIFI is **$AWIFI**, used for count and tracing payment to all stakeholders. The value of $AWIFI is fixed to Euro like this formula:

**1 $AWIFI = 1 EURO**&#x20;


# Campaign


# Active Campaign

{% hint style="info" %}
Attention

This page is under construction and will be coming soon.
{% endhint %}


# Default Campaign


# Reserve Account


# Technical Note


# Atomic Transfer

All platform transactions are carried out through Atomic Transfer involving the various stakeholders.

Here is an example of the application:

```php
//Transaction 1 : payment to platform
    $transactions = array();
    $transactions[] = array(
        "txn" => array(
            "aamt" => $platformFee,
            "type" => "axfer", //Tx Type
            "fee" => 1000, //Fee
    ..............................
```

```php
//Transaction 2 : payment to hotspot owner
    $transactions[] = array(
        "txn" => array(
            "aamt" => $hotspotFee,
            "type" => "axfer", //Tx Type
            "fee" => 1000, //Fee
    ..............................
```

```php
//Transaction 3 : payment to reserve address
    $transactions[] = array(
        "txn" => array(
            "aamt" => $reserveFee,
            "type" => "axfer", //Tx Type
            "fee" => 1000, //Fee
    ...............................
```

```php
// 2) Group TRansactions
    $groupid = $algorand_kmd->groupid($transactions);
    #Assigns Group ID
    $transactions[0]['txn']['grp'] = $groupid;
    $transactions[1]['txn']['grp'] = $groupid;
    $transactions[2]['txn']['grp'] = $groupid;
    ................................
```

```php
//4) Send Transaction Group
    #Broadcasts a raw atomic transaction to the network.
    $params['transaction'] = $txn;
    $return = $algorand->post("v2", "transactions", $params);
    $txId = $return['response']->txId;
    ................................
```


# Hardware Compatible list


# Web Site integration


# Installation


# Server


# Basic Request


# Php Sdk

* Php-sdk Algorand - FFSolutions, <https://github.com/ffsolutions/php-algorand-sdk>


# Configurations


# Install on Fritz!Box


# Install on Joomla


# Install on WordPress


# Install on PrestaShop


# FAQ


# TODO


# AlgoWIFI for QR-Code

Coming soon.


# AlgoWIFI for Metaverse


