atomicals-js icon indicating copy to clipboard operation
atomicals-js copied to clipboard

feat: support multiple electrum endpoints

Open Halimao opened this issue 1 year ago • 8 comments

This pr added support for setting multiple endpoints with comma , in .env file.

ELECTRUMX_PROXY_BASE_URL=https://ep.atomicalmarket.com/proxy,https://ep.atomicals.xyz/proxy

And after failing to call one of the endpoints, will retry for another one. This is useful when one endpoint always returns 500 or 503 with a high server load.

Also, we can implement a client-side load balancer in the future

Halimao avatar Dec 31 '23 07:12 Halimao