atomicals-js
atomicals-js copied to clipboard
feat: support multiple electrum endpoints
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