Class ERC20


  • public class ERC20
    extends org.web3j.tx.Contract

    Auto generated code.

    Do not modify!

    Please use the web3j command line tools, or the org.web3j.codegen.SolidityFunctionWrapperGenerator in the codegen module to update.

    Generated with web3j version 4.8.9.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected 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

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.web3j.protocol.core.RemoteFunctionCall<BigInteger> allowance​(String owner, String spender)  
      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.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> approve​(String spender, BigInteger amount)  
      org.web3j.protocol.core.RemoteFunctionCall<BigInteger> balanceOf​(String account)  
      org.web3j.protocol.core.RemoteFunctionCall<BigInteger> decimals()  
      org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> decreaseAllowance​(String spender, BigInteger subtractedValue)  
      static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, BigInteger gasPrice, BigInteger gasLimit)
      Deprecated.
      static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j, org.web3j.crypto.Credentials credentials, org.web3j.tx.gas.ContractGasProvider contractGasProvider)  
      static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit)
      Deprecated.
      static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j, org.web3j.tx.TransactionManager transactionManager, org.web3j.tx.gas.ContractGasProvider contractGasProvider)  
      List<ERC20.ApprovalEventResponse> getApprovalEvents​(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt)  
      List<ERC20.TransferEventResponse> getTransferEvents​(org.web3j.protocol.core.methods.response.TransactionReceipt transactionReceipt)  
      org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> increaseAllowance​(String spender, BigInteger addedValue)  
      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.RemoteFunctionCall<String> name()  
      org.web3j.protocol.core.RemoteFunctionCall<String> symbol()  
      org.web3j.protocol.core.RemoteFunctionCall<BigInteger> totalSupply()  
      org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transfer​(String recipient, BigInteger amount)  
      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.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transferFrom​(String sender, String recipient, BigInteger amount)  
      • 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
    • Constructor Detail

      • 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 Detail

      • 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)
      • 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)
      • allowance

        public org.web3j.protocol.core.RemoteFunctionCall<BigInteger> allowance​(String owner,
                                                                                String spender)
      • approve

        public org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> approve​(String spender,
                                                                                                                               BigInteger amount)
      • balanceOf

        public org.web3j.protocol.core.RemoteFunctionCall<BigInteger> balanceOf​(String account)
      • decimals

        public org.web3j.protocol.core.RemoteFunctionCall<BigInteger> decimals()
      • decreaseAllowance

        public org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> decreaseAllowance​(String spender,
                                                                                                                                         BigInteger subtractedValue)
      • increaseAllowance

        public org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> increaseAllowance​(String spender,
                                                                                                                                         BigInteger addedValue)
      • name

        public org.web3j.protocol.core.RemoteFunctionCall<String> name()
      • symbol

        public org.web3j.protocol.core.RemoteFunctionCall<String> symbol()
      • totalSupply

        public org.web3j.protocol.core.RemoteFunctionCall<BigInteger> totalSupply()
      • transfer

        public org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transfer​(String recipient,
                                                                                                                                BigInteger amount)
      • transferFrom

        public org.web3j.protocol.core.RemoteFunctionCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transferFrom​(String sender,
                                                                                                                                    String recipient,
                                                                                                                                    BigInteger amount)
      • load

        @Deprecated
        public static ERC20 load​(String contractAddress,
                                 org.web3j.protocol.Web3j web3j,
                                 org.web3j.tx.TransactionManager transactionManager,
                                 BigInteger gasPrice,
                                 BigInteger gasLimit)
        Deprecated.
      • load

        public static ERC20 load​(String contractAddress,
                                 org.web3j.protocol.Web3j web3j,
                                 org.web3j.crypto.Credentials credentials,
                                 org.web3j.tx.gas.ContractGasProvider contractGasProvider)
      • load

        public static ERC20 load​(String contractAddress,
                                 org.web3j.protocol.Web3j web3j,
                                 org.web3j.tx.TransactionManager transactionManager,
                                 org.web3j.tx.gas.ContractGasProvider contractGasProvider)
      • deploy

        public static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j,
                                                                       org.web3j.crypto.Credentials credentials,
                                                                       org.web3j.tx.gas.ContractGasProvider contractGasProvider)
      • deploy

        @Deprecated
        public static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j,
                                                                       org.web3j.crypto.Credentials credentials,
                                                                       BigInteger gasPrice,
                                                                       BigInteger gasLimit)
        Deprecated.
      • deploy

        public static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j,
                                                                       org.web3j.tx.TransactionManager transactionManager,
                                                                       org.web3j.tx.gas.ContractGasProvider contractGasProvider)
      • deploy

        @Deprecated
        public static org.web3j.protocol.core.RemoteCall<ERC20> deploy​(org.web3j.protocol.Web3j web3j,
                                                                       org.web3j.tx.TransactionManager transactionManager,
                                                                       BigInteger gasPrice,
                                                                       BigInteger gasLimit)
        Deprecated.