Package org.web3j.tx
Class Transfer
java.lang.Object
org.web3j.tx.ManagedTransaction
org.web3j.tx.Transfer
Class for performing Ether transactions on the Ethereum blockchain.
-
Field Summary
Fields inherited from class org.web3j.tx.ManagedTransaction
ensResolver, GAS_PRICE, transactionManager, web3j
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsendFunds
(String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit) Execute the provided function as a transaction asynchronously.sendFunds
(String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit, BigInteger gasPrice, BigInteger gasLimit) static RemoteCall<TransactionReceipt>
sendFunds
(Web3j web3j, org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit) static RemoteCall<TransactionReceipt>
sendFundsEIP1559
(Web3j web3j, org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit, BigInteger gasLimit, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas) Methods inherited from class org.web3j.tx.ManagedTransaction
call, getSyncThreshold, requestCurrentGasPrice, send, send, sendEIP1559, sendEIP1559, setSyncThreshold
-
Field Details
-
GAS_LIMIT
-
-
Constructor Details
-
Transfer
-
-
Method Details
-
sendFunds
public static RemoteCall<TransactionReceipt> sendFunds(Web3j web3j, org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit) throws InterruptedException, IOException, TransactionException -
sendFunds
public RemoteCall<TransactionReceipt> sendFunds(String toAddress, 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(String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit, BigInteger gasPrice, BigInteger gasLimit) -
sendFundsEIP1559
public static RemoteCall<TransactionReceipt> sendFundsEIP1559(Web3j web3j, org.web3j.crypto.Credentials credentials, String toAddress, BigDecimal value, org.web3j.utils.Convert.Unit unit, BigInteger gasLimit, BigInteger maxPriorityFeePerGas, BigInteger maxFeePerGas) throws IOException - Throws:
IOException
-