UNPKG

@helium/http

Version:

HTTP library for interacting with the Helium blockchain API

20 lines 625 B
import type Client from '../Client'; import Challenge from '../models/Challenge'; import ResourceList from '../ResourceList'; import Account from '../models/Account'; import Hotspot from '../models/Hotspot'; import Sums from './Sums'; interface ListParams { cursor?: string; } type Context = Account | Hotspot; export default class Challenges { private client; private context?; constructor(client: Client, context?: Context); list(params?: ListParams): Promise<ResourceList<Challenge>>; get(hash: string): Promise<Challenge>; get sum(): Sums; } export {}; //# sourceMappingURL=Challenges.d.ts.map