Provides the OnboardingManager instance. You must wrap your root app component in an OnboardingProvider to use this.
For example:
const { getOnboardingRecord, postPaymentTransaction } = useOnboarding()}
The heliumHttpClient provides access to the Helium Blockchain API. You can find the Client documentation in the helium-js repo.
This client uses the Helium Blockchain API by default, you also have the option to host your own blockchain API. To use a custom blockchain api see createHttpClient.
This is a react component that is required to use the HotspotBleManager. It must wrap your apps root component.
For example:
<HotspotBleProvider>
<YourRootAppComponent />
</HotspotBleProvider>
This is a react component that is required to use the OnboardingManager. It must wrap your apps root component.
For example:
<OnboardingProvider>
<YourRootAppComponent />
</OnboardingProvider>
or if you will be using your own onboarding server
<OnboardingProvider baseUrl="https://youronboardingserver.com" solanaCluster="devnet">
<YourRootAppComponent />
</OnboardingProvider>
If you don't want to use the Helium Blockchain API you can host your own blockchain api and use this method to create a client.
For example:
const customHttpClient = await createHttpClient("https://blockchain-base-url.com")
await customHttpClient.transactions.submit(txn)
Generated using TypeDoc
Provides the HotspotBleManager instance. You must wrap your root app component in a HotspotBleProvider to use this.
For example: