> For the complete documentation index, see [llms.txt](https://raiden-network.gitbook.io/raiden-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raiden-network.gitbook.io/raiden-network/raiden-api-1/api-tutorial.md).

# API Tutorial

This tutorial will show you how to use Raiden via the API by walking you through a few API calls. The steps are similar to the WebUI tutorial, but directly use the API endpoints.

We will outline the steps necessary for participating in a token network. To see all available endpoints visit the [resources](/raiden-network/raiden-api-1/resources.md) part of the documentation.

In the examples throughout this tutorial we will be using a hypothetical ERC20 token with the address `0x9aBa529db3FF2D8409A1da4C9eB148879b046700`.

## Check if Raiden was started correctly

Before we start we'll make sure that Raiden is running correctly.

This gives us an opportunity to introduce the [`address`](/raiden-network/raiden-api-1/resources/address.md#info-about-your-raiden-node) endpoint.

```bash
curl -i http://localhost:5001/api/v1/address
```

Your Raiden node is up and running if the response returns the same address as the Ethereum address used for starting Raiden.

## Overview

You're now ready to start interacting with the different endpoints and learn how they can be used to:

{% content-ref url="/pages/-Lr8QnIAPDFyg8w\_z4C9" %}
[Create a Token Network](/raiden-network/raiden-api-1/api-tutorial/1-join-a-token-network.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LrNiac7vK2u4GuKfr5m" %}
[Open a Channel](/raiden-network/raiden-api-1/api-tutorial/2-open-a-channel.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LrnzXijxIHHH6daTPvZ" %}
[Deposit Tokens](/raiden-network/raiden-api-1/api-tutorial/3-deposit.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LrO57dSF5OUvt9\_DXwH" %}
[Make a Payment](/raiden-network/raiden-api-1/api-tutorial/3-make-a-payment.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Lt4YrwiCUeADM-OeHfG" %}
[Withdraw Tokens](/raiden-network/raiden-api-1/api-tutorial/withdraw-tokens.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Lrny3fUNOBKgYCSVVbV" %}
[Settle Payments and Close Channels](/raiden-network/raiden-api-1/api-tutorial/4-settle-payments-and-close-channels.md)
{% endcontent-ref %}
