@helium/transactions
Version:
Construct and serialize Helium blockchain transaction primatives
30 lines • 905 B
TypeScript
import Transaction from './Transaction';
import { Addressable, SignableKeypair } from './types';
interface TransferHotspotOptionsV2 {
gateway?: Addressable;
owner?: Addressable;
ownerSignature?: Uint8Array;
newOwner?: Addressable;
fee?: number;
nonce?: number;
}
interface SignOptions {
owner: SignableKeypair;
}
export default class TransferHotspotV2 extends Transaction {
gateway?: Addressable;
owner?: Addressable;
ownerSignature?: Uint8Array;
newOwner?: Addressable;
fee?: number;
nonce?: number;
type: string;
constructor(opts: TransferHotspotOptionsV2);
serialize(): Uint8Array;
static fromString(serializedTxnString: string): TransferHotspotV2;
sign({ owner: ownerKeypair }: SignOptions): Promise<TransferHotspotV2>;
private toProto;
calculateFee(): number;
}
export {};
//# sourceMappingURL=TransferHotspotV2.d.ts.map