UNPKG

@stellar/stellar-sdk

Version:

A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.

36 lines (35 loc) 1.26 kB
import type { TransactionSource } from "./transaction_source.js"; /** * Create a new Account object. * * `Account` represents a single account in the Stellar network and its sequence * number. Account tracks the sequence number as it is used by {@link * TransactionBuilder}. See * [Accounts](https://developers.stellar.org/docs/glossary/accounts/) for * more information about how accounts work in Stellar. */ export declare class Account implements TransactionSource { private _accountId; private sequence; /** * @param accountId - ID of the account (ex. * `GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA`). If you * provide a muxed account address, this will throw; use {@link * MuxedAccount} instead. * @param sequence - current sequence number of the account */ constructor(accountId: string, sequence: string); /** * Returns Stellar account ID, ex. * `GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA`. */ accountId(): string; /** * Returns sequence number for the account as a string */ sequenceNumber(): string; /** * Increments sequence number in this object by one. */ incrementSequenceNumber(): void; }