UNPKG

@helium/transactions

Version:

Construct and serialize Helium blockchain transaction primatives

32 lines 947 B
import Transaction from './Transaction'; import { Addressable, SignableKeypair } from './types'; interface Options { tokenType: string; startEpoch: number; endEpoch: number; rewards: Array<SubnetworkReward>; rewardServerSignature?: Uint8Array; } interface SignOptions { keypair: SignableKeypair; } export interface SubnetworkReward { account: Addressable; amount: number; } export default class SubnetworkRewardsV1 extends Transaction { tokenType?: string; startEpoch?: number; endEpoch?: number; rewardServerSignature?: Uint8Array; rewards: Array<SubnetworkReward>; type: string; constructor(opts: Options); serialize(): Uint8Array; message(): Uint8Array; sign({ keypair }: SignOptions): Promise<SubnetworkRewardsV1>; static fromString(serializedTxnString: string): SubnetworkRewardsV1; private toProto; } export {}; //# sourceMappingURL=SubnetworkRewardsV1.d.ts.map