import Addresses from './addresses'; import Blocks from './blocks'; import Transactions from './transactions'; import Utils from './utils'; export interface INodeAPI { addresses: { balance(address: string, confirmations?: number): Promise; balanceDetails(address: string): Promise; }, blocks: { get(signature: string): Promise; at(height: number): Promise; first(): Promise; last(): Promise; height(): Promise; }, // leasing: { // getAllActiveLeases(address: string): Promise; // }, transactions: { get(id: string): Promise; getList(address: string): Promise; utxSize(): Promise; utxGet(id: string): Promise; utxGetList(): Promise; }, utils: { time(): Promise; script: { compile(code: string): Promise; } } } export const addresses = Addresses; export const blocks = Blocks; // export const leasing = Leasing; export const transactions = Transactions; export const utils = Utils;