Documents

You can review the Web3 helper codes developed and continuing to be developed by the Gravisible project on doc.gravisible.com. Before you begin, familiarize yourself with the Web3 system. Why are Web3 systems important? What are the advantages of using Web3? Before learning how to use Web3 systems, take a look at the information about Web1-Web2.


Web1

Before you can understand what Web 3 is, you must first understand previous versions of the internet. It can be characterized by the initial phase of the internet and the way users initially interacted with the web. In Web 1.0, most users were passive consumers of content. In other words, not by writing Web 1.0; It was about reading. It was static, not dynamic. This situation changed with Web 2.0.


Web2

The next major phase of the internet was all about interaction and users. At this stage, users created most of the content on platforms such as YouTube, Facebook or Twitter. This internet was more social and collaborative – but it came at a price. The downside to this more "participatory" internet was that users also created content, providing personal information and data to the companies that control these platforms.

Today, mostly Web2 systems continue to be used. The Gravisible project develops utilities, programs and tools that can facilitate the migration of Web2 systems to Web3 systems.
If we explain with an example code structure;

This website is based on Web2 infrastructure. The Web3 tool is made available with a simple code structure below. Of course, this is not the transition to the Web3 system. It is an example structure created to show that Web3 tools are also available for Web2 infrastructures.


Web3

Web 3.0 is a blessing of the internet. Currently still being built, there is currently no definition of exactly what Web 3 is or what is simple. But in general Web 3 refers to an internet made possible by decentralized networks such as Bitcoin and Ethereum. The novelty of these networks is to overcome platforms that do not have a single core control base, yet can be completely. About this, this is what users and operators of their operators should follow coded coded on the same day. The second innovation is that these networks allow the exchange of value or money between their accounts.

These two things – decentralization and “internet money” are the keys to understanding Web 3.

A Simple Test Web3 Login Example


If you have a standard Web2 type website, you can integrate it into Web3 systems with the help of simplified Gravisible codes. (It is an exemplary creation! It is disabled for use.)

// An exemplary bond structure
const connectWallet = document.querySelector('.loginWallet_WEB3GAV');
connectWallet.addEventListener('click', () => {
getAccount();
});
async function getAccount() {
const accounts = await ethereum.request({ method: 'eth_requestAccounts' });
const account = accounts[0];
$.ajax({
url: "AJAX_POST_URL_GRAVISIBLE",
type: "POST",
data: "&DATA="+account,
success: function(result){
$("#ResultGravisible").html(result);
}
});
}
// Basic Usage
<\script src="https://gravisible.app/API/_web3GavHome.js">

Test Example


You have a Web2-based e-commerce site and you want to enable your customers to trade with crypto money or earn crypto money every time they shop. With a few lines of code, which we call interconnects, it becomes possible to add a standard Web2 website to your website. The above code is just an example. The codes that are being developed will be presented to you regularly via Doc.

WordPress, OpenCart, etc., known as ready-made module software, not only with special software. It will be possible to access Web3Gav software, which will also be valid for other programs.