Hedera mainnet - mainnet - The Hedera mainnet, short for main network, is where applications are run in production with real transactions and associated costs. is the public network used to deploy decentralized applications for use in production. Transactions can be submitted to the Hedera mainnet by any application user and are timestamped and ordered automatically by the distributed ledger. Any data associated with Hedera services and stored on ledger can be accessed by any Hedera account. For each transaction, small transaction fees will be charged (in tinybars). You can find more information about transactions fees here. If you are looking to test your application or just to experiment, please check out Testnet Access, which allows you to prototype and practice in a real Hedera network without incurring those fees.
You will need a Hedera mainnet - mainnet - The Hedera mainnet, short for main network, is where applications are run in production with real transactions and associated costs. account to interact with and pay for any of the network services (cryptocurrency, file service, and smart contracts). Your Hedera account is what holds a balance of hbar to be used for transfers to other accounts or payments for network services.
One of the primary means of acquiring hbar and a mainnet account for use on the network will be through an exchange. Exchanges typically allow users to create an account on the Hedera mainnet, and transfer in an initial amount of hbar in exchange for some other coin or currency. Some of those exchanges supporting hbar can be found here.
Users can also create accounts on the mainnet by visiting the Hedera Portal and creating a new profile. To complete receive a mainnet account you will have to verify your identity.
Once you have joined mainnet, your account ID will appear on your home page:
Your mainnet account ID will be at the top of page in the purple box labeled “Account ID”. Make sure the mainnet drop-down is selected if your profile is associated with any testnet accounts.
Please note that accounts on Hedera (whether on the mainnet or testnet) are managed using key pairs. In order for the Hedera Wallet and most applications to successfully interact with the network a user needs to have the correct account ID matched with the correct key pair.
The address book contains the list of nodes that can submit transactions to mainnet for a user. For each node, the node ID is the ID of the node (0.0.x) and the node address is the IP address and port for that node.
- Java 11
- Hedera Java SDK
- Open the .env.sample file in your IDE
- Update the node ID and node address to one of the nodes in the address book
# Network Node ID and Address NODE_ID= 0.0.5 NODE_ADDRESS= 188.8.131.52:50211 # Operator ID and Private Key OPERATOR_ID= Your account ID OPERATOR_KEY= Your private key
In the above example, the transaction/query submitting node is 0.0.5. You may set your configuration file to include the entire address book and select a node at random to submit transactions.
# Network Node ID and Address NODE_ID_1= 0.0.3 NODE_ADDRESS_1= 184.108.40.206:50211 NODE_ID_2= 0.0.4 NODE_ADDRESS_2= 3220.127.116.11:50211 NODE_ID_3= 0.0.5 NODE_ADDRESS_3= 18.104.22.168:50211 NODE_ID_4= 0.0.6 NODE_ADDRESS_4= 22.214.171.124:50211 NODE_ID_5= 0.0.7 NODE_ADDRESS_5= 126.96.36.199:50211 NODE_ID_6= 0.0.8 NODE_ADDRESS_6= 188.8.131.52:50211 NODE_ID_7= 0.0.9 NODE_ADDRESS_7= 184.108.40.206:50211 NODE_ID_8= 0.0.10 NODE_ADDRESS_8= 220.127.116.11:50211 NODE_ID_9= 0.0.11 NODE_ADDRESS_9= 18.104.22.168:50211 NODE_ID_10= 0.0.12 NODE_ADDRESS_10= 22.214.171.124:50211 # Operator ID and Private Key OPERATOR_ID= Your account ID OPERATOR_KEY= Your private key
- Rename the file from .env.sample to .env
Updated 12 days ago