blockchain
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blockchain [2017/11/29 01:52] – stephen | blockchain [2017/12/01 01:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Links ===== | ===== Links ===== | ||
| + | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ===== General Notes ===== | ||
| + | |||
| + | * Make sure the constructor of the contract has the correct access modifiers: | ||
| + | < | ||
| + | function MegaContract() public payable { | ||
| + | </ | ||
| + | |||
| + | ==== Security ==== | ||
| + | |||
| + | To do anything that requires gas, either unlock the account beforehand with the password: | ||
| + | |||
| + | < | ||
| + | var address = " | ||
| + | var password = " | ||
| + | var web3 = new Web3(); | ||
| + | var unlockAccountResult = await web3.Personal.UnlockAccount.SendRequestAsync(address, | ||
| + | Assert.IsTrue(unlockAccountResult); | ||
| + | </ | ||
| + | |||
| + | Or use the private key to create the Web3 object: | ||
| + | |||
| + | < | ||
| + | var privateKey = " | ||
| + | var web3 = new Web3(new Account(privateKey)); | ||
| + | </ | ||
| + | |||
| + | ===== Questions ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * How to I get the result of calling an external function with Nethereum? | ||
| ===== Tool Set Install ===== | ===== Tool Set Install ===== | ||
blockchain.1511920328.txt.gz · Last modified: 2017/11/30 02:52 (external edit)
