Package org.web3j.service
Interface TxSignService
- All Known Implementing Classes:
TxHSMSignService
,TxSignServiceImpl
public interface TxSignService
Service to sign transaction.
-
Method Summary
Modifier and TypeMethodDescriptionGet key address of the current walletbyte[]
sign
(org.web3j.crypto.RawTransaction rawTransaction, long chainId) Sign raw transaction.
-
Method Details
-
sign
byte[] sign(org.web3j.crypto.RawTransaction rawTransaction, long chainId) Sign raw transaction.- Parameters:
rawTransaction
- Raw transactionchainId
- Ethereum chain id, -1 is NONE- Returns:
- Transaction signature
-
getAddress
String getAddress()Get key address of the current wallet- Returns:
- Wallet address
-