stellar-plus
Version:
beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain
25 lines (24 loc) • 852 B
TypeScript
import { Horizon } from '@stellar/stellar-sdk';
import { HorizonHandler } from '../../stellar-plus/horizon/types';
import { NetworkConfig } from '../../stellar-plus/types';
export declare class HorizonHandlerClient implements HorizonHandler {
private networkConfig;
server: Horizon.Server;
/**
*
* @param {NetworkConfig} networkConfig - The network to use.
*
* @description - The horizon handler is used for interacting with the Horizon server.
*
*/
constructor(networkConfig: NetworkConfig);
/**
*
* @param {string} accountId - The account ID to load.
*
* @description - Loads the account from the Horizon server.
*
* @returns {AccountResponse} The account response from the Horizon server.
*/
loadAccount(accountId: string): Promise<Horizon.AccountResponse>;
}