获取支持的链及 Protocol 列表#
获取扫链所支持的链及对应 Protocol 列表。
请求 URL#
GET https://web3.okx.com/api/v6/dex/market/memepump/supported/chainsProtocol
请求参数#
无
返回参数#
| 参数名 | 类型 | 描述 |
|---|---|---|
| chainIndex | String | 链唯一标识(如 501 = Solana,56 = BSC)。 |
| protocolList | Array | 该链支持的 Protocol 列表。 |
| >protocolId | String | Protocol 编号(如 1 = PUMP_FUN)。 |
| >protocolName | String | Protocol 名称(如 PUMP_FUN、SUNPUMP)。 |
请求示例#
Shell
curl --location --request GET 'https://web3.okx.com/api/v6/dex/market/memepump/supported/chainsProtocol' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'
返回示例#
Json
{
"code": "0",
"msg": "",
"data": [
{
"chainIndex": "501",
"chainName": "Solana",
"protocolList": [
{ "protocolId": "1", "protocolName": "PUMP_FUN" },
{ "protocolId": "2", "protocolName": "MOONSHOT" }
]
},
{
"chainIndex": "56",
"chainName": "BSC",
"protocolList": [
{ "protocolId": "3", "protocolName": "SUNPUMP" }
]
}
]
}