All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openelements.hedera.spring.implementation.HederaNetworkProperties Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy