|  | 
|  | 1 | +# Multichain Blockchain PHP library | 
|  | 2 | + | 
|  | 3 | +This is a library which I have created for my recent project. | 
|  | 4 | +Its a useful tool if you want implement Multichain blockchain in your projects. It is very easy to | 
|  | 5 | +use and work with.  | 
|  | 6 | +I would suggest you to wrap around an MVC framework around it so cn be used kind of a BaaS (Blockchain as a Service) | 
|  | 7 | +MultiChain 2.3.3. update the library `core/Private/MultiChainClient.php` to be able to use updated library. | 
|  | 8 | + | 
|  | 9 | +It is fairly easy Just go through `index.php` most of the examples provided there and the code is documented(can't believe it) | 
|  | 10 | + | 
|  | 11 | +## Basic commands fot Multichain Blockchain  | 
|  | 12 | +To be able to work with multichain so basic cli commands are required, which are given below | 
|  | 13 | + | 
|  | 14 | + | 
|  | 15 | +Starting a node <br/> | 
|  | 16 | +`multichaind <chainName> -daemon`<br/><br/> | 
|  | 17 | + | 
|  | 18 | +Get all the required parameters <br/> | 
|  | 19 | +`multichain-cli <chainName> getinfo`<br/><br/> | 
|  | 20 | + | 
|  | 21 | +Get get the information of the block and who mined it <br/> | 
|  | 22 | +`multichain-cli <chainName> getblock <block height>`<br/><br/> | 
|  | 23 | + | 
|  | 24 | +Create a new multichain blockchain <br/> | 
|  | 25 | +`multichain-util create <chainName>`<br/><br/> | 
|  | 26 | + | 
|  | 27 | + | 
|  | 28 | +Connect to blockchain from second node <br/>  | 
|  | 29 | +`multichaind <chainname>@[ip-address]:[port]`<br/><br/> | 
|  | 30 | + | 
|  | 31 | +Provide required permissions to second node <br/> | 
|  | 32 | +`Multichain-cli <chainnamer> grant <walletaddress> connect`<br/><br/> | 
|  | 33 | + | 
|  | 34 | +Reconnect from Second Node <br/> | 
|  | 35 | +`multichaind <chainname>@[ip-address]:[port]`<br/><br/> | 
|  | 36 | + | 
|  | 37 | +Multichain get info <br/>  | 
|  | 38 | +`multichain-cli <chainName> getinfo`<br/><br/> | 
|  | 39 | + | 
|  | 40 | +List of addresses <br/>  | 
|  | 41 | +`multichain-cli <chainName> listaddresses`<br/><br/> | 
|  | 42 | + | 
|  | 43 | +Get new address <br/>  | 
|  | 44 | +`multichain-cli <chainName> getnewaddress`<br/><br/> | 
|  | 45 | + | 
|  | 46 | +List permissions <br/> | 
|  | 47 | +`multichain-cli <chainName> listpermissions`<br/><br/> | 
|  | 48 | + | 
|  | 49 | +List permissions type <br/> | 
|  | 50 | +`multichain-cli <chainName> listpermissions issus/mine/admin`<br/><br/> | 
|  | 51 | + | 
0 commit comments