UNPKG

@helium/http

Version:

HTTP library for interacting with the Helium blockchain API

29 lines 920 B
import type Client from '../Client'; import Sum from '../models/Sum'; import ResourceList from '../ResourceList'; import Hotspot, { Bucket, NaturalDate } from '../models/Hotspot'; import Account from '../models/Account'; import Validator from '../models/Validator'; interface ListRewardsParams { minTime?: Date | NaturalDate; maxTime?: Date; bucket?: Bucket; cursor?: string; } type Context = Account | Hotspot | Validator; export declare enum SumsType { rewards = "rewards", challenges = "challenges", witnesses = "witnesses" } export default class Sums { private client; private context?; private type; constructor(client: Client, type: SumsType, context?: Context); list(params: ListRewardsParams): Promise<ResourceList<Sum>>; get(minTime: Date | NaturalDate, maxTime?: Date): Promise<Sum>; get baseUrl(): string; } export {}; //# sourceMappingURL=Sums.d.ts.map