Tokens
The tokens endpoints are used for registering new tokens and querying information about already registered tokens.
Tokens Resource Overview
HTTP Method
Resource
Description
GET
Addresses for all registered tokens
GET
Address of token network for a specific token
GET
All partner nodes with unsettled channels for a specific token
PUT
Register a token
Alderaan Token Registration
For the Alderaan release two tokens will be registered, DAI and WETH.
Tokens Resource Details
Addresses for All Registered Tokens
GET
http://localhost:5001/api/v1/tokens
Path Parameters
version
string
Version of the API
Address of Token Network for a Specific Token
GET
http://localhost:5001/api/v1/tokens/0xEA67...8ec8
The request will return the token network address for the specified token only if the token is already registered.
Path Parameters
version
string
Version of the API
token_address
string
Address of a token
All Partner Nodes With Unsettled Channels for a Specific Token
GET
http://localhost:5001/api/v1/tokens/0x61bB...69F6/partners
The value for the "channel" key in the response is a link to the channel resource.
Path Parameters
version
string
Version of the API
token_address
string
Address of a token
Register a Token
PUT
http://localhost:5001/api/v1/tokens/0xEA67...8ec8
A token needs to be registered for a token network to exist for that specific token.
Path Parameters
version
string
Version of the API
token_address
string
Address of a token
Last updated
Was this helpful?