public class ChainUtil extends Object
| 构造器和说明 |
|---|
ChainUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BigInteger |
estimateGas(String to,
String data,
BlockChainClient blockChainClient) |
static BigInteger |
estimateGas(org.web3j.protocol.core.methods.request.Transaction transaction,
BlockChainClient blockChainClient) |
static BigDecimal |
getBalance(String address,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.EthBlock.Block |
getBlock(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.EthBlock.Block |
getBlock(long blockNumber,
BlockChainClient blockChainClient) |
static BigInteger |
getBlockNumber(BlockChainClient blockChainClient) |
static BigInteger |
getChainId(BlockChainClient blockChainClient) |
static String |
getCode(String address,
BlockChainClient blockChainClient) |
static BigInteger |
getGasPrice(BlockChainClient blockChainClient) |
static List<org.web3j.protocol.core.methods.response.Log> |
getLogs(org.web3j.protocol.core.DefaultBlockParameter blockNumberStart,
org.web3j.protocol.core.DefaultBlockParameter blockNumberEnd,
List<String> addresses,
BlockChainClient blockChainClient,
String... topics) |
static List<org.web3j.protocol.core.methods.response.Log> |
getLogs(long blockNumber,
List<String> addresses,
BlockChainClient blockChainClient,
String... topics) |
static List<org.web3j.protocol.core.methods.response.Log> |
getLogs(long blockNumberStart,
long blockNumberEnd,
List<String> addresses,
BlockChainClient blockChainClient,
String... topics) |
static List<org.web3j.protocol.core.methods.response.Log> |
getLogs(long blockNumber,
String address,
BlockChainClient blockChainClient,
String... topics) |
static String |
getNetVersion(BlockChainClient blockChainClient) |
static BigInteger |
getNonce(String address,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.TransactionReceipt |
getTransactionReceipt(String txHash,
BlockChainClient blockChainClient) |
static String |
getWeb3ClientVersion(BlockChainClient blockChainClient) |
static EvmErrorMsg |
parseEvmError(org.web3j.protocol.core.methods.response.EthCall ethCall) |
static org.web3j.protocol.core.methods.response.EthSendTransaction |
sendTransaction(BigInteger gasPrice,
BigInteger gasLimit,
String to,
String data,
BigInteger value,
org.web3j.crypto.Credentials credentials,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.EthSendTransaction |
transfer(BigInteger gasPrice,
BigInteger gasLimit,
String to,
BigDecimal value,
org.web3j.utils.Convert.Unit unit,
org.web3j.crypto.Credentials credentials,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.EthSendTransaction |
transfer(BigInteger gasPrice,
String to,
BigDecimal value,
org.web3j.utils.Convert.Unit unit,
org.web3j.crypto.Credentials credentials,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.EthSendTransaction |
transfer(String to,
BigDecimal value,
org.web3j.utils.Convert.Unit unit,
org.web3j.crypto.Credentials credentials,
BlockChainClient blockChainClient) |
static org.web3j.protocol.core.methods.response.EthSendTransaction |
transfer(String to,
BigDecimal value,
org.web3j.crypto.Credentials credentials,
BlockChainClient blockChainClient) |
public static BigInteger getBlockNumber(BlockChainClient blockChainClient)
public static BigInteger getGasPrice(BlockChainClient blockChainClient)
public static String getNetVersion(BlockChainClient blockChainClient)
public static BigInteger getChainId(BlockChainClient blockChainClient)
public static String getWeb3ClientVersion(BlockChainClient blockChainClient)
public static BigInteger getNonce(String address, BlockChainClient blockChainClient)
public static BigDecimal getBalance(String address, BlockChainClient blockChainClient)
public static String getCode(String address, BlockChainClient blockChainClient)
public static List<org.web3j.protocol.core.methods.response.Log> getLogs(org.web3j.protocol.core.DefaultBlockParameter blockNumberStart, org.web3j.protocol.core.DefaultBlockParameter blockNumberEnd, List<String> addresses, BlockChainClient blockChainClient, String... topics)
public static List<org.web3j.protocol.core.methods.response.Log> getLogs(long blockNumberStart, long blockNumberEnd, List<String> addresses, BlockChainClient blockChainClient, String... topics)
public static List<org.web3j.protocol.core.methods.response.Log> getLogs(long blockNumber, List<String> addresses, BlockChainClient blockChainClient, String... topics)
public static List<org.web3j.protocol.core.methods.response.Log> getLogs(long blockNumber, String address, BlockChainClient blockChainClient, String... topics)
public static org.web3j.protocol.core.methods.response.EthBlock.Block getBlock(org.web3j.protocol.core.DefaultBlockParameter defaultBlockParameter,
BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.EthBlock.Block getBlock(long blockNumber,
BlockChainClient blockChainClient)
public static BigInteger estimateGas(org.web3j.protocol.core.methods.request.Transaction transaction, BlockChainClient blockChainClient)
public static BigInteger estimateGas(String to, String data, BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.EthSendTransaction sendTransaction(BigInteger gasPrice, BigInteger gasLimit, String to, String data, BigInteger value, org.web3j.crypto.Credentials credentials, BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.EthSendTransaction transfer(BigInteger gasPrice, BigInteger gasLimit, String to, BigDecimal value, org.web3j.utils.Convert.Unit unit, org.web3j.crypto.Credentials credentials, BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.EthSendTransaction transfer(BigInteger gasPrice, String to, BigDecimal value, org.web3j.utils.Convert.Unit unit, org.web3j.crypto.Credentials credentials, BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.EthSendTransaction transfer(String to, BigDecimal value, org.web3j.utils.Convert.Unit unit, org.web3j.crypto.Credentials credentials, BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.EthSendTransaction transfer(String to, BigDecimal value, org.web3j.crypto.Credentials credentials, BlockChainClient blockChainClient)
public static org.web3j.protocol.core.methods.response.TransactionReceipt getTransactionReceipt(String txHash, BlockChainClient blockChainClient)
public static EvmErrorMsg parseEvmError(org.web3j.protocol.core.methods.response.EthCall ethCall)
Copyright © 2023. All rights reserved.