Signs a given transaction.
import { signTransaction } from '@klayr/transactions'; const signedTransaction = signTransaction(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
Returns
The signed transaction.
See