Payment API

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#

ParameterTypeDescription
x402VersionStringVersion of the x402 protocol. For v1, pass integer 1
schemeStringSettlement scheme, e.g. exact (one‑time fixed‑amount payment)
chainIndexStringUnique chain identifier, e.g. 196 (X Layer)
chainNameStringChain 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": ""
}