isOffchainMessageContentUtf8Of1232BytesMax
A type guard that returns true when supplied content of a v0 offchain message that conforms to
the OffchainMessageContentUtf8Of1232BytesMax type, and refines its type for use in your
program.
Parameters
| Parameter | Type |
|---|---|
putativeContent | { format: OffchainMessageContentFormat; text: string; } |
putativeContent.format | OffchainMessageContentFormat |
putativeContent.text | string |
Returns
putativeContent is Readonly<{ format: UTF8_1232_BYTES_MAX; text: Brand<string, "offchainMessageContentUtf8Of1232BytesMax"> }>
See
OffchainMessageContentUtf8Of1232BytesMax for more detail.