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

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


new AccountRequiresMemoError(message, accountId, operationIndex)

Create an AccountRequiresMemoError

Name Type Description
message message

error message

accountId string

The account which requires a memo.

operationIndex number

The index of the operation where accountId is the destination.