signOffchainMessageWithSigners
Extracts all MessageSigners inside the provided offchain message and uses them to return a signed offchain message envelope before asserting that all signatures required by the message are present.
This function delegates to the partiallySignOffchainMessageWithSigners function in order to extract signers from the offchain message and sign it.
Parameters
| Parameter | Type |
|---|---|
offchainMessage | OffchainMessageWithRequiredSignatories< | Readonly<{ address: Address<string>; }> | OffchainMessageSignatorySigner> & Omit<OffchainMessage, "requiredSignatories"> |
config? | Readonly<{ abortSignal?: AbortSignal; }> |
Returns
Promise<FullySignedOffchainMessageEnvelope & OffchainMessageEnvelope>