@helium/http
Version:
HTTP library for interacting with the Helium blockchain API
29 lines • 988 B
TypeScript
import type Client from '../Client';
import Hotspot from '../models/Hotspot';
import ResourceList from '../ResourceList';
import Account from '../models/Account';
import City from '../models/City';
interface ListParams {
cursor?: string;
}
type Context = Account | City;
export default class Hotspots {
private client;
private context?;
constructor(client: Client, context?: Context);
fromAddress(address: string): Hotspot;
search(term: string): Promise<ResourceList<Hotspot>>;
list(params?: ListParams): Promise<ResourceList<Hotspot>>;
private fetchList;
get(address: string): Promise<Hotspot>;
elected(block?: number): Promise<ResourceList<Hotspot>>;
hex(index: string, params?: ListParams): Promise<ResourceList<Hotspot>>;
locationDistance(params: {
lat?: number;
lon?: number;
distance?: number;
cursor?: string;
}): Promise<ResourceList<Hotspot>>;
}
export {};
//# sourceMappingURL=Hotspots.d.ts.map