Skip to content

Instantly share code, notes, and snippets.

@tempofeng
Created March 4, 2018 14:17
Show Gist options
  • Save tempofeng/5a47977abb17450cd02580711c27b389 to your computer and use it in GitHub Desktop.
Save tempofeng/5a47977abb17450cd02580711c27b389 to your computer and use it in GitHub Desktop.
Calling Smart Contract
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