Python
from compass_api_sdk import CompassAPI, models with CompassAPI( api_key_auth="<YOUR_API_KEY_HERE>", ) as compass_api: res = compass_api.universal.unwrap_weth(amount=1.5, chain=models.Chain.ARBITRUM_MAINNET, sender="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B") # Handle response print(res)
{ "chainId": 123, "data": "<string>", "from": "<string>", "gas": 123, "to": "<string>", "value": 123, "nonce": 123, "maxFeePerGas": 123, "maxPriorityFeePerGas": 123, "authorizationList": [] }
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that can be used for gas and other native purposes.
Your Compass API Key. Get your key here.
Request model for unwrapping WETH back to native ETH.
Successful Response
The response is of type object.
object
Was this page helpful?