Link.prepareWithdrawal
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 }
Last updated