Important dApp Factoids
The 3 Blockchain Networks within IOST
There are three different blockchain networks in IOST. They all run iServer and can communicate over gRPC, HTTP, or ipfs. Each network has a unique Chain ID which you, the developer, will use to select 1 of the 3 networks before action is taken. What action? Actions such as API calls, Smart Contracts, or accounts balances are accessed.
As a developer the Chain ID is very important. Confirm the Chain ID is set properly and it will prevent you from running tests on the mainnet by accident or sending important transactions to the testnet by accident and it will allow you to target your Local Node when developing on your laptop.
The three blockchain networks are explained:
Local Node – Running Isolated MainNet
Local Node | Running Isolated MainNet |
Use Case | For testing and development locally on your own machine. |
Hosted | Can run on your machine, laptop or desktop, either native, in a container, or a VM. With Bootstrap running a local node is easy. |
Chain ID | 1020 |
Hostname | 127.0.0.1 or localhost |
YY Port | 30001 |
XX Port | 30002 |
Test | http://127.0.0.1:30001/getChainInfo |
Notes | Can create accounts, tokens, allocate iGAS, iRAM and IOST tokens. |
Internet Node – Running TestNet
Internet Node | Running TestNet |
Use Case | IOST’s TestNet node used for testing and development |
Hosted | Hosted by an IOST partner on a public IP address |
Chain ID | 1023 |
Hostname | 13.52.105.102 |
YY Port | 30001 |
XX Port | 30002 |
Test | http://13.52.105.102:30001/getChainInfo |
Notes | Must apply for an account: http://54.249.186.224/applyIOST |
Internet Node – running MainNet
Internet Node | Running TestNet |
Use Case | Live and in production, not for testing or development |
Hosted | Hosted by ServiNode partners on a public IP address |
Chain ID | 1024 |
Hostname | |
YY Port | 30001 |
XX Port | 30002 |
Test | http://XX.YY.ZZ.PP:30001/getChainInfo |
Notes | Create account via TokenPocket, Cobo Wallet, iostabc.com. Save your Private Key! |