Package org.web3j.service
Class TxSignServiceImpl
java.lang.Object
org.web3j.service.TxSignServiceImpl
- All Implemented Interfaces:
TxSignService
Service to base sign transaction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet key address of the current walletbyte[]sign(org.web3j.crypto.RawTransaction rawTransaction, long chainId) Sign raw 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:TxSignServiceSign raw transaction.- Specified by:
signin interfaceTxSignService- Parameters:
rawTransaction- Raw transactionchainId- Ethereum chain id, -1 is NONE- Returns:
- Transaction signature
-
getAddress
Description copied from interface:TxSignServiceGet key address of the current wallet- Specified by:
getAddressin interfaceTxSignService- Returns:
- Wallet address
-