Payment API

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#

ParameterTypeDescription
x402VersionStringx402 protocol version; pass integer 1 for v1
schemeStringSettlement scheme, e.g. exact (one-time fixed-amount payment)
chainIndexStringUnique network identifier, e.g. 196 (X Layer)
chainNameStringNetwork 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": ""
}