This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the current Unix timestamp | |
timestamp=$(date +%s) | |
# Make the request and parse the response for the block number | |
blockNumber=$(curl -s "https://api.basescan.org/api?module=block&action=getblocknobytime×tamp=$timestamp&closest=before&apikey=yourApiKey" | jq -r '.result') | |
echo $blockNumber |
Contract | Address |
---|---|
Permit2 |
0x000000000022d473030f116ddee9f6b43ac78ba3 |
universal router |
0x050E797f3625EC8785265e1d9BDd4799b97528A1 |
v3CoreFactory |
0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24 |
multicall |
[0xd867e273eAbD6c853fCd0Ca0bFB6a3aE6491d2C1](https://sepolia.basescan.org/address/0xd867e273eAbD6c853fCd0Ca0 |