Signs a given transaction.
import { signTransactionWithPrivateKey } from '@klayr/transactions'; const signedTransaction = signTransactionWithPrivateKey(unsignedTrx, chainID, privateKey, paramsSchema);
The signed transaction.
The unsigned transaction object.
The chain ID of the chain to which the transaction belongs.
The private key of the sender of the transaction.
Optional
The schema for the params of the transaction.
params
Generated using TypeDoc
Signs a given transaction.
Example
See
Returns
The signed transaction.