get_abi_from_blockscout
Function
Description
Loop while there are attempts remaining
Get the data for the desired contract address from Blockscout’s API
Throw an exception if any HTTP errors occur
Retry every 1 second while attempts are remaining
Get the JSON response from the API endpoint
Check if the key “abi” is found in the response
Return the value from the “abi” key or an empty list