Validates transaction against schema and converts transaction to bytes for signing.
import { getSigningBytes } from '@klayr/transactions'; const txBytes = getSigningBytes(TransferTrx, transferParamsSchema);
Returns the encrypted transaction, if the provided transaction is valid. If the transaction is invalid, it returns the validation errors.
a decrypted transaction
Optional
parameter schema for the transaction
Generated using TypeDoc
Validates transaction against schema and converts transaction to bytes for signing.
Example
Returns
Returns the encrypted transaction, if the provided transaction is valid. If the transaction is invalid, it returns the validation errors.
See