UNPKG

dpos-offline

Version:

Offline Signing Transactions for DPOS Blockchains

32 lines (31 loc) 875 B
/// <reference types="node" /> import { RecipientId } from '../../interface'; import { IBaseTx } from '../base'; import { BaseLiskCodec, LiskTransaction } from './base_lisk'; /** * Identifies a Send transaction */ export interface ISendTx extends IBaseTx { readonly kind: 'send'; /** * Amount in Satoshi encoded as string */ readonly amount: string; /** * Amount recipient */ readonly recipient: RecipientId; /** * Optional Memo data. (If supported by the Coin) */ readonly memo?: string; } export declare type LiskSendAsset = { data?: string; }; export declare class LiskSendTxCodec extends BaseLiskCodec<LiskSendAsset> { constructor(); calcFees(tx: ISendTx): number; transform(from: ISendTx): LiskTransaction<LiskSendAsset>; protected assetBytes(tx: LiskTransaction<LiskSendAsset>): Buffer; }