A list of known apps that support signing transactions
Creates the url a signing app will use to callback to request app. The url will contain the token needed to sign future transactions
Creates the url a signing app will use to callback to request app. The url will contain the signed gateway transactions
Creates the url needed to add, assert location, or transfer a gateway. The signing app will callback with the signed Transactions
Request a token from your app to an app capable of signing a transaction (e.g. Helium Hotspot). This token will be required to sign future transactions.
the name of the app requesting a link
the url used to deeplink back to the requesting app
the bundleId of the app requesting a token. Use import { getBundleId } from 'react-native-device-info'
the deeplink url of the app that will be creating the link (e.g. https://helium.com/)
Parse a wallet link token
Generated using TypeDoc
Use this module to assist in signing transactions via app links. For example, you could sign a transaction in your app using the Helium Wallet app.
Import the module
Use the module
Follow these steps to use deep links in your app:
createWalletLinkUrl
usingLinking.openURL(url)
.createUpdateHotspotUrl
usingLinking.openURL(url)
. The authorized app will call back with the signed transaction.heliumHttpClient.transactions.submit(txn)
Request a wallet link token
The first step to deep linking is to request a token from an app capable of signing transactions (e.g. Helium Hotspot). To do this you must use createWalletLinkUrl to create a deep link URL which will provide your app with a wallet link token. This will then redirect the user to the authenticated app (e.g. Helium Hotspot) and create a wallet link token. The token will then be passed back to your app via deep link back to the
callbackUrl
. This token should then be saved in your app, it is required when requesting a signed transaction.Request signed gateway transactions (Add Gateway, Assert Location, Transfer Hotspot)
Request signing of gateway transactions by a supported app (e.g. Helium Hotspot). This is used for assert location, add gateway, and transfer hotspot transactions. Only one transaction should be passed at a time. After creating the url and opening the deep link, the app capable of signing transactions (e.g. Helium Hotspot) will be opened and the user must confirm the information. After confirmation the transaction passed will be signed and passed back to your app via the callback URL set by createWalletLinkUrl which is contained in the wallet link token. After receiving the signed transaction, you will need to submit it via the helium api or sdk
heliumHttpClient.transactions.submit(txn)
. See createUpdateHotspotUrl for more info.