API Reference
Request Parameters:
ParameterTypeDescriptionExample
amountuint256The amount to withdraw, in wei100000000000000000

call pool contract

Note
// Data structure
function withdrawETH(uint256 amount) public
Return Parameters

None

ABI

function withdrawETH(uint256) public

Code example:

import { ethers, utils } from 'ethers';

const abi = ['function withdrawETH(uint256) public'];
const signer = new ethers.providers.Web3Provider(window?.ethereum).getSigner();
const contract = new ethers.Contract(poolAddress, abi, signer);
const txResult = await contract.withdrawETH(
	'10000000000000000'
);