Class Transaction
- java.lang.Object
-
- org.web3j.protocol.core.methods.request.Transaction
-
public class Transaction extends java.lang.Object
Transaction request object used the below methods.- eth_call
- eth_sendTransaction
- eth_estimateGas
-
-
Field Summary
Fields Modifier and Type Field Description static java.math.BigInteger
DEFAULT_GAS
-
Constructor Summary
Constructors Constructor Description Transaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)
Transaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data, java.math.BigInteger gasPremium, java.math.BigInteger feeCap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Transaction
createContractTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.lang.String init)
static Transaction
createContractTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.math.BigInteger value, java.lang.String init)
static Transaction
createEthCallTransaction(java.lang.String from, java.lang.String to, java.lang.String data)
static Transaction
createEtherTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value)
static Transaction
createFunctionCallTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data)
static Transaction
createFunctionCallTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)
java.lang.String
getData()
java.lang.String
getFrom()
java.lang.String
getGas()
java.lang.String
getGasPrice()
java.lang.String
getNonce()
java.lang.String
getTo()
java.lang.String
getValue()
-
-
-
Constructor Detail
-
Transaction
public Transaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)
- Parameters:
from
-nonce
-gasPrice
-gasLimit
-to
-value
-data
-
-
Transaction
public Transaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data, java.math.BigInteger gasPremium, java.math.BigInteger feeCap)
- Parameters:
from
-nonce
-gasPrice
-gasLimit
-to
-value
-data
-gasPremium
-feeCap
-
-
-
Method Detail
-
createContractTransaction
public static Transaction createContractTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.math.BigInteger value, java.lang.String init)
- Parameters:
from
-nonce
-gasPrice
-gasLimit
-value
-init
-- Returns:
-
createContractTransaction
public static Transaction createContractTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.lang.String init)
- Parameters:
from
-nonce
-gasPrice
-init
-- Returns:
-
createEtherTransaction
public static Transaction createEtherTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value)
- Parameters:
from
-nonce
-gasPrice
-gasLimit
-to
-value
-- Returns:
-
createFunctionCallTransaction
public static Transaction createFunctionCallTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.math.BigInteger value, java.lang.String data)
- Parameters:
from
-nonce
-gasPrice
-gasLimit
-to
-value
-data
-- Returns:
-
createFunctionCallTransaction
public static Transaction createFunctionCallTransaction(java.lang.String from, java.math.BigInteger nonce, java.math.BigInteger gasPrice, java.math.BigInteger gasLimit, java.lang.String to, java.lang.String data)
- Parameters:
from
-nonce
-gasPrice
-gasLimit
-to
-data
-- Returns:
-
createEthCallTransaction
public static Transaction createEthCallTransaction(java.lang.String from, java.lang.String to, java.lang.String data)
- Parameters:
from
-to
-data
-- Returns:
-
getFrom
public java.lang.String getFrom()
- Returns:
-
getTo
public java.lang.String getTo()
- Returns:
-
getGas
public java.lang.String getGas()
- Returns:
-
getGasPrice
public java.lang.String getGasPrice()
- Returns:
-
getValue
public java.lang.String getValue()
- Returns:
-
getData
public java.lang.String getData()
- Returns:
-
getNonce
public java.lang.String getNonce()
- Returns:
-
-