Package | Description |
---|---|
org.tron.common.utils | |
tv.noixion.troncli | |
tv.noixion.troncli.examples | |
tv.noixion.troncli.utils |
Modifier and Type | Method and Description |
---|---|
static byte[] |
AbiUtil.encodeInput(String methodSign,
String input) |
static byte[] |
AbiUtil.pack(List<AbiUtil.Coder> codes,
List<Object> values) |
static String |
AbiUtil.parseMethod(String methodSign,
String params) |
static String |
AbiUtil.parseMethod(String methodSign,
String input,
boolean isHex) |
Modifier and Type | Method and Description |
---|---|
TriggerContractResult |
TronContractProxy.callMethod(TronWallet sender,
TriggerContractDataBuilder call,
TronCurrency feeLimit,
TronCurrency callValue)
Calls a method of the smart contract.
|
TriggerContractResult |
TronContractProxy.callMethod(TronWallet sender,
TriggerContractDataBuilder call,
TronCurrency feeLimit,
TronCurrency callValue,
long callValueTokenId,
long callValueToken)
Calls a method of the smart contract.
|
javafx.util.Pair<TronTransaction,TronAddress> |
TronClient.deploySmartContract(TronWallet owner,
String contractName,
String ABI,
String byteCode,
TriggerContractDataBuilder constructorCall,
TronCurrency feeLimit,
long consumeUserResourcePercent,
TronCurrency callValue,
long callValueTokenId,
long callValueToken,
long originEnergyLimit,
Map<String,TronAddress> libraries)
Deploys an smart contract on the Tron network.
|
javafx.util.Pair<TronTransaction,TronAddress> |
TronClient.deploySmartContract(TronWallet owner,
String contractName,
String ABI,
String byteCode,
TriggerContractDataBuilder constructorCall,
TronCurrency feeLimit,
long consumeUserResourcePercent,
TronCurrency callValue,
Map<String,TronAddress> libraries)
Deploys an smart contract on the Tron network.
|
TriggerContractResult |
TronClient.triggerSmartContract(TronWallet owner,
TronAddress contractAddress,
TriggerContractDataBuilder call,
TronCurrency feeLimit,
TronCurrency callValue)
Triggers a smart contract, calling one method.
|
TriggerContractResult |
TronClient.triggerSmartContract(TronWallet owner,
TronAddress contractAddress,
TriggerContractDataBuilder call,
TronCurrency feeLimit,
TronCurrency callValue,
long callValueTokenId,
long callValueToken)
Triggers a smart contract, calling one method.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
IERC20Proxy.allowance(TronAddress address,
TronAddress spender)
Retrieves the allowance of an account.
|
TronTransaction |
IERC20Proxy.approve(TronWallet sender,
TronAddress spender,
BigInteger value)
Approves another account to spend tokens.
|
BigInteger |
IERC20Proxy.balanceOf(TronAddress address)
Retrieves the balance of an account.
|
BigInteger |
IERC20Proxy.totalSupply()
Retrieves the total supply of token.
|
TronTransaction |
IERC20Proxy.transfer(TronWallet sender,
TronAddress to,
BigInteger value)
Transfers tokens.
|
TronTransaction |
IERC20Proxy.transferFrom(TronWallet sender,
TronAddress from,
TronAddress to,
BigInteger value)
Transfers from one account to another account.
|
Copyright © 2020. All rights reserved.