Search…
⌃K
Links

Attention Mining

Collect Proofs of Real Traffic on your content to mine new KOII tokens each day!
KOII tokens are earned by tracking Proofs of Real Traffic (PoRT) on your website or content.
Proof of Real Traffic is generated by a user's wallet when they visit a website or view content. The Finnie wallet composes these in the background as users browse, then broadcasts the PoRTs to Koii nodes at regular intervals.
This can be implemented in any web client by installing the PoRT library like so:
npm install @_koii/k2-port
or
yarn add @_koii/k2-port
This package will sign proofs of real traffic via Finnie wallet and submit them to KOII nodes, and in return, your users can earn some KOII as a token of appreciation for sharing content hosted on the KOII network.
(CDN Coming soon!!)

Example code:

const portAPI = new PoRT({
trustedNodeAddress: 'https://mainnet.koii.live', //Address of KOII mainnet
node: 5, //maximum number of nodes to send PoRTs to.
connectionWait: true, // this parameter waits for Finnie to be connected
});
​
portAPI.connectWallet()
portAPI.propagatePoRT('TI6x7I6wzh2VQhT5qXEFRWQxX2zAj8zGdcadCYn8580')
Where "TI6x7I6wzh2VQhT5qXEFRWQxX2zAj8zGdcadCYn8580" is the Universal ID of the content the PoRT is being submitted to support.
If the person visiting your content has a Koii wallet, you'll get even more of the daily share if they have a high reputation or are actively operating a node.

SDK Documentation

PropagatePoRT()

This function is the core of this SDK. It attempts to send Proofs of Real Traffic to the KOII network for a given transaction Id. First, it tries Finnie wallet and if permissions are available to SignPoRTs it will sign PoRTs else it will generate a new wallet and store it in your browser and Sign PoRTs with them.
Arguments
This function accepts the following arguments trxId Type: String Required: true description: This must be a valid IPFS/Arweave CID for which you want to send Proof

ClearFinnieRejection()

On connectWallet() when Finnie is rejected it saves the rejection status in localStorage and next time you call connect if the rejectedStatus is true it will not connect to Finnie instead fall back to anonymous PoRT submission. So to reset the rejection status use this function.
​
Why Attention?
Human time is the scarcest and most expensive resource we have access to today, and attention is how we use that time to absorb new knowledge and transfer it to others. This superpower has led our species to an almost inconceivably powerful position, and we hope to use Koii to help everyone participate in the governance of our communal attention.
While KOII tokens are used as a compute resource, we are more concerned with creating a safe protocol for the storage of our communal history. The attention economy is everyone's opportunity to build reputation and trust, and ultimately run their own node and receive rewards for supporting the ecosystem. For further reading, Albert Wenger summarizes a number of key points in The World After Capital.
​