Smart Contract
Smart contract is a key feature of AIXCHAIN network. It’s easy to creating and interacting with smart contracts through Aixchain SDK.
Calling smart contract
Get contract
public void getSmartContract() {
try {
AixcClient client = new AixcClient("172.104.51.182:16669","172.104.51.182:16669","private key");
Contract cntr = client.getContract("AV27cVbuGmTv9q6qgtPxsLUkuG9ohUUVPd"); //JST
for (ContractFunction cf : cntr.getFunctions()) {
System.out.println(cf.toString());
}
} catch (Exception e) {
System.out.println("error: " + e);
}
}Trigger call
constantCall
Last updated