getOffchainMessageCodec

function getOffchainMessageCodec(): VariableSizeCodec<OffchainMessage>;

Returns a codec that you can use to encode from or decode to an OffchainMessage

Returns

VariableSizeCodec<OffchainMessage>

See

Remarks

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

On this page