Skip to content

Types

Glossary of Types in Xmtp.

XmtpFramesRequest

export type UntrustedData = {
  url: string;
  timestamp: number;
  buttonIndex: number;
  inputText?: string;
  opaqueConversationIdentifier: string;
  walletAddress: string;
};
 
// The Frame Signature Packet body
export type XmtpFramesRequest = {
  clientProtocol: `xmtp@${string}`;
  untrustedData: UntrustedData;
  trustedData: {
    messageBytes: string;
  };
};

XmtpFrameValidationResponse

type XmtpFrameValidationResponse =
  | { isValid: true; message: XmtpFrameValidationData }
  | { isValid: false; message: undefined };