Options
All
  • Public
  • Public/Protected
  • All
Menu

@helium/react-native-sdk

Index

Type aliases

AssertData

AssertData: { balances?: { dc: Balance<DataCredits> | undefined; hnt: Balance<NetworkTokens | TestNetworkTokens> | undefined; sol: Balance<SolTokens> | undefined }; dcNeeded?: Balance<DataCredits>; hasSufficientBalance: boolean; hasSufficientDc?: boolean; hasSufficientHnt?: boolean; hasSufficientSol?: boolean; isFree: boolean; maker?: Maker; makerFees?: { dc?: Balance<DataCredits>; sol?: Balance<SolTokens> }; oraclePrice: Balance<USDollars>; ownerFees?: { dc?: Balance<DataCredits>; sol?: Balance<SolTokens> }; payer: string; solanaTransactions?: string[] }

Type declaration

Asset

Asset: { compression: { assetHash?: Buffer; compressed: boolean; creatorHash?: Buffer; dataHash?: Buffer; eligible: boolean; leafId?: number; tree?: PublicKey }; content: any; creators: Creator[]; grouping?: { group_key: string; group_value: PublicKey }[]; id: PublicKey; mutable: boolean; ownership: { delegate: PublicKey; owner: PublicKey }; royalty: { basis_points: number; primary_sale_happened: boolean }; supply: { edition_nonce: number | null }; uses?: Uses }

Type declaration

  • compression: { assetHash?: Buffer; compressed: boolean; creatorHash?: Buffer; dataHash?: Buffer; eligible: boolean; leafId?: number; tree?: PublicKey }
    • Optional assetHash?: Buffer
    • compressed: boolean
    • Optional creatorHash?: Buffer
    • Optional dataHash?: Buffer
    • eligible: boolean
    • Optional leafId?: number
    • Optional tree?: PublicKey
  • content: any
  • creators: Creator[]
  • Optional grouping?: { group_key: string; group_value: PublicKey }[]
  • id: PublicKey
  • mutable: boolean
  • ownership: { delegate: PublicKey; owner: PublicKey }
    • delegate: PublicKey
    • owner: PublicKey
  • royalty: { basis_points: number; primary_sale_happened: boolean }
    • basis_points: number
    • primary_sale_happened: boolean
  • supply: { edition_nonce: number | null }
    • edition_nonce: number | null
  • Optional uses?: Uses

DiagnosticInfo

DiagnosticInfo: { connected: string; dialable: string; disk: string; eth: string; fw: string; height: string; ip: string; nat_type: string; wifi: string }

Type declaration

  • connected: string
  • dialable: string
  • disk: string
  • eth: string
  • fw: string
  • height: string
  • ip: string
  • nat_type: string
  • wifi: string

HotspotBleManager

HotspotBleManager: ReturnType<typeof useHotspotBle>

Provides the HotspotBleManager instance. You must wrap your root app component in a HotspotBleProvider to use this.

For example:

const { startScan, stopScan, connect, scannedDevices } = useHotspotBle()

HotspotMeta

HotspotMeta: { elevation?: number; gain?: number; isFullHotspot: boolean; lat?: number; lng?: number; location?: string; numLocationAsserts: number; owner?: string }

Type declaration

  • Optional elevation?: number
  • Optional gain?: number
  • isFullHotspot: boolean
  • Optional lat?: number
  • Optional lng?: number
  • Optional location?: string
  • numLocationAsserts: number
  • Optional owner?: string

OnboardingManager

OnboardingManager: ReturnType<typeof useOnboardingHook>

SolanaManager

SolanaManager: ReturnType<typeof useSolana>

Variables

Const AlreadyOnboardedError

AlreadyOnboardedError: Error = ...

Const CreateHotspotExistsError

CreateHotspotExistsError: Error = ...

Const heliumHttpClient

heliumHttpClient: default = ...

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.

Functions

