Package org.web3j.service
Class TxSignServiceImpl
java.lang.Object
org.web3j.service.TxSignServiceImpl
- All Implemented Interfaces:
TxSignService
Service to base sign transaction.
-
Constructor Summary
-
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:TxSignService
Sign raw transaction.- Specified by:
sign
in interfaceTxSignService
- Parameters:
rawTransaction
- Raw transactionchainId
- Ethereum chain id, -1 is NONE- Returns:
- Transaction signature
-
getAddress
Description copied from interface:TxSignService
Get key address of the current wallet- Specified by:
getAddress
in interfaceTxSignService
- Returns:
- Wallet address
-