BluxBlux

Get Account

Fetch details of a Stellar account using the Blux core SDK.

The getAccount function returns the details of a single Stellar account. Omit address to use the connected account, and omit network to use the currently active network.

Type

type GetAccountOptions = {
  address?: string; // Ignore to get the details of the connected account.
  network?: string; // Ignore to use the current active network
};

type GetAccountResult = Horizon.AccountResponse | null;

Usage

import { core } from "@bluxcc/core";

const result = await core.getAccount({});

On this page