Package org.web3j.tx
Class Transfer
- java.lang.Object
-
- org.web3j.tx.ManagedTransaction
-
- org.web3j.tx.Transfer
-
public class Transfer extends ManagedTransaction
Class for performing Ether transactions on the Ethereum blockchain.
-
-
Field Summary
Fields Modifier and Type Field Description static java.math.BigInteger
GAS_LIMIT
-
Fields inherited from class org.web3j.tx.ManagedTransaction
ensResolver, GAS_PRICE, transactionManager, web3j
-
-
Constructor Summary
Constructors Constructor Description Transfer(Web3j web3j, TransactionManager transactionManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.web3j.tx.ManagedTransaction
call, getSyncThreshold, requestCurrentGasPrice, send, send, sendEIP1559, setSyncThreshold
-
-
-
-
Constructor Detail
-
Transfer
public Transfer(Web3j web3j, TransactionManager transactionManager)
-
-
Method Detail
-
sendFunds
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
- Throws:
java.lang.InterruptedException
java.io.IOException
TransactionException
-
sendFunds
public 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. This is intended for one-off fund transfers. For multiple, create an instance.- Parameters:
toAddress
- destination addressvalue
- amount to sendunit
- of specified send- Returns:
RemoteCall
containing executing transaction
-
sendFunds
public 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)
-
sendFundsEIP1559
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)
-
-