getSources

suspend fun getSources(chainId: String): Result<Map<String, String>>

Deprecated

This method has been replaced by 0x trading. Please use 'portal.trading.zeroX.getSources()' instead.

Replace with

portal.trading.zeroX.getSources(chainId, zeroXApiKey)

Fetches the available swap sources for the specified blockchain network.

Return

A Result<Map<String, String>> containing the available swap sources or an error if the request fails.

Parameters

chainId

The ID of the blockchain network.