UNPKG

@helium/transactions

Version:

Construct and serialize Helium blockchain transaction primatives

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