Class

AccountRequiresMemoError

AccountRequiresMemoError(message, accountId, operationIndex)

AccountRequiresMemoError is raised when a transaction is trying to submit an operation to an account which requires a memo. See SEP0029 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

Constructor

# new AccountRequiresMemoError(message, accountId, operationIndex)

Parameters:
Name Type Description
message string

Human-readable error message

accountId string

The account which requires a memo

operationIndex number

The index of the operation where accountId is the destination

View Source lib/errors/account_requires_memo.js, line 25

Example
console.log('The following account requires a memo ', err.accountId)
console.log('The account is used in operation: ', err.operationIndex)

Members

string

# accountId

The account which requires a memo.

View Source lib/errors/account_requires_memo.js, line 37

number

# operationIndex

Operation where accountId is the destination.

View Source lib/errors/account_requires_memo.js, line 42