Const HotspotBleProvider

  • HotspotBleProvider(__namedParameters: { children: ReactNode }): Element
  • This is a react component that is required to use the HotspotBleManager. It must wrap your apps root component.

    For example:

    <HotspotBleProvider>
        <YourRootAppComponent />
    </HotspotBleProvider>
    

    Parameters

    • __namedParameters: { children: ReactNode }
      • children: ReactNode

    Returns Element

Const OnboardingProvider

  • OnboardingProvider(__namedParameters: { baseUrl: string; children: ReactNode }): Element

Const SolanaProvider

  • SolanaProvider(__namedParameters: { children: ReactNode; cluster?: "devnet" | "testnet" | "mainnet-beta"; connection?: Connection; heliumWallet?: string; rpcEndpoint?: string }): Element
  • Parameters

    • __namedParameters: { children: ReactNode; cluster?: "devnet" | "testnet" | "mainnet-beta"; connection?: Connection; heliumWallet?: string; rpcEndpoint?: string }
      • children: ReactNode
      • Optional cluster?: "devnet" | "testnet" | "mainnet-beta"
      • Optional connection?: Connection
      • Optional heliumWallet?: string
      • Optional rpcEndpoint?: string

    Returns Element

Const createHttpClient

  • createHttpClient(baseURL: string): Promise<default>
  • 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)
    

    Parameters

    • baseURL: string

    Returns Promise<default>

multiply

  • multiply(a: number, b: number): Promise<number>
  • Parameters

    • a: number
    • b: number

    Returns Promise<number>

