Error codes

INVALID_RECIPIENT

The payment cannot go to this recipient.

Exit code: 6 · Who acts: You: correct the request or the environment · From: the CLI, the SDK and the backend

What it means

The payment cannot go to this recipient.

Common causes

  • The address or handle is wrong, or the recipient cannot receive this asset.

Fix it

  1. Check the recipient, then send again. Nothing was sent.

In JSON and the SDK

With --json, the CLI prints:

{
  "outcome": "refused",
  "error": {
    "code": "INVALID_RECIPIENT",
    "message": "…"
  }
}

In the SDK, a failed result has result.error.code === "INVALID_RECIPIENT". Branch on the code, not on the message: the message is written for people and can change.

Commands that can answer with it

On this page