UNPKG

@stellar/stellar-sdk

Version:

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

25 lines (24 loc) 1.04 kB
/** * AccountRequiresMemoError is raised when a transaction is trying to submit an * operation to an account which requires a memo. See * [SEP0029](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0029.md) * for more information. * * This error contains two attributes to help you identify the account requiring * the memo and the operation where the account is the destination * @category Errors * * @param {string} message Human-readable error message * @param {string} accountId The account which requires a memo * @param {number} operationIndex The index of the operation where `accountId` is the destination * * @example * console.log('The following account requires a memo ', err.accountId) * console.log('The account is used in operation: ', err.operationIndex) */ export declare class AccountRequiresMemoError extends Error { __proto__: AccountRequiresMemoError; accountId: string; operationIndex: number; constructor(message: string, accountId: string, operationIndex: number); }