Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.web3j.request;
- import java.util.*;
- public class Demonstration {
- @SmartContract(address="0x<address>|<ensName>")
- SmartContract simpleStorage;
- // ko se proži metoda na smart contractu moneyReceived() se proži metoda
- @SmartContractMethod(name="set")
- public static void grantAccessToHotel (@SmartContractParam String value) {
- // Send access token via email to user
- }
- @SmartContractDeploy(class="SimpleStorage")
- public static void deployContract() { // initial Value required if payable modifier
- }
- @SmartContractTransfer(class="SimpleStorage")
- public static void transferFunds() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement