zumokit
Version:
ZumoKit is a Wallet as a Service SDK
33 lines (32 loc) • 1.27 kB
TypeScript
import { Decimal } from 'decimal.js';
import { Account } from './Account';
import { TransactionType, ComposedTransactionJSON } from '../interfaces';
/**
* Result of one of the transaction compose methods on {@link Wallet Wallet} object.
*/
export declare class ComposedTransaction {
/** @internal */
json: ComposedTransactionJSON;
/**
* Transaction type, 'FIAT', 'CRYPTO', 'NOMINATED' or 'CUSTODY-WITHDRAW'.
*/
type: TransactionType;
/** Signed transaction for a crypto transaction, null otherwise. */
signedTransaction: string | null;
/** Account the composed transaction belongs to. */
account: Account;
/** Transaction destination, i.e. destination address for crypto transactions or user id for fiat transactions. */
destination: string | null;
/** Transaction amount in account currency. */
amount: Decimal | null;
/** Optional transaction data if available. */
data: string | null;
/** Maximum transaction fee. */
fee: Decimal;
/** Transaction nonce to prevent double spend. */
nonce: string;
/** Custody order id for custody withdraw transaction, null otherwise. */
custodyOrderId: string | null;
/** @internal */
constructor(json: ComposedTransactionJSON);
}