web3-api-utils
Version:
utility funtions to get api names for different api providers
16 lines (10 loc) • 546 B
Markdown



Ytility funtions to get api names for different api providers, such as alchemy, rarible, and thirdweb.
You have a chainId, and want to query an api, but the api uses a string such as "polygon", and eah api is slightly different. This module returns the string bwhen you give it the id.
node test/index.js