Const useHotspotBle

  • useHotspotBle(): { checkFirmwareCurrent: (minVersion: string) => Promise<{ current: boolean; deviceFirmwareVersion: string; minVersion: string }>; connect: (hotspotDevice: Device) => Promise<void>; createAndSignGatewayTxn: (__namedParameters: { ownerAddress: string; ownerKeypairRaw: SodiumKeyPair; payerAddress: string }) => Promise<undefined | AddGatewayV1>; createGatewayTxn: (__namedParameters: { ownerAddress: string; payerAddress: string }) => Promise<string>; disconnect: () => Promise<boolean>; enable: () => Promise<boolean>; ethernetOnline: () => Promise<boolean>; getDiagnosticInfo: () => Promise<DiagnosticInfo>; getOnboardingAddress: () => Promise<string>; getState: () => Promise<State>; isConnected: () => Promise<boolean>; readWifiNetworks: (configured?: boolean) => Promise<undefined | string[]>; removeConfiguredWifi: (name: string) => Promise<undefined | string>; resetDevices: () => void; scannedDevices: Device[]; setWifi: (ssid: string, password: string) => Promise<"connected" | "invalid" | "not_found">; startScan: (callback: (error: null | BleError) => void) => Promise<void>; stopScan: () => void }
  • Returns { checkFirmwareCurrent: (minVersion: string) => Promise<{ current: boolean; deviceFirmwareVersion: string; minVersion: string }>; connect: (hotspotDevice: Device) => Promise<void>; createAndSignGatewayTxn: (__namedParameters: { ownerAddress: string; ownerKeypairRaw: SodiumKeyPair; payerAddress: string }) => Promise<undefined | AddGatewayV1>; createGatewayTxn: (__namedParameters: { ownerAddress: string; payerAddress: string }) => Promise<string>; disconnect: () => Promise<boolean>; enable: () => Promise<boolean>; ethernetOnline: () => Promise<boolean>; getDiagnosticInfo: () => Promise<DiagnosticInfo>; getOnboardingAddress: () => Promise<string>; getState: () => Promise<State>; isConnected: () => Promise<boolean>; readWifiNetworks: (configured?: boolean) => Promise<undefined | string[]>; removeConfiguredWifi: (name: string) => Promise<undefined | string>; resetDevices: () => void; scannedDevices: Device[]; setWifi: (ssid: string, password: string) => Promise<"connected" | "invalid" | "not_found">; startScan: (callback: (error: null | BleError) => void) => Promise<void>; stopScan: () => void }

    • checkFirmwareCurrent: (minVersion: string) => Promise<{ current: boolean; deviceFirmwareVersion: string; minVersion: string }>
        • (minVersion: string): Promise<{ current: boolean; deviceFirmwareVersion: string; minVersion: string }>
        • Parameters

          • minVersion: string

          Returns Promise<{ current: boolean; deviceFirmwareVersion: string; minVersion: string }>

    • connect: (hotspotDevice: Device) => Promise<void>
        • (hotspotDevice: Device): Promise<void>
        • Parameters

          Returns Promise<void>

    • createAndSignGatewayTxn: (__namedParameters: { ownerAddress: string; ownerKeypairRaw: SodiumKeyPair; payerAddress: string }) => Promise<undefined | AddGatewayV1>
        • (__namedParameters: { ownerAddress: string; ownerKeypairRaw: SodiumKeyPair; payerAddress: string }): Promise<undefined | AddGatewayV1>
        • Parameters

          • __namedParameters: { ownerAddress: string; ownerKeypairRaw: SodiumKeyPair; payerAddress: string }
            • ownerAddress: string
            • ownerKeypairRaw: SodiumKeyPair
            • payerAddress: string

          Returns Promise<undefined | AddGatewayV1>

    • createGatewayTxn: (__namedParameters: { ownerAddress: string; payerAddress: string }) => Promise<string>
        • (__namedParameters: { ownerAddress: string; payerAddress: string }): Promise<string>
        • Parameters

          • __namedParameters: { ownerAddress: string; payerAddress: string }
            • ownerAddress: string
            • payerAddress: string

          Returns Promise<string>

    • disconnect: () => Promise<boolean>
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • enable: () => Promise<boolean>
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • ethernetOnline: () => Promise<boolean>
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • getDiagnosticInfo: () => Promise<DiagnosticInfo>
    • getOnboardingAddress: () => Promise<string>
        • (): Promise<string>
        • Returns Promise<string>

    • getState: () => Promise<State>
    • isConnected: () => Promise<boolean>
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • readWifiNetworks: (configured?: boolean) => Promise<undefined | string[]>
        • (configured?: boolean): Promise<undefined | string[]>
        • Parameters

          • configured: boolean = false

          Returns Promise<undefined | string[]>

    • removeConfiguredWifi: (name: string) => Promise<undefined | string>
        • (name: string): Promise<undefined | string>
        • Parameters

          • name: string

          Returns Promise<undefined | string>

    • resetDevices: () => void
        • (): void
        • Returns void

    • scannedDevices: Device[]
    • setWifi: (ssid: string, password: string) => Promise<"connected" | "invalid" | "not_found">
        • (ssid: string, password: string): Promise<"connected" | "invalid" | "not_found">
        • Parameters

          • ssid: string
          • password: string

          Returns Promise<"connected" | "invalid" | "not_found">

    • startScan: (callback: (error: null | BleError) => void) => Promise<void>
        • (callback: (error: null | BleError) => void): Promise<void>
        • Parameters

          • callback: (error: null | BleError) => void

          Returns Promise<void>

    • stopScan: () => void
        • (): void
        • Returns void

