Raiden Network
  • What is Raiden?
  • Installation
    • Quick Start
      • Get MetaMask
      • Get an Infura ID
      • Download and run the Raiden Wizard
      • Handle Limitations
    • Starting Raiden Manually
  • Using Raiden on Mainnet
    • Overview
    • Get Whitelisted Tokens
    • Deposit Tokens to the UDC
    • Open a Channel
    • Make a Payment
    • Deposit Tokens
    • View Channel Status
    • Mediation Fees
  • The Raiden Web Interface
    • Overview
    • Navigate the WebUI
    • Join a Token Network
    • Make a Payment
    • Add More Tokens
    • Settle Payments and Close Channels
  • Using Raiden on testnet
    • Quick Start on Görli Testnet
    • Use Custom Token
      • Get Goerli Testnet ETH (GÖETH)
      • Import Custom Token
      • Compile Imported Token Code
      • Deploy Custom Token
  • Raiden API
    • Introduction
    • Resources
      • Address
      • Version
      • Settings
      • Contracts Information
      • Tokens
      • Channels
      • Payments
      • Connections
      • Pending Transfers
      • Shutdown
      • Testing
    • API Tutorial
      • Create a Token Network
      • Open a Channel
      • Deposit Tokens
      • Make a Payment
      • Withdraw Tokens
      • Settle Payments and Close Channels
  • Other
    • Safe Usage
    • Known Issues
    • Glossary
    • v1.0 Documentation
    • Trademark Attributions
Powered by GitBook
On this page
  • Check if Raiden was started correctly
  • Overview

Was this helpful?

  1. Raiden API

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.

PreviousTestingNextCreate a Token Network

Last updated 5 years ago

Was this helpful?

We will outline the steps necessary for participating in a token network. To see all available endpoints visit the 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 endpoint.

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:

resources
Create a Token Network
Open a Channel
Deposit Tokens
Make a Payment
Withdraw Tokens
Settle Payments and Close Channels
address