get_token_info
Function
Description
Create the cache folder for token info if it doesn’t exist
Set the file path for the token info as JSON
If the file already exists then return load the JSON string from the file and return it
Set placeholders for the token info as 3 null variables
Load the contract from token address
Set max attempts
Get the token contract’s name
Get the token contract’s Symbol
Get the token contract’s Decimals
Prepare a dictionary with the token info
Save it as JSON to the file path
Return the token info