Const useOnboarding

  • useOnboarding(): { baseUrl: string; burnHNTForDataCredits: (dcAmount: number) => Promise<undefined | Transaction>; createHotspot: (signedTxn: string) => Promise<string[]>; createTransferTransaction: (__namedParameters: { hotspotAddress: string; newOwnerAddress: string }) => Promise<{ solanaTransactions?: string[] }>; getAssertData: (__namedParameters: { decimalGain?: number; gateway: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat: number; lng: number }[]; onboardingRecord?: null | OnboardingRecord; owner: string; payer?: string }) => Promise<AssertData>; getHotspots: (__namedParameters: { heliumAddress: string; makerName?: string }) => Promise<undefined | Asset[]>; getKeyToAsset: (hotspotAddress: string) => Promise<undefined | PublicKey>; getMinFirmware: () => Promise<null | string>; getOnboardTransactions: (__namedParameters: { hotspotAddress: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat?: number; lng?: number }[]; payer?: string }) => Promise<{ solanaTransactions?: string[] }>; getOnboardingRecord: (hotspotAddress: string) => Promise<null | OnboardingRecord>; getOraclePrice: () => Promise<Balance<USDollars>>; onboardingClient: default; submitTransactions: (__namedParameters: { solanaTransactions?: string[] }) => Promise<{ solanaTxnIds?: string[] }> }
  • Returns { baseUrl: string; burnHNTForDataCredits: (dcAmount: number) => Promise<undefined | Transaction>; createHotspot: (signedTxn: string) => Promise<string[]>; createTransferTransaction: (__namedParameters: { hotspotAddress: string; newOwnerAddress: string }) => Promise<{ solanaTransactions?: string[] }>; getAssertData: (__namedParameters: { decimalGain?: number; gateway: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat: number; lng: number }[]; onboardingRecord?: null | OnboardingRecord; owner: string; payer?: string }) => Promise<AssertData>; getHotspots: (__namedParameters: { heliumAddress: string; makerName?: string }) => Promise<undefined | Asset[]>; getKeyToAsset: (hotspotAddress: string) => Promise<undefined | PublicKey>; getMinFirmware: () => Promise<null | string>; getOnboardTransactions: (__namedParameters: { hotspotAddress: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat?: number; lng?: number }[]; payer?: string }) => Promise<{ solanaTransactions?: string[] }>; getOnboardingRecord: (hotspotAddress: string) => Promise<null | OnboardingRecord>; getOraclePrice: () => Promise<Balance<USDollars>>; onboardingClient: default; submitTransactions: (__namedParameters: { solanaTransactions?: string[] }) => Promise<{ solanaTxnIds?: string[] }> }

    • baseUrl: string
    • burnHNTForDataCredits: (dcAmount: number) => Promise<undefined | Transaction>
        • (dcAmount: number): Promise<undefined | Transaction>
        • Parameters

          • dcAmount: number

          Returns Promise<undefined | Transaction>

    • createHotspot: (signedTxn: string) => Promise<string[]>
        • (signedTxn: string): Promise<string[]>
        • Parameters

          • signedTxn: string

          Returns Promise<string[]>

    • createTransferTransaction: (__namedParameters: { hotspotAddress: string; newOwnerAddress: string }) => Promise<{ solanaTransactions?: string[] }>
        • (__namedParameters: { hotspotAddress: string; newOwnerAddress: string }): Promise<{ solanaTransactions?: string[] }>
        • Parameters

          • __namedParameters: { hotspotAddress: string; newOwnerAddress: string }
            • hotspotAddress: string
            • newOwnerAddress: string

          Returns Promise<{ solanaTransactions?: string[] }>

    • getAssertData: (__namedParameters: { decimalGain?: number; gateway: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat: number; lng: number }[]; onboardingRecord?: null | OnboardingRecord; owner: string; payer?: string }) => Promise<AssertData>
        • (__namedParameters: { decimalGain?: number; gateway: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat: number; lng: number }[]; onboardingRecord?: null | OnboardingRecord; owner: string; payer?: string }): Promise<AssertData>
        • Parameters

          • __namedParameters: { decimalGain?: number; gateway: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat: number; lng: number }[]; onboardingRecord?: null | OnboardingRecord; owner: string; payer?: string }
            • Optional decimalGain?: number
            • gateway: string
            • networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat: number; lng: number }[]
            • Optional onboardingRecord?: null | OnboardingRecord
            • owner: string
            • Optional payer?: string

          Returns Promise<AssertData>

    • getHotspots: (__namedParameters: { heliumAddress: string; makerName?: string }) => Promise<undefined | Asset[]>
        • (__namedParameters: { heliumAddress: string; makerName?: string }): Promise<undefined | Asset[]>
        • Parameters

          • __namedParameters: { heliumAddress: string; makerName?: string }
            • heliumAddress: string
            • Optional makerName?: string

          Returns Promise<undefined | Asset[]>

    • getKeyToAsset: (hotspotAddress: string) => Promise<undefined | PublicKey>
        • (hotspotAddress: string): Promise<undefined | PublicKey>
        • Parameters

          • hotspotAddress: string

          Returns Promise<undefined | PublicKey>

    • getMinFirmware: () => Promise<null | string>
        • (): Promise<null | string>
        • Returns Promise<null | string>

    • getOnboardTransactions: (__namedParameters: { hotspotAddress: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat?: number; lng?: number }[]; payer?: string }) => Promise<{ solanaTransactions?: string[] }>
        • (__namedParameters: { hotspotAddress: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat?: number; lng?: number }[]; payer?: string }): Promise<{ solanaTransactions?: string[] }>
        • Parameters

          • __namedParameters: { hotspotAddress: string; networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat?: number; lng?: number }[]; payer?: string }
            • hotspotAddress: string
            • networkDetails: { decimalGain?: number; elevation?: number; hotspotType: HotspotType; lat?: number; lng?: number }[]
            • Optional payer?: string

          Returns Promise<{ solanaTransactions?: string[] }>

    • getOnboardingRecord: (hotspotAddress: string) => Promise<null | OnboardingRecord>
        • (hotspotAddress: string): Promise<null | OnboardingRecord>
        • Parameters

          • hotspotAddress: string

          Returns Promise<null | OnboardingRecord>

    • getOraclePrice: () => Promise<Balance<USDollars>>
    • onboardingClient: default
    • submitTransactions: (__namedParameters: { solanaTransactions?: string[] }) => Promise<{ solanaTxnIds?: string[] }>
        • (__namedParameters: { solanaTransactions?: string[] }): Promise<{ solanaTxnIds?: string[] }>
        • Parameters

          • __namedParameters: { solanaTransactions?: string[] }
            • Optional solanaTransactions?: string[]

          Returns Promise<{ solanaTxnIds?: string[] }>

