Polywrap's Newsletter

Share this post

Streamlining Web3 Mobile with Metamask SDK & Polywrap

blog.polywrap.io

Streamlining Web3 Mobile with Metamask SDK & Polywrap

A prototype of the new Swift client and an iOS demo to accommodate it!

Keeevin
May 8, 2023
Share

Polywrap DAO recently completed a prototype of the Swift client. This client will make web3 iOS mobile development more efficient, accessible, and versatile.

Polywrap clients gives applications access to all wraps written in any language. We began with the JavaScript client which lets polywrap-enabled web applications to use wraps. Once the Swift client is released, web3 developers will be able to effectively integrate web3 protocols into iOS mobile applications.

All clients use a similar query syntax to communicate with wraps. As a quick example, below is the code for fetching a wrap and executing its methods using the Swift client library.

While the Swift client is still a prototype, it marks an important milestone in demonstrating the capability of Polywrap to bring web3 beyond the web browser and into mobile.

Bringing Ethers to Mobile, Web Browser, Servers and more

The new Ethers wrap leverages WebAssembly allowing for easy interaction with Ethereum across multiple platforms including mobile, web browsers, servers, and more.

Demo – Safe Wrap in MetaMask iOS Mobile

We recently demoed Polywrap technology on mobile for the first time at the Safe Account Abstraction hackathon. The demo makes use of the Swift client, Ethers wrap, and Safe wrap.

Here’s a video of the demo application.

The Safe wrap is an SDK that enables dApps to interact with the Safe smart contract from a variety of execution environments. It includes the same functionality as the current Safe JavaScript SDK (but with all the benefits of Polywrap). This means developers can use the wrap to deploy a new safe, perform off-chain signatures, and execute transactions.

In the demo, Cesar Brazon, a Polywrap engineer contributor, shows an iOS application with the new Polywrap Swift client library installed into MetaMask mobile. The Swift client fetches the Safe wrap from decentralized storage to create a new Safe wallet for the user inside MetaMask.

The magic of Polywrap technology is that this exact same Safe wrap can be used in iOS apps, or Android, or web browser, or any environment, and it'd function the same way in any of these platforms!

Resources

Safe Wrap Source Code

Swift Provider Implementation

Join the Polywrap Discord community!

Thanks for reading Polywrap's Newsletter! Subscribe for free to receive new posts and support my work.

Share
Top
New

No posts

Ready for more?

© 2023 Polywrap
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing