程序包 org.zlwl.wallet
类 EthTool
java.lang.Object
org.zlwl.wallet.EthTool
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static longgetChainId(org.web3j.protocol.Web3j web3j) static BigDecimalgetEthBalance(String address, org.web3j.protocol.Web3j web3j) static BigIntegergetGesPrice(org.web3j.protocol.Web3j web3j) static BigIntegerstatic org.web3j.protocol.core.methods.response.TransactionReceiptlegacyTransfer(org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal amount, org.web3j.protocol.Web3j web3j) static org.web3j.protocol.core.methods.response.TransactionReceipttransfer(org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal amount, BigInteger gasLimit, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas, org.web3j.protocol.Web3j web3j)
-
构造器详细资料
-
EthTool
public EthTool()
-
-
方法详细资料
-
getEthBalance
public static BigDecimal getEthBalance(String address, org.web3j.protocol.Web3j web3j) throws IOException - 抛出:
IOException
-
legacyTransfer
public static org.web3j.protocol.core.methods.response.TransactionReceipt legacyTransfer(org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal amount, org.web3j.protocol.Web3j web3j) throws Exception - 抛出:
Exception
-
transfer
public static org.web3j.protocol.core.methods.response.TransactionReceipt transfer(org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal amount, BigInteger gasLimit, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas, org.web3j.protocol.Web3j web3j) throws Exception - 抛出:
Exception
-
getNonce
public static BigInteger getNonce(String address, org.web3j.protocol.Web3j web3j) throws IOException - 抛出:
IOException
-
getGesPrice
public static BigInteger getGesPrice(org.web3j.protocol.Web3j web3j) throws ExecutionException, InterruptedException -
getChainId
- 抛出:
IOException
-