Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 565 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 565 Bytes

MultiChainLib -- C# library for the MultiChain private blockchain

Refer to the API documentation at http://www.multichain.com/developers/json-rpc-api/ for details of the calls.

Example:

internal async Task DoMagic()
{
    // connect to the client...
    var client = new MultiChainClient("192.168.40.130", 50001, false, 
		"rpc_username", "rpc_password", "the_chain_name");

    // get some info back...
    var info = await client.GetInfoAsync();
    Console.WriteLine("Chain: {0}, difficulty: {1}", info.Result.ChainName, info.Result.Difficulty);
}