v1

latestOpenAPI 3.0.02026-07-22243670.8 KB
Swap

Get the swap contract's output token metadata

Resolves outputToken() on the Superstate swap contract and returns the ERC-20 name, symbol and decimals of that token.

get/v1/swap/output-token

Query parameters

contract_addressstring required
Example:0x742d35cc6634c0532925a3b844bc9e7595f0beb1

The swap contract address

chainstring required
Example:ethereum_sepolia

The EVM chain to read from, e.g. ethereum_mainnet, ethereum_sepolia, base_mainnet or base_sepolia

Response

Successful response.

decimalsinteger required

ERC-20 token decimals

namestring required

ERC-20 token name

object'swap_output_token' required

String representing the object's type. Objects of the same type share the same value.

symbolstring required

ERC-20 token symbol

Example response

{
  "decimals": 6,
  "name": "USD Coin",
  "symbol": "USDC"
}