UNPKG

@helium/transactions

Version:

Construct and serialize Helium blockchain transaction primatives

35 lines 1.05 kB
import Transaction from './Transaction'; import { Addressable, SignableKeypair } from './types'; interface TransferHotspotOptions { gateway?: Addressable; seller?: Addressable; buyer?: Addressable; sellerSignature?: Uint8Array; buyerSignature?: Uint8Array; buyerNonce?: number; amountToSeller?: number; fee?: number; } interface SignOptions { seller?: SignableKeypair; buyer?: SignableKeypair; } export default class TransferHotspotV1 extends Transaction { gateway?: Addressable; seller?: Addressable; buyer?: Addressable; sellerSignature?: Uint8Array; buyerSignature?: Uint8Array; buyerNonce?: number; amountToSeller?: number; fee?: number; type: string; constructor(opts: TransferHotspotOptions); serialize(): Uint8Array; static fromString(serializedTxnString: string): TransferHotspotV1; sign(keypairs: SignOptions): Promise<TransferHotspotV1>; private toProto; calculateFee(): number; } export {}; //# sourceMappingURL=TransferHotspotV1.d.ts.map