Skip to main content
Immutable LogoImmutable Logo
Immutable zkEVMImmutable Hub
v2
  • v2
  • v1
Immutable Hub
Immutable X
  • Overview of Immutable X
    • Start here
    • What is it?
    • What are its layer 2 solutions?
    • What can you build on it?
    • Fees
  • Launch a collection
  • Guides
    • Overview
    • Migration guides
    • Basic guides
    • Advanced guides
    • Design guides
    • JS SDK
    • Link SDK
      • Overview
      • Link.setup
      • Link.transfer
      • Link.batchNftTransfer
      • Link iFrame Support
      • Link.buy
      • Link.prepareWithdrawal
      • Link.completeWithdrawal
      • Link.sell and ERC20 support
      • Link.deposit
      • Link.sign
      • Link.onramp
      • Link.offramp
      • Link Easy Login
      • Link Errors
      • Link.nftCheckoutPrimary
      • Link Events
      • Offers
  • Quickstart tutorials
    • NFT minting tutorial
    • API pagination guide
  • Products
    • Passport
  • SDKs
    • Typescript SDK
    • Unity SDK
    • Unreal SDK
  • API
    • API Keys
    • API Reference
  • Key concepts
  • Troubleshooting
  • Resources
  • Guides
  • Link SDK
  • Link.prepareWithdrawal
Version: v2

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 }
Previous
Link.buy
Next
Link.completeWithdrawal

IMX Whitepaper • IMX Tokenomics • Block Explorer • Careers • Contact Us