aeternity / aescan

Block Explorer and Analytics Platform
ISC License
6 stars 3 forks source link

Get network name from the node #778

Open davidyuk opened 1 month ago

davidyuk commented 1 month ago

Currently, the network name is accepted in NUXT_PUBLIC_NETWORK_NAME. Our nodes have an endpoint (/v3/currency) returning the network name as text, so I propose to use it instead. This would simplify configuration of aescan.

For example: https://mainnet.aeternity.io/v3/currency => Mainnet https://testnet.aeternity.io/v3/currency => Testnet