Steem2ETH Swap: Using the Alchemy API

in crypto •  8 months ago 

Yesterday I mentioned that from 14/Feb (in 3 days), the Infura API will be restricted. Luckily I found out that the Alchemy API provides free and generous API accesses to ETH and other blockchains.

Thus, I have migrated the eth_gasPrice and eth_getBlockNumber two heavy APIs to Alchemy API.

Infrua (Before/After)

image.png

Alchemy API
image.png

Now, the load to Infrua is trivial, juist one API per minute or so (eth_getBalance)

image.png

For Alchemy API, the average call is 11 CU (call unit) per second, which averages to 28 Million per months, so the free plan of Alchemy API is more than enough as it provides 300 M per months free quota.

Steem to the Moon🚀!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!