To configure the Blockchain, you must go into:
- Liferay Control Panel
- Configuration System Settings
In configuration there are :
- My Network
- With Amount
- Default destination
- Wallet Path
- Protocol Name
- Host Name
- Host Port
- Gas Limit
My network is the name of your Network, you can leave it empty.
If With Amount is flagged, when you Store a file into Blockchain, you can do a transaction with amount, also without amount.
In default destination you must write the USERID of (Liferay USER) storage storage.
In wallet Path you must write the path where the wallet will be create.
In my case the path is :
Protocol name is http or https
In host name you must write the ip, in host port the port that you would to use. (localhost/127.0.0.1)
Gas Limit is a unit that gets translated further into Ether (ETH) as a cost of performing that action (or work). The requestor pays this cost to the miner who actually mines and validates that transaction (or action). Normally 21.000 should suffice.
PORTLET IN PAGE
Now you are able to insert all portlet in your site. In this example, there are 5 pages:
- File Checker
In Accounts there are two portlet:
- Blockchain Account
- Blockchain Status
The features will be explained in the following paragraphs.
In Transactions there is :
In File Checker there is:
In Logs there is:
And in Dml there is the Liferay's Standard DML(Document And Media Library).