Created
March 4, 2018 14:17
-
-
Save tempofeng/5a47977abb17450cd02580711c27b389 to your computer and use it in GitHub Desktop.
Calling Smart Contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val etherSpace = EtherSpace.build { | |
provider = "https://rinkeby.infura.io/" // Or your local node | |
credentials = Credentials(YOUR_PRIVATE_KEY_OR_WALLET) | |
} | |
var greeter = etherSpace.create(SMART_CONTRACT_ADDRESS, Greeter::class.java) | |
val receipt = greeter.newGreeting("Hello World") | |
println(greeter.greet()) // Should be "Hello World" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment