Class ERC20
java.lang.Object
org.web3j.tx.ManagedTransaction
org.web3j.tx.Contract
com.nftworlds.wallet.contracts.wrappers.common.ERC20
public class ERC20
extends org.web3j.tx.Contract
Standard contract wrapper for ERC20 contract interactions on any chain.
Auto-generated with web3j version 4.1.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class org.web3j.tx.Contract
org.web3j.tx.Contract.EventValuesWithLog
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.web3j.abi.datatypes.Event
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final org.web3j.abi.datatypes.Event
Fields inherited from class org.web3j.tx.Contract
BIN_NOT_PROVIDED, contractAddress, contractBinary, defaultBlockParameter, deployedAddresses, FUNC_DEPLOY, GAS_LIMIT, gasProvider, transactionReceipt
Fields inherited from class org.web3j.tx.ManagedTransaction
ensResolver, GAS_PRICE, transactionManager, web3j
-
Constructor Summary
ModifierConstructorDescriptionprotected
ERC20
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) Deprecated.protected
ERC20
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, org.web3j.tx.gas.ContractGasProvider contractGasProvider) protected
ERC20
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) Deprecated.protected
ERC20
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.web3j.protocol.core.RemoteCall<BigInteger>
io.reactivex.Flowable<ERC20.ApprovalEventResponse>
approvalEventFlowable
(org.web3j.protocol.core.DefaultBlockParameter startBlock, org.web3j.protocol.core.DefaultBlockParameter endBlock) io.reactivex.Flowable<ERC20.ApprovalEventResponse>
approvalEventFlowable
(org.web3j.protocol.core.methods.request.EthFilter filter) org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt>
approve
(String _spender, BigInteger _value) org.web3j.protocol.core.RemoteCall<BigInteger>
org.web3j.protocol.core.RemoteCall<BigInteger>
decimals()
getApprovalEvents
(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) getTransferEvents
(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) static ERC20
load
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) Deprecated.static ERC20
load
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, org.web3j.tx.gas.ContractGasProvider contractGasProvider) static ERC20
load
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) Deprecated.static ERC20
load
(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider) org.web3j.protocol.core.RemoteCall<String>
name()
org.web3j.protocol.core.RemoteCall<String>
symbol()
org.web3j.protocol.core.RemoteCall<BigInteger>
org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt>
transfer
(String _to, BigInteger _value) io.reactivex.Flowable<ERC20.TransferEventResponse>
transferEventFlowable
(org.web3j.protocol.core.DefaultBlockParameter startBlock, org.web3j.protocol.core.DefaultBlockParameter endBlock) io.reactivex.Flowable<ERC20.TransferEventResponse>
transferEventFlowable
(org.web3j.protocol.core.methods.request.EthFilter filter) org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt>
transferFrom
(String _from, String _to, BigInteger _value) Methods inherited from class org.web3j.tx.Contract
convertToNative, deploy, deploy, deploy, deploy, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, deployRemoteCall, executeCallMultipleValueReturn, executeCallSingleValueReturn, executeCallSingleValueReturn, executeRemoteCallMultipleValueReturn, executeRemoteCallSingleValueReturn, executeRemoteCallSingleValueReturn, executeRemoteCallTransaction, executeRemoteCallTransaction, executeTransaction, extractEventParameters, extractEventParameters, extractEventParametersWithLog, extractEventParametersWithLog, getContractAddress, getContractBinary, getDeployedAddress, getGasPrice, getStaticDeployedAddress, getTransactionReceipt, isValid, resolveContractAddress, setContractAddress, setDefaultBlockParameter, setDeployedAddress, setGasPrice, setGasProvider, setTransactionReceipt, staticExtractEventParameters, staticExtractEventParametersWithLog
Methods inherited from class org.web3j.tx.ManagedTransaction
call, getSyncThreshold, requestCurrentGasPrice, send, send, sendEIP1559, setSyncThreshold
-
Field Details
-
FUNC_NAME
- See Also:
-
FUNC_APPROVE
- See Also:
-
FUNC_TOTALSUPPLY
- See Also:
-
FUNC_TRANSFERFROM
- See Also:
-
FUNC_DECIMALS
- See Also:
-
FUNC_BALANCEOF
- See Also:
-
FUNC_SYMBOL
- See Also:
-
FUNC_TRANSFER
- See Also:
-
FUNC_ALLOWANCE
- See Also:
-
TRANSFER_EVENT
public static final org.web3j.abi.datatypes.Event TRANSFER_EVENT -
APPROVAL_EVENT
public static final org.web3j.abi.datatypes.Event APPROVAL_EVENT
-
-
Constructor Details
-
ERC20
@Deprecated protected ERC20(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) Deprecated. -
ERC20
protected ERC20(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, org.web3j.tx.gas.ContractGasProvider contractGasProvider) -
ERC20
@Deprecated protected ERC20(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) Deprecated. -
ERC20
protected ERC20(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)
-
-
Method Details
-
name
-
approve
public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> approve(String _spender, BigInteger _value) -
totalSupply
-
transferFrom
public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transferFrom(String _from, String _to, BigInteger _value) -
decimals
-
balanceOf
-
symbol
-
transfer
public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transfer(String _to, BigInteger _value) -
allowance
-
getTransferEvents
public List<ERC20.TransferEventResponse> getTransferEvents(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) -
transferEventFlowable
public io.reactivex.Flowable<ERC20.TransferEventResponse> transferEventFlowable(org.web3j.protocol.core.methods.request.EthFilter filter) -
transferEventFlowable
public io.reactivex.Flowable<ERC20.TransferEventResponse> transferEventFlowable(org.web3j.protocol.core.DefaultBlockParameter startBlock, org.web3j.protocol.core.DefaultBlockParameter endBlock) -
getApprovalEvents
public List<ERC20.ApprovalEventResponse> getApprovalEvents(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt) -
approvalEventFlowable
public io.reactivex.Flowable<ERC20.ApprovalEventResponse> approvalEventFlowable(org.web3j.protocol.core.methods.request.EthFilter filter) -
approvalEventFlowable
public io.reactivex.Flowable<ERC20.ApprovalEventResponse> approvalEventFlowable(org.web3j.protocol.core.DefaultBlockParameter startBlock, org.web3j.protocol.core.DefaultBlockParameter endBlock) -
load
@Deprecated public static ERC20 load(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) Deprecated. -
load
@Deprecated public static ERC20 load(String contractAddress, org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit) Deprecated. -
load
-
load
-