fungibletoken
Convert Wrap Token to Base Token
Enables users to convert wrapped ERC-20 tokens back to their underlying base tokens. For example, it allows for the conversion of wrapped staked Ethereum (wstETH) back to its base version (stETH). This unwrapping process is essential for users who need to access the native properties of a token for activities that require the base token format.
💡 Compute Unit Value: 145 (Fixed)
post/defi/v1/fungibletoken/convertwraptokentobasetoken
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/fungibletoken/convertwraptokentobasetoken
- AuthAPI key in header X-API-Key
Request body
Example request
{
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"amount": "1000000000000000000",
"gas": "100000",
"chainId": "1",
"chainSymbol": "ETH",
"gasPriority": "low",
"enableFee": false,
"simulate": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "2307200",
"data": "0x2e1a7d4d0000000000000000000000000000000000000000000000000000000000000005",
"referenceId": "e911c9db36b54dfe889f10875af33fd4"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.