UNPKG

@helium/transactions

Version:

Construct and serialize Helium blockchain transaction primatives

41 lines 1.15 kB
import Transaction from './Transaction'; import { Addressable, SignableKeypair } from './types'; interface AssertLocationOptions { owner?: Addressable; gateway?: Addressable; payer?: Addressable; location?: string; nonce?: number; gain?: number; elevation?: number; fee?: number; stakingFee?: number; ownerSignature?: Uint8Array; payerSignature?: Uint8Array; } interface SignOptions { owner?: SignableKeypair; payer?: SignableKeypair; } export default class AssertLocationV2 extends Transaction { owner?: Addressable; gateway?: Addressable; payer?: Addressable; location?: string; nonce?: number; gain?: number; elevation?: number; fee?: number; stakingFee?: number; ownerSignature?: Uint8Array; payerSignature?: Uint8Array; type: string; constructor(opts: AssertLocationOptions); serialize(): Uint8Array; static fromString(serializedTxnString: string): AssertLocationV2; sign(keypairs: SignOptions): Promise<AssertLocationV2>; private toProto; calculateFee(): number; } export {}; //# sourceMappingURL=AssertLocationV2.d.ts.map