Wallet SDK
The Wallet SDK enables you to build a Verifiable Credentials wallet inside your app and allows your users to receive, store, and manage their DOCK tokens too. This was built for mobile applications with added support for Polkadot-JS.
To use the wallet-sdk, all you need to do is wrap your app in a WalletSDKProvider
and start building your wallet.
Using polkadot-js libraries in React Native is a challenge, due to the lack of WebAssembly support. The Dock Wallet SDK handles all the Polkadot Web Assembly in a WebView, sending messages to the React Native thread through a JSON RPC layer.
Dock Mobile SDK supports devices that have Android 8.1 or higher and iOS 11 or higher.
Installation
There are some scripts and additional dependencies required. Please check our example repo for detailed steps.
React Native Example
The following example will create a wallet and allow the user to add credentials to it. Displaying the count of documents added to the wallet. Notice that the all documents are accessible through the documents
object.
For more details you can check the getting started guide.
Running on other platforms
Check the following repository for detailed examples for running the Dock Wallet SDK on NodeJS, Web, and Flutter.
https://github.com/docknetwork/wallet-sdk-examples
Docs
https://docknetwork.github.io/react-native-sdk/
Features
Last updated