@xhbmygod/rootwallet-api
v3.8.1
Published
rootwallet API Utility functions to interact with rootwallet extension
Readme
RootWallet API
Introduction
This packages builds a wrapper around the messaging system used to interact with the RootWallet extension. Client applications will be able to install this package from npm or via CDN. It also contains constants that may need to be imported into other repositories in the RootWallet project.
For instructions on how to integrate with RootWallet API, visit: https://rootload.com/
Architecture
The API and the extension are communicating via Message events via cross-document messaging.
Architecture diagram
graph TD
A[Browser event - Create a promise on the client] -->|Uses the RootWallet API| B[Browser Content Script]
B --> |Uses the RootWallet API| C[Browser Background Script]
C --> |Open RootWallet Extension with payload| D[Browser Background Script]
D --> |Uses the RootWallet API| E[Browser Content Script]
E[Browser Promise resolved]