com.openelements.hedera.spring.implementation.HederaNetworkProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hedera-spring Show documentation
Show all versions of hedera-spring Show documentation
Library to work with Hedera in Spring
The newest version!
package com.openelements.hedera.spring.implementation;
import com.openelements.hedera.base.implementation.HederaNode;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(
prefix = "spring.hedera.network"
)
public class HederaNetworkProperties {
/**
* Network name (must be mainnet, testnet or previewnet). Default is mainnet.
* Will be ignored if nodes are provided.
*/
private String name = "mainnet";
/**
* List of nodes to connect to. If provided, network name will be ignored.
* This can be used to connect to a custom network (like Hedera Solo).
*/
private List nodes;
/**
* Mirror node endpoint to connect to.
*/
private String mirrorNode;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMirrorNode() {
return mirrorNode;
}
public void setMirrorNode(String mirrorNode) {
this.mirrorNode = mirrorNode;
}
public List getNodes() {
return nodes;
}
public void setNodes(List nodes) {
this.nodes = nodes;
}
}