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.completeWithdrawal
Version: v2

Link.completeWithdrawal

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 complete the withdrawal of ETH:

The response can be obtained by saving the results of the Promise returned by completeWithdrawal:

const response = await link.completeWithdrawal({
type: ETHTokenType.ETH,
});

console.log(response);
// returns { transactionId: '0x...' }

Errors​

See error responses here.

Previous
Link.prepareWithdrawal
Next
Link.sell and ERC20 support

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