Building with SettleMint/Hedera Hashgraph Guide

Add Network and nodes

Guide to adding a blockchain network to your application

Summary

To build a blockchain application on Hedera using SettleMint, you start by selecting Hedera as your network when creating the application. Hedera is a public network, so validators are already established by the network’s consensus participants. SettleMint will deploy an archive node that connects to the chosen Hedera network (mainnet or testnet).


When deploying on SettleMint in SaaS mode, you'll choose between a shared or dedicated cluster, select a cloud provider and data center, and pick a resource pack (small, medium, or large) that can be scaled later.


Once your node is deployed, SettleMint provides access to the Insights tab for monitoring tools. Since Hedera is a public network, you can use Hedera’s public blockchain explorer to track transactions and network activity.


Prerequisites

Before setting up a blockchain network, you need to have an application created in your workspace. Applications provide the organizational context for all your blockchain resources including networks, nodes, and development tools. If you haven't created an application yet, follow our create application guide first.

1. Add a blockchain network

To build your application on Hedera, go to the network manager in SettleMint and select "Hedera" from the list of supported public networks.

SettleMint will automatically connect your app to the Hedera network by deploying an archive node.
You can choose between mainnet or testnet depending on your use case.

For reference, see the full list of supported networks here. Select Network

You can perform the same action via the SettleMint SDK CLI as well -

First ensure you're authenticated:

settlemint login

Create a blockchain network:

settlemint platform create blockchain-network besu <network-name> \
  --node-name <node-name>
 
# Get information about the command and all available options
settlemint platform create blockchain-network besu --help

While deploying a network, you can tune various parameters to optimize performance and execution. The Chain ID serves as a unique identifier for your blockchain network, ensuring proper differentiation from others. The Seconds per block setting controls the block time interval, impacting transaction finality speed. Gas price defines the transaction cost per unit of gas, influencing network fees, while the Gas limit determines the maximum gas allowed per block, affecting computational capacity.

Add Network

The EVM stack size configures the stack depth for smart contract execution, and the Contract size limit sets the maximum contract code size to manage deployment constraints. Adjusting these settings allows for greater scalability, efficiency, and cost control based on your specific use case. For EVM Chains, SettleMint allows you to set key genesis file paramters for a custom network configuration.

Manage a network

Network management can be done via SettleMint SDK CLI using these commands -

# List networks
settlemint platform list blockchain-networks --application <app-name>
 
# Get network details
settlemint platform read blockchain-network <network-name>
 
# Delete network
settlemint platform delete blockchain-network <network-name>
 
# Restart network
settlemint platform restart blockchain-network <network-name>

When we deploy a network, first node is automatically deployed with it and is a validator node. Once you have deployed a permissioned network or joined a public network, you can add more nodes to it.

2. Add blockchain nodes

To see and add nodes, please click on Blockchain Nodes tile on the dashboard or use the Blockchain Nodes link in the left menu.

Add Node

We recommend the following number of nodes for each envrionment:

Blockchain NetworkNode TypeMinimum Nodes for Fault Tolerance
Hyperledger BesuValidator Nodes4 (Byzantine Fault Tolerant BFT)
Hyperledger BesuNon-Validator Nodes2 (for redundancy)
GoQuorumValidator Nodes4 (Istanbul BFT)
GoQuorumNon-Validator Nodes2 (for redundancy)

Nodes can also be added using SettleMint SDK CLI using the following commands-

First ensure you're authenticated:

settlemint login

Create a blockchain node:

settlemint platform create blockchain-node besu <node-name> \
  --blockchain-network <network-name> \
  --node-type <VALIDATOR|NON_VALIDATOR> \
  --provider <provider> \
  --region <region>
 
# Get help
settlemint platform create blockchain-node --help

Manage node

You can view node details and status, can monitor node health, pause and restart, or upgrade the node via the SDK CLI or the Platform UI.

# List nodes
settlemint platform list services --application <application-name>
 
# Restart node
settlemint platform restart blockchain-node <node-name>

All operations require appropriate permissions in your workspace.

3. Add load balancer

To add a load balancer, navigate to the Blockchain nodes section in the SettleMint platform and select your deployed network. Click "Add load balancer", choose the region, provider, and desired resource configuration. Once deployed, the load balancer helps distribute traffic efficiently, improving network reliability and performance.

When selecting nodes to connect to the load balancer, ensure you include at least two non-validator nodes for optimal redundancy. The load balancer can be configured to route requests to specific nodes based on workload distribution, ensuring high availability and fault tolerance in your blockchain network.

Add load balancer

4. Add blockchain explorer

To add blockscout blockchain explorer for EVM based permissioned networks, navigate to Insights via the left menu or the dashboard tile. For public networks, you may use publicly available blockchain explorers for the respective network.

Add insights Insight details

For public networks, please use the following blockchain explorers

NetworkMainnet ExplorerTestnet Explorer
EthereumEtherscanSepolia / Holesky
AvalancheSnowTraceFuji
Hedera HashgraphHashScanHashScan Testnet
Polygon PoSPolygonScanAmoy
Polygon zkEVMzkEVM ExplorerzkEVM Testnet
OptimismOptimistic EtherscanOptimism Goerli
ArbitrumArbiscanArbitrum Goerli

Congratulations!

You have succesfully built the blockchain infrastructure layer for you application. From here you can proceed for creating or setting up private keys for transaction signer and user wallets.

On this page