Deploy to Ethereum Network (from Browser-Solidity)
Next, let's deploy the contract created onto the private Ethereum network.
Due to issues arising from the Browser-Solidity version, you may not be able to execute Ethereum transactions from Browser-Solidity.
If that is the case, just review this flow diagram and try out direct execution from the console in the next chapter.
Deploy via Deploy node
PortForwarding (tunneling) setting
Unlock the account of the deployment user Confirm Lock-Unlock.
(The following tutorial will be explained on the premise that the account is unlocked, so unlock if necessary.)
Connection on web3
Choose 'Environment' (the cube icon) in Browser-Solidity's right menu section and enter 'Web3 Provider Endpoint:'
Confirm that it is entered correctly and select 'Web 3 Provider'.
A confirmation message as to whether to actually connect to the Ethereum node is displayed, but please connect with 'OK'.
If connection fails, such as when PortForwarding is not performed normally, the following error will be displayed, if so please check the PortForwarding configuration.
Once the connection is completed successfully, the contract will be compiled and deployed in the Ethereum environment by clicking on 'Create' just as you did locally.
This time, address
It was deployed to.
If there is no change on the screen all the time in this state, there is a possibility that registration has failed.
BrowserSolidity is still under development and depending on the Version the Create operation may fail.
In that case, please adjust the version of BrowserSolidity or try to deploy directly from the command line shown in the following section.
Enter "Hello World" and press 'setGreeting'.
Wait for the transaction to be issued and enter the block.
A transaction is created and the results are displayed.
If you press 'getGreeting', the value of the field will be retrieved.
Since this process is contant, it does not involve issuing transactions, so the results are displayed immediately.
Reverse direction from address
Deployed contracts are instantiated on the BlockChain, so you can specify addresses to retrieve them.
Press 'AtAddress' and the address of the contract you created in the dialog
Enter and press OK.
You can load deployed contracts as described below.