Guidelines
- Introduction
- Installation
- Quick Start
Guides
- Introductions
- Build local test node
- Smart Contract - ABI Files
- Smart Contract——JS Contract
- Deploy Contracts
- Test Contract
- Develop DApp Client
Smart Contracts
- Contract Introduction
- ABI File
- Database
- Account Authority
- Call In-contract
- Notification
System Contracts
- Resources
- Account
- Permission
Token Contracts
- Transfer
- Token
- Token Exchange
- Contract Sub-Wallet
Node Guide
- Node Introduction
- Add to nodes network
- Node Data Persistence
Access Guide
- FO 接入安全指南
Account
Tips: We will close free FIBOS account register channel on Sep 4th. After then, users who want to register FIBOS account can ask the users that already have FIBOS account to help you to register via learning this document.
What is account
Account is different from ETH and BTC addresses. It is an identifiable, readable, notable string. For example: your gaming English nickname could be hellofibos.
The naming of accounts follows the design by EOS. The rule are: composed only of the numbers 1-5 and the letters a-z(lower-case). The length must be 12 characters.
For now, the account name length must be 12 characters after EOS BIOS is launched. For the engineers there is one thing one should know. The short account name (shorter than 12 characters) is caused by the system contract. If you are interested in this, you can check the informations about EOS’ short name bidding.
FIBOS account can own resources and relational contracts. Owning resources can be understood as the EOS,RAM,CPU,NET in FIBOS are all belong to the account. Relational contracts can be understood as contracts that must belongs to the account. Account can be authorized to do some actions, such as: transferring, contract action.
Generate public/private key
Tips: The private key generated needs to be saved properly, and make sure it is not leaked to anyone! Registering a FIBOS account by someone else only requires your public key. Anyone who ask for your private key for the reason of helping you to register a FIBOS account are fraudsters.
Generate by ecc of fibos.js
1 | var FIBOS = require('fibos.js'); |
Create Account
create new account
newaccount
method and parameters:
1 | var FIBOS = require('fibos.js'); |
Buy RAM
Saving account information to the chain consumes RAM. The creator needs to buy RAM for the created account informations.
buyrambytes
method and parameters:
1 | var FIBOS = require('fibos.js'); |
Mortgage Resources
Creator mortgages FO to get CPU and NET to allow the created account to do transfers.
delegatebw
method and parameters:
1 | var FIBOS = require('fibos.js'); |
Example
1 | var FIBOS = require('fibos.js'); |
Execute the code to help others successfully register an account.
Results (parts) :
1 | 'act': { |
Based on the information printed above,We can see fibostest123
account created an account named xinchengdai1
,next the owner of account xinchengdai1
can import the private key to FO wallet to use the other functions! click download FO wallet to get FO wallet.