Package org.web3j.tx

Class Transfer


  • public class Transfer
    extends ManagedTransaction
    Class for performing Ether transactions on the Ethereum blockchain.
    • Field Detail

      • GAS_LIMIT

        public static final java.math.BigInteger GAS_LIMIT
    • 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 address
        value - amount to send
        unit - 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)