@helium/transactions
Version:
Construct and serialize Helium blockchain transaction primatives
36 lines • 1.06 kB
TypeScript
import Transaction from './Transaction';
import { Addressable, SignableKeypair } from './types';
interface AddGatewayOptions {
owner?: Addressable;
gateway?: Addressable;
payer?: Addressable;
fee?: number;
stakingFee?: number;
ownerSignature?: Uint8Array;
gatewaySignature?: Uint8Array;
payerSignature?: Uint8Array;
}
interface SignOptions {
owner?: SignableKeypair;
gateway?: SignableKeypair;
payer?: SignableKeypair;
}
export default class AddGatewayV1 extends Transaction {
owner?: Addressable;
gateway?: Addressable;
payer?: Addressable;
ownerSignature?: Uint8Array;
gatewaySignature?: Uint8Array;
payerSignature?: Uint8Array;
stakingFee?: number;
fee?: number;
type: string;
constructor(opts: AddGatewayOptions);
serialize(): Uint8Array;
static fromString(serializedTxnString: string): AddGatewayV1;
sign(keypairs: SignOptions): Promise<AddGatewayV1>;
private toProto;
calculateFee(): number;
}
export {};
//# sourceMappingURL=AddGatewayV1.d.ts.map