@nimiq/hub-api
Version:
The Nimiq Hub provides a unified interface for all Nimiq accounts, addresses, and contracts. It is the primary UI for Nimiq users to manage their accounts and provides websites and apps with a concise API to interact with their users’ Nimiq addresses.
27 lines (26 loc) • 951 B
TypeScript
import type * as Nimiq from '@nimiq/core';
import { PaymentOptions, Currency, PaymentType } from './PublicRequestTypes';
export interface NimiqSpecifics {
fee?: number | string;
feePerByte?: number | string;
extraData?: Uint8Array | string;
validityDuration?: number;
flags?: number;
sender?: string;
forceSender?: boolean;
recipient?: string;
recipientType?: Nimiq.AccountType;
}
export declare type NimiqDirectPaymentOptions = PaymentOptions<Currency.NIM, PaymentType.DIRECT>;
export interface BitcoinSpecifics {
fee?: number | string;
feePerByte?: number | string;
recipient?: string;
}
export declare type BitcoinDirectPaymentOptions = PaymentOptions<Currency.BTC, PaymentType.DIRECT>;
export interface EtherSpecifics {
gasLimit?: number | string;
gasPrice?: string;
recipient?: string;
}
export declare type EtherDirectPaymentOptions = PaymentOptions<Currency.ETH, PaymentType.DIRECT>;