@helium/onboarding
v4.12.1-alpha.6
Published
HTTP library for interacting with an onboarding server
Downloads
414
Readme
@helium/onboarding
An HTTP client for interfacing with an onboarding server
Installation
$ yarn add @helium/onboarding
# or
$ npm install @helium/onboarding
Usage
import OnboardingClient from '@helium/onboarding'
const client = new OnboardingClient()
// Or pass your own custom base url
const client = new OnboardingClient('https://onboarding.you.com/api')
const { data: record } = await client.getOnboardingRecord(hotspotAddress)
console.log(record?.publicAddress)