Error codes
INSUFFICIENT_BALANCE
The account does not hold enough money for this payment.
Exit code: 6 · Who acts: You or another person, after you read the current state, or by waiting · From: the CLI, the SDK and the backend
What it means
The account does not hold enough money for this payment.
Common causes
- The balance is lower than the amount, or money is already set aside for other payments.
Fix it
- Check the balance:
capxul balance. - Add money (
capxul addressshows where), or send a smaller amount.
In JSON and the SDK
With --json, the CLI prints:
{
"outcome": "refused",
"error": {
"code": "INSUFFICIENT_BALANCE",
"message": "…"
}
}In the SDK, a failed result has result.error.code === "INSUFFICIENT_BALANCE". Branch on the code, not on the message: the message is written for people and can change.