Skip to content
catena edited this page May 6, 2016 · 14 revisions

To run your scorex application you should create json file with application settings. Most of settings have default values so you may provide just few settings to customize your app.

Scorex-basics settings

Parameter Default value Description
nodeName Random string Name of the node
dataDir undefined Optional folder to keep your data. When undefined, all the data is kept in memory
localOnly false Node is only available locally
rpcPort 9085 Port for remote procedure call
rpcAllowed 127.0.0.1 Space separated list of addresses, that can use rpc
offlineGeneration false Allow node to generate new blocks when it's offline
historySynchronizerTimeout 30 Timeout in seconds for the history synchronizer to wait a response from remote nodes
blockGenerationDelay 1000 Time in milliseconds for block generator to try to generate a new block
mininigThreads 1 Number of threads for mining
walletDirOpt undefined Optional folder to keep your wallet. When undefined, your wallet is kept in memory
walletPassword undefined Password for your wallet. When undefined, you should pass it on application start
walletSeed undefined Seed for your wallet to generate new accounts. When undefined, you should pass it on application start
apiKeyHash undefined Hash for API key. When undefined, RPC requests are allowed without any authentication
genesisTimestamp 1460952000000 Timestamp for genesis block.
cors false Allow API to called from another domain outside the domain from which the resource originated.
p2p:bindAddress 127.0.0.1 The socket address to bind to
p2p:port 9084 Port of the socket address to bind to
p2p:maxConnections 20 Maximum number of outgoing connections
p2p:connectionTimeout 60 Connection timeout in seconds
p2p:upnp true Enable upnp
p2p:upnpGatewayTimeout true The timeout for actions on the device
p2p:upnpDiscoverTimeout true The timeout for socket connections of the initial broadcast request
p2p:myAddress None Optional setting to configure declared address
p2p:knownPeers [] List of known peers

Scorex-transaciton settings

Parameter Default value Description
`` ``
`` ``
`` ``
`` ``
`` ``
`` ``
`` ``

Scorex-perma settings

Recommended example

Clone this wiki locally