Mainnet Access

Overview

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.

Mainnet Accounts

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. Please note that you will be required to complete a KYC process in order to do this and will be credited 5 hbars for your trouble.

Once you have joined mainnet, your account ID will appear on your home page:

Your mainnet account ID will be in the center of page in the “Your account ID” field. 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.

Mainnet Address Book

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.

Node ID
Node Address

0.0.3

35.237.200.180:50211

0.0.4

35.186.191.247:50211

0.0.5

35.192.2.25:50211

0.0.6

35.199.161.108:50211

0.0.7

35.203.82.240:50211

0.0.8

35.236.5.219:50211

0.0.9

35.197.192.225:50211

0.0.10

35.242.233.154:50211

0.0.11

35.240.118.96:50211

0.0.12

35.204.86.32:50211

Configuring Your Mainnet Envionnment

Prerequisites

  • Java 11
  • Hedera Java SDK

Instructions

  1. Open the .env.sample file in your IDE
  2. Update the node ID and node address to one of the nodes in the address book

Example:

# Network Node ID and Address
NODE_ID= 0.0.5
NODE_ADDRESS= 35.192.2.25:50211

# Operator ID and Private Key
OPERATOR_ID= Your account ID
OPERATOR_KEY= Your private key

In this 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.

Example:

# Network Node ID and Address
NODE_ID_1= 0.0.3
NODE_ADDRESS_1= 35.237.200.180:50211

NODE_ID_2= 0.0.4
NODE_ADDRESS_2= 335.186.191.247:50211

NODE_ID_3= 0.0.5
NODE_ADDRESS_3= 35.192.2.25:50211

NODE_ID_4= 0.0.6
NODE_ADDRESS_4= 35.199.161.108:50211

NODE_ID_5= 0.0.7
NODE_ADDRESS_5= 35.203.82.240:50211

NODE_ID_6= 0.0.8
NODE_ADDRESS_6= 35.236.5.219:50211

NODE_ID_7= 0.0.9
NODE_ADDRESS_7= 35.197.192.225:50211

NODE_ID_8= 0.0.10
NODE_ADDRESS_8= 35.242.233.154:50211

NODE_ID_9= 0.0.11
NODE_ADDRESS_9= 35.240.118.96:50211

NODE_ID_10= 0.0.12
NODE_ADDRESS_10= 35.204.86.32:50211

# Operator ID and Private Key
OPERATOR_ID= Your account ID
OPERATOR_KEY= Your private key
  1. Rename the file from .env.sample to .env

Mainnet Access


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.