{ "opencollection": "1.0.0", "info": { "name": "Frontline DocumentSubmissions Swap API", "version": "0.1.0" }, "items": [ { "info": { "name": "Swap", "type": "folder" }, "items": [ { "info": { "name": "Get the swap contract's output token metadata", "type": "http" }, "http": { "method": "GET", "url": "https://api.coinlist.co/v1/swap/output-token", "params": [ { "name": "contract_address", "value": "", "type": "query", "description": "The swap contract address" }, { "name": "chain", "value": "", "type": "query", "description": "The EVM chain to read from, e.g. ethereum_mainnet, ethereum_sepolia, base_mainnet or base_sepolia" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Resolves outputToken() on the Superstate swap contract and returns the ERC-20 name, symbol and decimals of that token." }, { "info": { "name": "Preview a swap", "type": "http" }, "http": { "method": "GET", "url": "https://api.coinlist.co/v1/swap/preview", "params": [ { "name": "contract_address", "value": "", "type": "query", "description": "The swap contract address" }, { "name": "chain", "value": "", "type": "query", "description": "The EVM chain to read from, e.g. ethereum_mainnet, ethereum_sepolia, base_mainnet or base_sepolia" }, { "name": "input_token", "value": "", "type": "query", "description": "The input token contract address" }, { "name": "amount", "value": "", "type": "query", "description": "Amount of the input token to swap, as a uint256 decimal string in the input token's smallest unit" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Reads preview(inputToken, amount) on the Superstate swap contract and returns the quote: the input amount to pay, the fee charged on it and the output amount to receive." }, { "info": { "name": "Get the swap contract's status", "type": "http" }, "http": { "method": "GET", "url": "https://api.coinlist.co/v1/swap/status", "params": [ { "name": "contract_address", "value": "", "type": "query", "description": "The swap contract address" }, { "name": "chain", "value": "", "type": "query", "description": "The EVM chain to read from, e.g. ethereum_mainnet, ethereum_sepolia, base_mainnet or base_sepolia" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Reads stopped() and SWAP_LEVEL() on the Superstate swap contract so clients can determine whether swaps are currently allowed." } ] } ], "bundled": true }