Skip to main content

Link.prepareWithdrawal

Link reference tool

Check out our Link reference tool to understand how Link methods work without having to write any code.

Here's how you can prepare ETH for withdrawal:

The response to this request can be obtained by saving the results of the Promise returned by prepareWithdrawal:

const response = await link.prepareWithdrawal({
type: ETHTokenType.ETH,
amount: '0.001', //The amount of the token to withdraw
});

console.log(response);
// returns { withdrawalId: 123456 }

IMX Whitepaper IMX Tokenomics Block Explorer Careers Contact Us