Skip to content

Commit

Permalink
move to new dev API key; script to get network
Browse files Browse the repository at this point in the history
  • Loading branch information
BrodyHughes committed Dec 12, 2024
1 parent 28fd24c commit 5c3d254
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/get-rpc-url.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
NETWORK=$1
KEY=$(grep ALCHEMY_DEV_KEY .env | cut -d '=' -f2)

case $NETWORK in
"optimism")
echo "https://opt-mainnet.g.alchemy.com/v2/$KEY"
;;
"mainnet")
echo "https://eth-mainnet.g.alchemy.com/v2/$KEY"
;;
esac

0 comments on commit 5c3d254

Please sign in to comment.