signTransaction method
Future<Uint8List>
signTransaction(
- Credentials cred,
- Transaction transaction, {
- required int networkId,
Signs the transaction with the credentials cred. The transaction will
not be sent.
See also:
- bytesToHex, which can be used to get the more common hexadecimal representation of the transaction.
Implementation
Future<Uint8List> signTransaction(
Credentials cred,
Transaction transaction, {
required int networkId,
}) async {
final signingInput = await _fillMissingData(
credentials: cred,
transaction: transaction,
networkId: networkId,
client: this,
);
return _signTransaction(
signingInput.transaction,
signingInput.credentials,
BigInt.from(signingInput.networkId),
);
}