free-eth-node icon indicating copy to clipboard operation
free-eth-node copied to clipboard

Add `chainId` query option to api

Open dawsbot opened this issue 3 years ago • 0 comments

Allow users to query by id 1 for ethereum, 9001 for evmos, etc.

image

Find any examples here: https://chainlist.org/

This could look like https://free-eth-node.com/api/id/9001


How to implement:

  1. Remove chains.min.json from root and instead rely on https://chainid.network/chains_mini.json
  2. Add a new endpoint at pages/api/id/[chainId].ts

dawsbot avatar May 23 '22 20:05 dawsbot