Get basic information#
Get the list of x402 payment schemes and networks supported for verification and settlement.
Request address#
GET https://web3.okx.com/api/v6/x402/supported
Request parameters#
No
Response parameter#
| Parameter | Type | Description |
|---|---|---|
| x402Version | String | Version of the x402 protocol. For v1, pass integer 1 |
| scheme | String | Settlement scheme, e.g. exact (one‑time fixed‑amount payment) |
| chainIndex | String | Unique chain identifier, e.g. 196 (X Layer) |
| chainName | String | Chain name, e.g. X Layer |
Request example#
Shell
curl --location --request GET 'https://web3.okx.com/api/v6/x402/supported' \
--header 'OK-ACCESS-KEY: <your-api-key>' \
--header 'OK-ACCESS-SIGN: <your-signature>' \
--header 'OK-ACCESS-PASSPHRASE: <your-passphrase>' \
--header 'OK-ACCESS-TIMESTAMP: <your-timestamp>'
Response example#
Json
{
"code": "0",
"data": [
{
"x402Version": 1,
"scheme": "exact",
"chainIndex": "196",
"chainName": "X Layer"
}
],
"msg": ""
}