Class TxSignServiceImpl

java.lang.Object
org.web3j.service.TxSignServiceImpl
All Implemented Interfaces:
TxSignService

public class TxSignServiceImpl extends Object implements TxSignService
Service to base sign transaction.
  • Constructor Details

    • TxSignServiceImpl

      public TxSignServiceImpl(org.web3j.crypto.Credentials credentials)
  • Method Details

    • sign

      public byte[] sign(org.web3j.crypto.RawTransaction rawTransaction, long chainId)
      Description copied from interface: TxSignService
      Sign raw transaction.
      Specified by:
      sign in interface TxSignService
      Parameters:
      rawTransaction - Raw transaction
      chainId - Ethereum chain id, -1 is NONE
      Returns:
      Transaction signature
    • getAddress

      public String getAddress()
      Description copied from interface: TxSignService
      Get key address of the current wallet
      Specified by:
      getAddress in interface TxSignService
      Returns:
      Wallet address