Const useSolana

  • useSolana(): { connection: undefined | Connection; createTransferCompressedCollectableTxn: (__namedParameters: { collectable: Asset; newOwnerSolanaOrHeliumAddresss: string }) => Promise<undefined | VersionedTransaction>; dcProgram: undefined | Program<DataCredits>; estimateMetaTxnFees: (buff: Buffer, __namedParameters: { maker: PublicKey }) => Promise<undefined | { isFree: boolean; makerFees: { dc: number; lamports: number }; ownerFees: { dc: number; lamports: number } }>; getBalances: () => Promise<undefined | { dcBalance: bigint; hntBalance: bigint; iotBalance: bigint; mobileBalance: bigint }>; getDcBalance: () => Promise<undefined | bigint>; getHntBalance: () => Promise<undefined | bigint>; getHotspotDetails: (__namedParameters: { address: string; type: "MOBILE" | "IOT" }) => Promise<undefined | HotspotMeta>; getHotspots: (opts: Omit<SearchAssetsOpts, "ownerAddress" | "creatorAddress"> & { makerName?: string }) => Promise<undefined | Asset[]>; getOraclePriceFromSolana: (__namedParameters: { tokenType: "HNT" }) => Promise<undefined | Promise<{ postedSlot: BN; priceMessage: { conf: BN; emaConf: BN; emaPrice: BN; exponent: number; feedId: number[]; prevPublishTime: BN; price: BN; publishTime: BN }; verificationLevel: ({ full?: undefined } & { partial: { numSignatures: number } }) | ({ partial?: undefined } & { full: Record<string, never> }); writeAuthority: PublicKey }>>; getSolBalance: () => Promise<number>; hemProgram: undefined | Program<HeliumEntityManager>; hsdProgram: undefined | Program<HeliumSubDaos>; provider: undefined | AnchorProvider; submitAllSolana: (__namedParameters: { txns: Buffer[] }) => Promise<string[]>; submitSolana: (__namedParameters: { txn: Buffer }) => Promise<string> }
  • Returns { connection: undefined | Connection; createTransferCompressedCollectableTxn: (__namedParameters: { collectable: Asset; newOwnerSolanaOrHeliumAddresss: string }) => Promise<undefined | VersionedTransaction>; dcProgram: undefined | Program<DataCredits>; estimateMetaTxnFees: (buff: Buffer, __namedParameters: { maker: PublicKey }) => Promise<undefined | { isFree: boolean; makerFees: { dc: number; lamports: number }; ownerFees: { dc: number; lamports: number } }>; getBalances: () => Promise<undefined | { dcBalance: bigint; hntBalance: bigint; iotBalance: bigint; mobileBalance: bigint }>; getDcBalance: () => Promise<undefined | bigint>; getHntBalance: () => Promise<undefined | bigint>; getHotspotDetails: (__namedParameters: { address: string; type: "MOBILE" | "IOT" }) => Promise<undefined | HotspotMeta>; getHotspots: (opts: Omit<SearchAssetsOpts, "ownerAddress" | "creatorAddress"> & { makerName?: string }) => Promise<undefined | Asset[]>; getOraclePriceFromSolana: (__namedParameters: { tokenType: "HNT" }) => Promise<undefined | Promise<{ postedSlot: BN; priceMessage: { conf: BN; emaConf: BN; emaPrice: BN; exponent: number; feedId: number[]; prevPublishTime: BN; price: BN; publishTime: BN }; verificationLevel: ({ full?: undefined } & { partial: { numSignatures: number } }) | ({ partial?: undefined } & { full: Record<string, never> }); writeAuthority: PublicKey }>>; getSolBalance: () => Promise<number>; hemProgram: undefined | Program<HeliumEntityManager>; hsdProgram: undefined | Program<HeliumSubDaos>; provider: undefined | AnchorProvider; submitAllSolana: (__namedParameters: { txns: Buffer[] }) => Promise<string[]>; submitSolana: (__namedParameters: { txn: Buffer }) => Promise<string> }

    • connection: undefined | Connection
    • createTransferCompressedCollectableTxn: (__namedParameters: { collectable: Asset; newOwnerSolanaOrHeliumAddresss: string }) => Promise<undefined | VersionedTransaction>
        • (__namedParameters: { collectable: Asset; newOwnerSolanaOrHeliumAddresss: string }): Promise<undefined | VersionedTransaction>
        • Parameters

          • __namedParameters: { collectable: Asset; newOwnerSolanaOrHeliumAddresss: string }
            • collectable: Asset
            • newOwnerSolanaOrHeliumAddresss: string

          Returns Promise<undefined | VersionedTransaction>

    • dcProgram: undefined | Program<DataCredits>
    • estimateMetaTxnFees: (buff: Buffer, __namedParameters: { maker: PublicKey }) => Promise<undefined | { isFree: boolean; makerFees: { dc: number; lamports: number }; ownerFees: { dc: number; lamports: number } }>
        • (buff: Buffer, __namedParameters: { maker: PublicKey }): Promise<undefined | { isFree: boolean; makerFees: { dc: number; lamports: number }; ownerFees: { dc: number; lamports: number } }>
        • Parameters

          • buff: Buffer
          • __namedParameters: { maker: PublicKey }
            • maker: PublicKey

          Returns Promise<undefined | { isFree: boolean; makerFees: { dc: number; lamports: number }; ownerFees: { dc: number; lamports: number } }>

    • getBalances: () => Promise<undefined | { dcBalance: bigint; hntBalance: bigint; iotBalance: bigint; mobileBalance: bigint }>
        • (): Promise<undefined | { dcBalance: bigint; hntBalance: bigint; iotBalance: bigint; mobileBalance: bigint }>
        • Returns Promise<undefined | { dcBalance: bigint; hntBalance: bigint; iotBalance: bigint; mobileBalance: bigint }>

    • getDcBalance: () => Promise<undefined | bigint>
        • (): Promise<undefined | bigint>
        • Returns Promise<undefined | bigint>

    • getHntBalance: () => Promise<undefined | bigint>
        • (): Promise<undefined | bigint>
        • Returns Promise<undefined | bigint>

    • getHotspotDetails: (__namedParameters: { address: string; type: "MOBILE" | "IOT" }) => Promise<undefined | HotspotMeta>
        • (__namedParameters: { address: string; type: "MOBILE" | "IOT" }): Promise<undefined | HotspotMeta>
        • Parameters

          • __namedParameters: { address: string; type: "MOBILE" | "IOT" }
            • address: string
            • type: "MOBILE" | "IOT"

          Returns Promise<undefined | HotspotMeta>

    • getHotspots: (opts: Omit<SearchAssetsOpts, "ownerAddress" | "creatorAddress"> & { makerName?: string }) => Promise<undefined | Asset[]>
        • (opts: Omit<SearchAssetsOpts, "ownerAddress" | "creatorAddress"> & { makerName?: string }): Promise<undefined | Asset[]>
        • Parameters

          • opts: Omit<SearchAssetsOpts, "ownerAddress" | "creatorAddress"> & { makerName?: string }

          Returns Promise<undefined | Asset[]>

    • getOraclePriceFromSolana: (__namedParameters: { tokenType: "HNT" }) => Promise<undefined | Promise<{ postedSlot: BN; priceMessage: { conf: BN; emaConf: BN; emaPrice: BN; exponent: number; feedId: number[]; prevPublishTime: BN; price: BN; publishTime: BN }; verificationLevel: ({ full?: undefined } & { partial: { numSignatures: number } }) | ({ partial?: undefined } & { full: Record<string, never> }); writeAuthority: PublicKey }>>
        • (__namedParameters: { tokenType: "HNT" }): Promise<undefined | Promise<{ postedSlot: BN; priceMessage: { conf: BN; emaConf: BN; emaPrice: BN; exponent: number; feedId: number[]; prevPublishTime: BN; price: BN; publishTime: BN }; verificationLevel: ({ full?: undefined } & { partial: { numSignatures: number } }) | ({ partial?: undefined } & { full: Record<string, never> }); writeAuthority: PublicKey }>>
        • Parameters

          • __namedParameters: { tokenType: "HNT" }
            • tokenType: "HNT"

          Returns Promise<undefined | Promise<{ postedSlot: BN; priceMessage: { conf: BN; emaConf: BN; emaPrice: BN; exponent: number; feedId: number[]; prevPublishTime: BN; price: BN; publishTime: BN }; verificationLevel: ({ full?: undefined } & { partial: { numSignatures: number } }) | ({ partial?: undefined } & { full: Record<string, never> }); writeAuthority: PublicKey }>>

    • getSolBalance: () => Promise<number>
        • (): Promise<number>
        • Returns Promise<number>

    • hemProgram: undefined | Program<HeliumEntityManager>
    • hsdProgram: undefined | Program<HeliumSubDaos>
    • provider: undefined | AnchorProvider
    • submitAllSolana: (__namedParameters: { txns: Buffer[] }) => Promise<string[]>
        • (__namedParameters: { txns: Buffer[] }): Promise<string[]>
        • Parameters

          • __namedParameters: { txns: Buffer[] }
            • txns: Buffer[]

          Returns Promise<string[]>

    • submitSolana: (__namedParameters: { txn: Buffer }) => Promise<string>
        • (__namedParameters: { txn: Buffer }): Promise<string>
        • Parameters

          • __namedParameters: { txn: Buffer }
            • txn: Buffer

          Returns Promise<string>

Generated using TypeDoc