What Is Gas (GAS)?

What Is Gas (GAS)? Complete Guide Review About Gas.

What Is Gas (GAS)?

Here is an exhaustive library of Neo technical documents, including development examples for your reference. Consult development reference information such as APIs, frame worked, fees, and more. This document is intended to guide exchange developers to set up Neo nodes on the exchange server and complete necessary programing tasks for Neo assets transactions. Different versions of Neo-CLI are different in ways of interfacing with exchanges. Please note the version behavior differences before upgrading your client version.

Gas Neo N3 has only one type of digital assets, i.e. NEP-17 assets, which are managed by BALANCE. The exchanges mainly deal with user balance queries, deposits, withdrawals, and other operations of this type assets. The actual user balance in the exchange is recorded in the exchange database. The exchange needs to write programs to monitor each transaction of each block, record all deposits and withdrawals transactions in the database, and modify the user balance in the database accordingly.

Gas Storage Key Points

Coin BasicInformation
Coin NameGas
Short NameGAS
Circulating Supply10,128,375.11 GAS
Total Supply17,190,378
Source CodeClick Here To View Source Code
ExplorersClick Here To View Explorers
Twitter PageClick Here To Visit Twitter Group
WhitepaperClick Here To View
Support24/7
Official Project WebsiteClick Here To Visit Project Website

Install plugins

Gas Some additional functionalities are individually encapsulated in plug-ins for the purpose of improving node security, stability, and flexibility. For more information, refer to Installing plugins. Go to here to download plugins. Exchanges need to install the following plugins to get the complete functionality of transaction log API and automatic synchronization with the offline package. Unzip the plugin packages under the Neo-CLI root directory, as shown below, all the plugin files are extracted into the Plugins folder automatically.

Before running Neo-CLI, you need to make necessary configurations in the Neo-CLI configuration files. For more information, refer to Configuring and Starting Neo-CLI. Be cautious to enable automatic opening of wallet. Before you do that, make sure your firewall is open and safe as Password specified in the file is in clear text.

Neo-CLI Security Policies

Neo-CLI does not provide the function to remotely switching on/off the wallet, and it does not verify the process when opening a wallet. Therefore, exchanges should set their own security policies. The wallet must be kept open all the time to respond to the withdrawal requests of users. For security reasons, the wallets should be run in an independent server on which the firewall is configured properly, as shown below.

Provides a set of Gas in conjunction with the Rpc Server plugin to retrieve blockchain data from nodes. The interfaces are provided through JSON-RPC, and the underlying communications use HTTP/HTTPS protocols. Before you can start a node which provides RPC service, you must has the plugin Rpc Server installed with Neo-CLI installation.

Creating a Wallet

The exchange needs to create an online wallet to manage the deposit addresses of users. Gas A wallet is used to store the information of the accounts (both public keys and private keys) and the contracts. It is the most important proof that the user holds. Users must keep the wallet files and the wallet passwords secure. They must not lose or disclose these data. Exchanges do not have to create a wallet for every address. An online wallet usually keeps all deposit addresses of users. A cold wallet (offline wallet) is another storage option which provides better security.

Generating Deposit Addresses

When the user deposit (Gas) for the first time, the program dynamically generates a NEO address. The advantage is that there is no need to generate addresses at fixed time intervals, while the disadvantage is that it’s not convenient for backup. To develop the program to dynamically generate addresses, use the Rpc Server API get new address Method. The created address is returned. The exchange creates a batch of NEO addresses in advance.

When the user charges (NEO/Gas) for the first time, the exchange assigns a NEO address to him or her. The advantage is the convenience to backup the wallet, while the disadvantage is the need to generate NEO addresses manually. Either way, the exchange must import the addresses into the database and distribute them to users. It is generally recommend the exchange use the second way, so as to reduce the external controls and run the wallet more stably.

Network fee

The network fee, as a reward for the consensus nodes generating blocks, is charged when the user submits a transactions to Neo blockchain. There is a base fee for each transaction and the calculation formula is shown below. The transaction is only executed if the fee paid by the user is greater than or equal to the base fee; otherwise, the transaction will be treated as invalid.Show all Copy.

After correctly installing the Application Logs plug-in and starting the neo-cli node, you can find a folder “Application Logs” is generated under the root path. The complete contract log is recorded in this directory, and each NEP-17 transaction is recorded in a leveldb file.