bancorprotocol / contracts-solidity

Bancor Protocol Contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discover Token Relays addresses

k06a opened this issue · comments

Is there any way to discover all Token Relays and Smart Tokens to compose path?

You mean all available options?
We don't have a discovery service for tokens in the network yet, though it's possible to use any smart token in the network as part of the path.
Note that token relays are smart tokens as well, but a path can also end with a standard ERC20 token.

I can't discover this API on your backend too. There are no Token Relays contracts addresses in API response.

I believe you can use the currencies API to get that info -
https://api.bancor.network/0.1/currencies

It's a paged request.

@yudilevi thanks! This is exactly what I need!