compileOffchainMessageEnvelope

function compileOffchainMessageEnvelope(
    offchainMessage,
): OffchainMessageEnvelope;

Returns an OffchainMessageEnvelope object for a given OffchainMessage.

This includes the compiled bytes of the offchain message, and a map of signatures. This map will have a key for each address that is required to sign the message. The message envelope will not yet have signatures for any of these signatories.

Parameters

ParameterType
offchainMessageOffchainMessage

Returns

OffchainMessageEnvelope

Remarks

If the offchain message version is known ahead of time, use one of the compile functions specific to that version so as not to bundle more code than you need.

On this page