Swing Points Program is Live 🚀 Learn More →

Supported Contracts

get
https://platform.swing.xyz/api/v1
/contracts

Get a list of all contracts supported in the Swing Platform

address
string
chain
string
Example:
ethereum
integration
string
Example:
lido
method
string
Example:
supply
type
string
Allowed values:
depositwithdrawclaimrouterbridge
x-swing-environment
string

Swing API environment to use

Allowed values:
productiontestnet
Default:
production

OK

array of:
id
string
required
type
string
required
Allowed values:
depositwithdrawclaimrouterbridge
address
string
required

Contract address

Example:
0x...
method
string
required
Example:
supply
chain
string
required
Example:
ethereum
integration
string
required
Example:
lido
inputToken
string
required
Example:
ETH
outputToken
string or null
required
Example:
rETH
Parameters
:
:
:
:
:
:
curl --request GET \
--url https://platform.swing.xyz/api/v1/contracts \
--header 'Accept: application/json' \
--header 'x-swing-environment: '
Response Example
1
[
2
{
3
"id": "string",
4
"type": "deposit",
5
"address": "0x...",
6
"method": "supply",
7
"chain": "ethereum",
8
"integration": "lido",
9
"inputToken": "ETH",
10
"outputToken": "rETH"
11
}
12
]