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) |
call, getSyncThreshold, requestCurrentGasPrice, send, send, setSyncThreshold
public 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.InterruptedException
java.io.IOException
TransactionException
public 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)