We have used Getblock API to connect blockchain to our local system.
Import web3 // this library docs provide all the info Import Getblock API
Functions we created: To account (which also creates random account) From account Sign transaction Send signed transaction Send Ether 'to' and 'from'