Search
Preparing search index...
The search index is not available
@xmtp/xmtp-js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@xmtp/xmtp-js
DecodedMessage
Class DecodedMessage
Hierarchy
DecodedMessage
Index
Constructors
constructor
Properties
content
content
Bytes
content
Fallback
content
Topic
content
Type
conversation
error
id
message
Version
recipient
Address
sender
Address
sent
Methods
to
Bytes
from
Bytes
from
V1
Message
from
V2
Message
Constructors
constructor
new
Decoded
Message
(
__namedParameters
:
Omit
<
DecodedMessage
,
"toBytes"
>
)
:
DecodedMessage
Parameters
__namedParameters:
Omit
<
DecodedMessage
,
"toBytes"
>
Returns
DecodedMessage
Properties
content
content
:
any
content
Bytes
content
Bytes
:
Uint8Array
Optional
content
Fallback
content
Fallback
?:
string
content
Topic
content
Topic
:
string
content
Type
content
Type
:
ContentTypeId
conversation
conversation
:
Conversation
Optional
error
error
?:
Error
id
id
:
string
message
Version
message
Version
:
"v1"
|
"v2"
Optional
recipient
Address
recipient
Address
?:
string
sender
Address
sender
Address
:
string
sent
sent
:
Date
Methods
to
Bytes
to
Bytes
(
)
:
Uint8Array
Returns
Uint8Array
Static
from
Bytes
from
Bytes
(
data
:
Uint8Array
, client
:
Client
)
:
Promise
<
DecodedMessage
>
Parameters
data:
Uint8Array
client:
Client
Returns
Promise
<
DecodedMessage
>
Static
from
V1
Message
from
V1
Message
(
message
:
MessageV1
, content
:
any
, contentType
:
ContentTypeId
, contentBytes
:
Uint8Array
, contentTopic
:
string
, conversation
:
Conversation
, error
?:
Error
, contentFallback
?:
string
)
:
DecodedMessage
Parameters
message:
MessageV1
content:
any
contentType:
ContentTypeId
contentBytes:
Uint8Array
contentTopic:
string
conversation:
Conversation
Optional
error:
Error
Optional
contentFallback:
string
Returns
DecodedMessage
Static
from
V2
Message
from
V2
Message
(
message
:
MessageV2
, content
:
any
, contentType
:
ContentTypeId
, contentTopic
:
string
, contentBytes
:
Uint8Array
, conversation
:
Conversation
, senderAddress
:
string
, error
?:
Error
, contentFallback
?:
string
)
:
DecodedMessage
Parameters
message:
MessageV2
content:
any
contentType:
ContentTypeId
contentTopic:
string
contentBytes:
Uint8Array
conversation:
Conversation
senderAddress:
string
Optional
error:
Error
Optional
contentFallback:
string
Returns
DecodedMessage
Exports
Decoded
Message
constructor
content
content
Bytes
content
Fallback
content
Topic
content
Type
conversation
error
id
message
Version
recipient
Address
sender
Address
sent
to
Bytes
from
Bytes
from
V1
Message
from
V2
Message
Generated using
TypeDoc