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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class org.web3j.tx.Contract

    org.web3j.tx.Contract.EventValuesWithLog
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    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

    Modifier and Type
    Method
    Description
    org.web3j.protocol.core.RemoteCall<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.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt>
    approve(String _spender, BigInteger _value)
     
    org.web3j.protocol.core.RemoteCall<BigInteger>
    balanceOf(String _owner)
     
    org.web3j.protocol.core.RemoteCall<BigInteger>
     
    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>
     
    org.web3j.protocol.core.RemoteCall<String>
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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

      public org.web3j.protocol.core.RemoteCall<String> name()
    • approve

      public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> approve(String _spender, BigInteger _value)
    • totalSupply

      public org.web3j.protocol.core.RemoteCall<BigInteger> totalSupply()
    • transferFrom

      public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transferFrom(String _from, String _to, BigInteger _value)
    • decimals

      public org.web3j.protocol.core.RemoteCall<BigInteger> decimals()
    • balanceOf

      public org.web3j.protocol.core.RemoteCall<BigInteger> balanceOf(String _owner)
    • symbol

      public org.web3j.protocol.core.RemoteCall<String> symbol()
    • transfer

      public org.web3j.protocol.core.RemoteCall<org.web3j.protocol.core.methods.response.TransactionReceipt> transfer(String _to, BigInteger _value)
    • allowance

      public org.web3j.protocol.core.RemoteCall<BigInteger> allowance(String _owner, String _spender)
    • 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

      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)