bee icon indicating copy to clipboard operation
bee copied to clipboard

Cannot get node wallet balance when chequebook is disabled

Open Cafe137 opened this issue 2 months ago • 0 comments

Context

2.6.0-d0aa8b93

Summary

Since the GET /wallet endpoint also returns chequebookContractAddress, this endpoint only works when the chequebook is enabled.

I should be able to retrieve my xDAI and xBZZ balance regardless of the chequebook status.

Expected behavior

GET /wallet should work with chequebook disabled. Maybe set chequebookContractAddress to an empty string or null when it is not available.

Actual behavior

GET http://localhost:1633/wallet

{
"code": 403,
"message": "Swap is disabled. This endpoint is unavailable."
}

or

{
"code": 403,
"message": "Chequebook is disabled. This endpoint is unavailable."
}

Steps to reproduce

Set swap-enable: false or chequebook-enable: false

Cafe137 avatar Oct 02 '25 08:10 Cafe137