External Wallets
Instructions for using external wallets in the flutter sdk.
Overview
This guide outlines how to integrate and use external cryptocurrency wallets with our Flutter SDK. It covers the setup, deep-linking protocols, authentication, and transaction signing processes for wallets such as MetaMask and Phantom.
Deeplinking
Our Flutter SDK communicates with other apps via deeplinking. To enable deeplinking for your application, you will need to modify the AndroidManifest.xml for android and Info.plist for iOS.
For Android, add an intent filter, which should look like this.
For iOS go to TARGETS > App Name > Info > URL Types and add a new URL type. In the URL Schemes field, add your scheme. This can be any string you want, but it must be unique to your app.
Phantom Connector
Setup
In the same place where you instantiate the Para Client, you will need to also instantiate the Phantom Connector.
Connecting
After setup, all you need to do is call
This will open the Phantom wallet and connect it to your app.
Sign Message
To sign a message, you can call
Sign Transaction
This assumes usage of the solana_web3 package.
To sign a transaction, you can call
Sign and Send Transaction
This assumes usage of the solana_web3 package.
To sign a transaction, you can call
MetaMask Connector
Setup
In the same place where you instantiate the Para Client, you will need to also instantiate the Phantom Connector.
Connecting
After setup, all you need to do is call
This will open the MetaMask wallet and connect it to your app.
Sign Message
To sign a message, you can call
Send Transaction
This assumes usage of the web3dart package.
To send a transaction, you can call