@helium/transactions
Version:
Construct and serialize Helium blockchain transaction primatives
31 lines • 846 B
TypeScript
import Transaction from './Transaction';
import { Addressable, SignableKeypair } from './types';
interface Options {
account?: Addressable;
amount?: number;
fee?: number;
nonce?: number;
tokenType?: string;
signature?: Uint8Array;
}
interface SignOptions {
keypair: SignableKeypair;
}
export default class TokenRedeemV1 extends Transaction {
account?: Addressable;
amount?: number;
fee?: number;
nonce?: number;
tokenType?: string;
signature?: Uint8Array;
type: string;
constructor(opts: Options);
serialize(): Uint8Array;
message(): Uint8Array;
sign({ keypair }: SignOptions): Promise<TokenRedeemV1>;
private toProto;
static fromString(serializedTxnString: string): TokenRedeemV1;
calculateFee(): number;
}
export {};
//# sourceMappingURL=TokenRedeemV1.d.ts.map