from compass_api_sdk import CompassAPIwith CompassAPI( api_key_auth="<YOUR_API_KEY_HERE>",) as compass_api: res = compass_api.universal.supported_chains() # Handle response print(res)
Copy
Ask AI
{ "chains": [ "base:mainnet" ]}
Universal
List Supported Chains
Get the list of supported chains by the Compass API.
GET
/
v0
/
generic
/
supported_chains
/
get
Python (SDK)
Copy
Ask AI
from compass_api_sdk import CompassAPIwith CompassAPI( api_key_auth="<YOUR_API_KEY_HERE>",) as compass_api: res = compass_api.universal.supported_chains() # Handle response print(res)