curl --request POST \
--url https://api.pay.walletconnect.com/v1/gateway/payment/{id}/options \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"accounts": [
"<string>"
],
"refresh": [
"<string>"
]
}
'{
"options": [
{
"actions": [
{
"data": {
"chain_id": "<string>",
"method": "<string>",
"params": [
"<unknown>"
]
},
"type": "walletRpc"
}
],
"amount": {
"display": {
"assetName": "<string>",
"assetSymbol": "<string>",
"decimals": 1,
"iconUrl": "<string>",
"networkIconUrl": "<string>",
"networkName": "<string>"
},
"unit": "<string>",
"value": "<string>"
},
"etaS": 1,
"id": "<string>",
"account": "<string>",
"collectData": {
"url": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"required": true,
"type": "text"
}
]
}
}
],
"collectData": {
"url": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"required": true,
"type": "text"
}
]
},
"info": {
"amount": {
"display": {
"assetName": "<string>",
"assetSymbol": "<string>",
"decimals": 1,
"iconUrl": "<string>",
"networkIconUrl": "<string>",
"networkName": "<string>"
},
"unit": "<string>",
"value": "<string>"
},
"expiresAt": 1,
"merchant": {
"name": "<string>",
"iconUrl": "<string>"
},
"status": "requires_action",
"buyer": {
"accountCaip10": "<string>",
"accountProviderName": "<string>",
"accountProviderIcon": "<string>"
}
}
}List available options a wallet can use to complete a payment.
curl --request POST \
--url https://api.pay.walletconnect.com/v1/gateway/payment/{id}/options \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"accounts": [
"<string>"
],
"refresh": [
"<string>"
]
}
'{
"options": [
{
"actions": [
{
"data": {
"chain_id": "<string>",
"method": "<string>",
"params": [
"<unknown>"
]
},
"type": "walletRpc"
}
],
"amount": {
"display": {
"assetName": "<string>",
"assetSymbol": "<string>",
"decimals": 1,
"iconUrl": "<string>",
"networkIconUrl": "<string>",
"networkName": "<string>"
},
"unit": "<string>",
"value": "<string>"
},
"etaS": 1,
"id": "<string>",
"account": "<string>",
"collectData": {
"url": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"required": true,
"type": "text"
}
]
}
}
],
"collectData": {
"url": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"required": true,
"type": "text"
}
]
},
"info": {
"amount": {
"display": {
"assetName": "<string>",
"assetSymbol": "<string>",
"decimals": 1,
"iconUrl": "<string>",
"networkIconUrl": "<string>",
"networkName": "<string>"
},
"unit": "<string>",
"value": "<string>"
},
"expiresAt": 1,
"merchant": {
"name": "<string>",
"iconUrl": "<string>"
},
"status": "requires_action",
"buyer": {
"accountCaip10": "<string>",
"accountProviderName": "<string>",
"accountProviderIcon": "<string>"
}
}
}Payment ID
Whether to include payment information in the response