> For the complete documentation index, see [llms.txt](https://stokn.gitbook.io/welcome-to-stokn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stokn.gitbook.io/welcome-to-stokn.io/step-4-user-deposit-and-withdrawal.md).

# Step 4 - User Deposit & Withdrawal

The User will need different deposit address according to the coin selected and the network.&#x20;

<figure><img src="/files/LjBLAoqIWYypR0iwMbKJ" alt=""><figcaption></figcaption></figure>

1 - In order to realize a deposit,&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/wallet/deposit/{accountId}/{asset}/{network}" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

The Trading Portfolio (**PortfolioId**) will be associated with an **AccountId**. This means that the crypto deposit, will automatically be credited to the Trading Portfolio, which is the main portfolio of the AccountId.&#x20;

OAuth: client\_auth

2 - To obtain the history of all the deposits of a given **AccountId**, you can use the following endpoint:&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/wallet/deposit/{accountId}/history" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: client\_auth

3 - Using the following endpoint, you can also consult the list of the blockchains network available on Stokn for deposit:&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/wallet/deposit/networks/all/{slug}" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: client\_auth

4 - Using the following endpoint, you can also consult the list of coins/tokens available on Stokn for deposit:&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/wallet/deposit/available-coins" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: client\_auth

5 - This is the information that must be entered to make a withdrawal: account ID, asset, network, destination address.

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/wallet/withdraw" method="post" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth: user\_auth
