Get Basic Information#
Get the list of x402 protocol settlement schemes and networks available for verification and settlement.
Request URL#
GET https://web3.okx.com/api/v6/x402/supported
Request Parameters#
None
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| x402Version | String | x402 protocol version; pass integer 1 for v1 |
| scheme | String | Settlement scheme, e.g. exact (one-time fixed-amount payment) |
| chainIndex | String | Unique network identifier, e.g. 196 (X Layer) |
| chainName | String | Network 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": ""
}