Skip to content

intersend/portability-iframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Intersend - Portability with Iframe

Portability is the foundation of cross-app connectivity. This repository provides a simple and effective method to enable iframe communications, allowing your app to become instantly compatible with Intersend's ecosystem. By implementing iframe communication standards, your app can seamlessly exchange messages with parent applications and handle off-chain transactions securely.

This repo demonstrates how to easily integrate iframe messaging to handle requests like eth_signMessage and securely receive responses for onchain transactions.


How It Works

The app sends an eth_signMessage request to the parent iframe using standard JSON-RPC. The parent iframe processes the request and returns an SignMessageResponse, which includes a messageHash. The helper code in this repository listens for that response and handles it efficiently.

graph TD
    A[Your App] -->|Sends message via iframe| B[User Client]
    B -->|eth_signMessage| C[Handles Transaction]
    C -->|Returns Response| D[Your App]
    D -->|Receives messageHash| E[Process Transaction]
Loading

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors