Skip to content

Commit

Permalink
“update”
Browse files Browse the repository at this point in the history
  • Loading branch information
humanagent committed Apr 30, 2024
1 parent 68c5121 commit 470b956
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/frames-client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# frames-client
# Frames Client

This repo is used by messaging apps to render Open Frames.

## Usage

Expand All @@ -18,14 +20,15 @@ const imageUrl = framesClient.proxy.mediaUrl(
);

// Handle a click to button 2 from a conversation with topic "/xmtp/0/123" and participant addresses "abc" and "xyz"
const textInputValue = "Your value";
const payload = await signFrameAction({
frameUrl,
inputText: textInputValue || undefined,
buttonIndex: 2,
conversationTopic: "/xmtp/0/123",
participantAccountAddresses: ["abc", "xyz"],
address: "0x...",
state: frameInfo.state,
state: frameMetadata?.frameInfo?.state, // Pulled from frame metadata
});

// If the button action type was `post`
Expand Down

0 comments on commit 470b956

Please sign in to comment.