forked from baumann-at/MultiChain-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-example.php
More file actions
32 lines (27 loc) · 964 Bytes
/
config-example.php
File metadata and controls
32 lines (27 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
$config = new stdClass;
// optional configuration for monitoring script "mc-info"
$config->serverName = 'blockchains.example.io';
$config->serverOwner = 'Example Ltd.';
$config->externalIP = '11.22.33.44';
$chains = array();
// configuration for a Multichain blockchain
$chain = new stdClass;
$chain->name='chain1'; // name to display in the web interface
$chain->rpchost='192.168.1.23'; // IP address of MultiChain node
$chain->rpcport=1234; // default-rpc-port from params.dat
$chain->rpcuser='multichainrpc'; // username for RPC from multichain.conf
$chain->rpcpassword='---password---'; // password for RPC from multichain.conf
$chains[] = $chain;
// you can use define further chains like this
/*
$chain = new stdClass;
$chain->name='chain2';
$chain->rpchost='...';
$chain->rpcport=2345;
$chain->rpcuser='multichainrpc';
$chain->rpcpassword='...';
$chains[] = $chain;
*/
$config->chains = $chains;
?>