@helium/http
Version:
HTTP library for interacting with the Helium blockchain API
24 lines • 657 B
TypeScript
import Balance, { NetworkTokens } from '@helium/currency';
import DataModel from './DataModel';
import Client from '../Client';
export type RewardData = Omit<Reward, 'client'>;
export interface HTTPReward {
account: string;
amount: number;
block: number;
gateway: string;
hash: string;
timestamp: string;
}
export default class Reward extends DataModel {
private client;
account: string;
amount: Balance<NetworkTokens>;
block: number;
gateway: string;
hash: string;
timestamp: string;
constructor(client: Client, rewards: HTTPReward);
get data(): RewardData;
}
//# sourceMappingURL=Reward.d.ts.map