public class Configuration
extends java.lang.Object
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
IndexerType |
getIndexerType() |
static Configuration |
getInstance() |
java.lang.String |
getUrl(org.nervos.ckb.Network network)
Get index url, if indexerUrl is set, use the indexerUrl, or use the value in IndexerType.
|
void |
setIndexerUrl(java.lang.String indexerUrl) |
void |
setIndexType(IndexerType type) |
public void setIndexerUrl(java.lang.String indexerUrl)
public static Configuration getInstance()
public void setIndexType(IndexerType type)
public IndexerType getIndexerType()
public java.lang.String getUrl(org.nervos.ckb.Network network)
network - main net or test net.