import RPCClient from "../rpcclient"; import Namespace from "./namespace"; /** * Node accesses information about an Elld client * * @export * @class Node */ export default class Node extends Namespace { /** * Creates an instance of Node. * * @param {RPCClient} client * @memberof Node */ constructor(client: RPCClient); /** * Get the status of a transaction. * * The status is 'pooled' when the transaction * is currently in the transaction pool or 'mined' * if the transaction has been added to a mined block. * If the transaction hash is unrecognised, 'unknown' * is returned. * * @param {string} hash The transaction hash * @returns {Promise} * @memberof Node */ getTransactionStatus(hash: string): Promise; /** * Get the current status of the node * block synchronization session. Returns * null when the node is not syncing. * * @returns {Promise} * @memberof Node */ getSyncStat(): Promise; /** * Check whether the node is currently * syncing blocks with a peer. * * @returns {Promise} * @memberof Node */ isSyncing(): Promise; /** * Get information about the node * * @returns {Promise} * @memberof Node */ info(): Promise; /** * Get the node's configurations * * @returns {Promise} * @memberof Node */ config(): Promise; /** * Returns non-sensitive information about * a node. * * @returns {Promise} * @memberof Node */ basic(): Promise; }