Skip to main content

How to Deposit to a Chain

The deposit entrypoint credits the transferred IOTA tokens into your on-chain account.

// deposits N iotas from wallet into chain
req := solo.NewCallParams(accounts.Contract.Name, accounts.FuncDeposit.Name)
_, err := chain.PostRequestSync(req.WithIotas(N), wallet)
require.NoError(t, err)