Code Monkey home page Code Monkey logo

walletconnector's Introduction

WalletConnector

WalletConnector creates a connection to an Ethereum wallet. It also provides a UI component for choosing different wallets to connect with.

Requirements

  • iOS 14.0+
  • Xcode 12.1

Installation

Swift Package Manager

You can use SPM to install WalletConnector by adding the package to your XCode project.

Usage example

WalletConnector

import WalletConnector

let connector = WalletConnector(
   appName: "Your app",
   appDescription: "Your app description",
   url: URL(string: "https://your-app.org")!
)
try? connector.connect()
connector.deeplinkURL(fromBaseURL: "metamask:")
if let url = URL(string: urlString), UIApplication.shared.canOpenURL(url) {
    UIApplication.shared.open(url, options: [:], completionHandler: nil)
}

WalletConnectorUI

You can also WalletConnectorViewController to show a modal of wallets to connect your app to. You will also have to add all supported wallet deeplinks to your Info.plist.

Screenshot 2021-04-17 at 20 34 14

walletconnector's People

Contributors

bejitono avatar

Stargazers

Anthony V avatar tsutsuken avatar Opher Garver avatar Varun Kohli avatar

Watchers

James Cloos avatar Varun Kohli avatar  avatar

walletconnector's Issues

Continuing Dev

Hey there,

I really like the start of this project. I've been picking through it, having a couple issues.
Was wondering if maybe you were free to sync over telegram.

Let me know, would love to see this package completed.
@frankynines

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.