Skip to content

Instantly share code, notes, and snippets.

@mtbitcoin
Created December 20, 2016 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtbitcoin/df77426574f3f8d61cb689b75394829d to your computer and use it in GitHub Desktop.
Save mtbitcoin/df77426574f3f8d61cb689b75394829d to your computer and use it in GitHub Desktop.
Dim web3 = New Nethereum.Web3.Web3("http://localhost:8545")
Dim abi = "[{""constant"":true,""inputs"":[{""name"":""node"",""type"":""bytes32""}],""name"":""resolver"",""outputs"":[{""name"":"""",""type"":""address""}],""payable"":false,""type"":""function""},{""constant"":true,""inputs"":[{""name"":""node"",""type"":""bytes32""}],""name"":""owner"",""outputs"":[{""name"":"""",""type"":""address""}],""payable"":false,""type"":""function""},{""constant"":false,""inputs"":[{""name"":""node"",""type"":""bytes32""},{""name"":""label"",""type"":""bytes32""},{""name"":""owner"",""type"":""address""}],""name"":""setSubnodeOwner"",""outputs"":[],""payable"":false,""type"":""function""},{""constant"":false,""inputs"":[{""name"":""node"",""type"":""bytes32""},{""name"":""ttl"",""type"":""uint64""}],""name"":""setTTL"",""outputs"":[],""payable"":false,""type"":""function""},{""constant"":true,""inputs"":[{""name"":""node"",""type"":""bytes32""}],""name"":""ttl"",""outputs"":[{""name"":"""",""type"":""uint64""}],""payable"":false,""type"":""function""},{""constant"":false,""inputs"":[{""name"":""node"",""type"":""bytes32""},{""name"":""resolver"",""type"":""address""}],""name"":""setResolver"",""outputs"":[],""payable"":false,""type"":""function""},{""constant"":false,""inputs"":[{""name"":""node"",""type"":""bytes32""},{""name"":""owner"",""type"":""address""}],""name"":""setOwner"",""outputs"":[],""payable"":false,""type"":""function""},{""anonymous"":false,""inputs"":[{""indexed"":true,""name"":""node"",""type"":""bytes32""},{""indexed"":false,""name"":""owner"",""type"":""address""}],""name"":""Transfer"",""type"":""event""},{""anonymous"":false,""inputs"":[{""indexed"":true,""name"":""node"",""type"":""bytes32""},{""indexed"":true,""name"":""label"",""type"":""bytes32""},{""indexed"":false,""name"":""owner"",""type"":""address""}],""name"":""NewOwner"",""type"":""event""},{""anonymous"":false,""inputs"":[{""indexed"":true,""name"":""node"",""type"":""bytes32""},{""indexed"":false,""name"":""resolver"",""type"":""address""}],""name"":""NewResolver"",""type"":""event""},{""anonymous"":false,""inputs"":[{""indexed"":true,""name"":""node"",""type"":""bytes32""},{""indexed"":false,""name"":""ttl"",""type"":""uint64""}],""name"":""NewTTL"",""type"":""event""}]"
Dim contractAddress = "0x112234455c3a32fd11230c42e7bccd4a84e02010"
Dim contract = web3.Eth.GetContract(abi, contractAddress)
Dim sfunc3 = contract.GetFunction("owner")
Dim Data = sfunc3.GetData("0xf887964f142d4ad27dfb4a048a21fd0394ebe1d76f44fc2023393af1cc4f8c98")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment