v1

latestOpenAPI 3.0.02026-07-22243670.8 KB
Swap

Get the swap contract's status

Reads stopped() and SWAP_LEVEL() on the Superstate swap contract so clients can determine whether swaps are currently allowed.

get/v1/swap/status

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.

object'swap_status' required

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

stoppedstring required

The contract's stopped() bitmask as a uint256 decimal string. Zero means no functionality is stopped.

swap_levelstring required

The contract's SWAP_LEVEL() flag as a uint256 decimal string

Example response

{
  "stopped": "0",
  "swap_level": "4"
}