public class Transfer extends ManagedTransaction
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigInteger |
GAS_LIMIT |
ensResolver, GAS_PRICE, transactionManager, web3j| Constructor and Description |
|---|
Transfer(Web3j web3j,
TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
RemoteCall<TransactionReceipt> |
sendFunds(java.lang.String toAddress,
java.math.BigDecimal value,
org.web3j.utils.Convert.Unit unit)
Execute the provided function as a transaction asynchronously.
|
RemoteCall<TransactionReceipt> |
sendFunds(java.lang.String toAddress,
java.math.BigDecimal value,
org.web3j.utils.Convert.Unit unit,
java.math.BigInteger gasPrice,
java.math.BigInteger gasLimit) |
static RemoteCall<TransactionReceipt> |
sendFunds(Web3j web3j,
org.web3j.crypto.Credentials credentials,
java.lang.String toAddress,
java.math.BigDecimal value,
org.web3j.utils.Convert.Unit unit) |
static RemoteCall<TransactionReceipt> |
sendFundsEIP1559(Web3j web3j,
org.web3j.crypto.Credentials credentials,
java.lang.String toAddress,
java.math.BigDecimal value,
org.web3j.utils.Convert.Unit unit,
java.math.BigInteger gasLimit,
java.math.BigInteger gasPremium,
java.math.BigInteger feeCap) |
call, getSyncThreshold, requestCurrentGasPrice, send, send, sendEIP1559, setSyncThresholdpublic Transfer(Web3j web3j, TransactionManager transactionManager)
public static RemoteCall<TransactionReceipt> sendFunds(Web3j web3j, org.web3j.crypto.Credentials credentials, java.lang.String toAddress, java.math.BigDecimal value, org.web3j.utils.Convert.Unit unit) throws java.lang.InterruptedException, java.io.IOException, TransactionException
java.lang.InterruptedExceptionjava.io.IOExceptionTransactionExceptionpublic RemoteCall<TransactionReceipt> sendFunds(java.lang.String toAddress, java.math.BigDecimal value, org.web3j.utils.Convert.Unit unit)
toAddress - destination addressvalue - amount to sendunit - of specified sendRemoteCall containing executing transactionpublic RemoteCall<TransactionReceipt> sendFunds(java.lang.String toAddress, java.math.BigDecimal value, org.web3j.utils.Convert.Unit unit, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit)
public static RemoteCall<TransactionReceipt> sendFundsEIP1559(Web3j web3j, org.web3j.crypto.Credentials credentials, java.lang.String toAddress, java.math.BigDecimal value, org.web3j.utils.Convert.Unit unit, java.math.BigInteger gasLimit, java.math.BigInteger gasPremium, java.math.BigInteger feeCap)