UNPKG

@logosnetwork/logos-webwallet-sdk

Version:

Create Logos wallets with or without a full Logos node

31 lines (30 loc) 987 B
import TokenRequest, { TokenRequestOptions, TokenRequestJSON } from './TokenRequest'; import { Transaction } from '@logosnetwork/logos-rpc-client/api'; export interface DistributeOptions extends TokenRequestOptions { transaction?: Transaction; } export interface DistributeJSON extends TokenRequestJSON { transaction?: Transaction; } export default class Distribute extends TokenRequest { private _transaction; constructor(options?: DistributeOptions); /** * Return the previous request as hash * @type {Transaction} */ transaction: Transaction; /** * Returns calculated hash or Builds the request and calculates the hash * * @throws An exception if missing parameters or invalid parameters * @type {string} * @readonly */ readonly hash: string; /** * Returns the request JSON ready for broadcast to the Logos Network * @returns {DistributeJSON} JSON request */ toJSON(): DistributeJSON; }