Automate the deployment and configuration of additional nodes

+1 vote


I would like to take advantage of the auto-scaling abilities within AWS and was wondering if anyone has the steps required to automatically bash script (or alternative method) the deployment of a new node, add it to the existing multichain and give it the correct permissions?

As I see it the following needs to occur:



sudo yum update -y

cd /tmp


tar -xvzf multichain-1.0-alpha-24.tar.gz

cd multichain-1.0-alpha-24

sudo mv multichaind multichain-cli multichain-util /usr/local/bin


system will output: multichaind chain1@


How to get the new nodes wallet address: the result is shown from the following command run on the new node:

multichaind chain1@


The result looks like this:

MultiChain Core Daemon build 1.0 alpha 23 protocol 10005

Retrieving blockchain parameters from the seed node ...

Blockchain successfully initialized.


Please ask blockchain admin or user having activate permission to let you connect and/or transact:

multichain-cli chain1 grant 1QwjdCRgFvHSLhUK6qKN7v7Q4TU3hiXUYBvkiF connect

multichain-cli chain1 grant 1QwjdCRgFvHSLhUK6qKN7v7Q4TU3hiXUYBvkiF connect,send,receive


The next step in the workflow is to add permissions on the first server with the following command (unsure if this needs to be on all nodes).


multichain-cli chain1 grant 1QwjdCRgFvHSLhUK6qKN7v7Q4TU3hiXUYBvkiF connect


The second server then needs to connect to the chain - multichaind chain1 -daemon

Has anyone successfully automated the build and configuration of multichain nodes? Our plan is to use AWS auto-scaling to cope with increased workloads across the nodes.


asked Oct 4, 2016 by Kirk

1 Answer

0 votes

We don't have a script prepared for this, but you want to look into the -shortoutput=1 flag for multichaind - this will give you one line outputs with either the node address or wallet address (search for @ to distinguish them) and should make it much easier to build the script.

answered Oct 6, 2016 by MultiChain