Skip to main content

How to Withdraw From a Chain

The withdraw endpoint sends funds owned by the callee to their L1 address.

// withdraw from chain to wallet
req := solo.NewCallParams(accounts.Contract.Name, accounts.FuncWithdraw.Name)
_, err := chain.PostRequestSync(req.WithIotas(1), wallet)
require.NoError(t, err)