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

com.yanxisir.neb.bean.NodeInfoResp Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package com.yanxisir.neb.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author YanxiSir
 * @since 2018/5/21
 */
@Data
public class NodeInfoResp implements Serializable {

    /**
     * the node id
     */
    private Integer id;

    @JSONField(name = "chain_id")
    private Integer chainId;

    private String coinbase;

    /**
     * Number of peers currenly connected.
     */
    @JSONField(name = "peer_count")
    private Integer peerCount;

    /**
     * the node synchronized status.
     */
    @JSONField(name = "synchronized")
    private Boolean synced;

    /**
     * the node route table bucket size.
     */
    @JSONField(name = "bucket_size")
    private Integer bucketSize;

    @JSONField(name = "protocol_version")
    private String protocolVersion;

    @JSONField(name = "route_table")
    private List routeTables;

    @Data
    public static class RouteTable {
        private Integer id;
        private List address;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy