public class Sdk extends Object
public Receipt getReceipt()
public Receipt transferTokens(Node node, String privateKey, String from, String to, long tokens) throws Exception
node - privateKey - from - to - tokens - Exceptionpublic Receipt transferTokens(Node node, Account fromAccount, Account toAccount, long tokens) throws Exception
node - fromAccount - toAccount - tokens - Exceptionpublic Receipt deployContract(Node node, Account fromAccount, String code) throws Exception
Exceptionpublic Receipt executeContract(Node node, Account fromAccount, String contractAddress, String method, String params) throws Exception
Exceptionpublic Account getAccount(Node node, String address) throws Exception
node - address - Exceptionpublic List<Transaction> getTransactions(Node node) throws Exception
node - Exceptionpublic List<Transaction> getTransactionsByFromAddress(Node node, String address) throws Exception
node - address - Exceptionpublic List<Transaction> getTransactionsByToAddress(Node node, String address) throws Exception
node - address - Exceptionpublic String getTransactionStatus(Node node, String hash) throws Exception
Exceptionpublic String getTransactionStatusWaitUntilOk(Node node, String hash, long milliseconds) throws Exception
Exceptionpublic String createGenesisTransactionString(Account genesisAccount, long tokens) throws Exception
genesisAccount - Exceptionpublic Receipt getStatus(Node node, String id) throws Exception
node - id - Exceptionpublic static void main(String[] args)
args - Copyright © 2019. All rights reserved.