signTransaction
Serializes a transaction, signs it with a raw message, and then returns the serialized transaction with the signature.
Import
Usage
Parameters
tx
Transaction
the transaction to be serialized and signed
args
{serializer?: SerializeTransactionFn}
options for serialization
args.serializer
() => Hex
an optional serializer function. If not provided, the default serializeTransaction
function will be used
Returns
Promise<string>
a promise that resolves to the serialized transaction with the signature