Corridor Pricing API
This endpoint returns all possible cross-chain payment routes, their fees and estimated execution time.
Authorizations
Body
amountnumber · floatRequiredExample:
Amount in normal USD denomination (e.g., 10.5 for $10.50)
100.5
source_accountstringRequiredExample:
Source wallet address
0xb796b0db4333ef2ffac835a1e05c75e0c119d4
Pattern: ^0x[a-fA-F0-9]{40}$
routing_prioritystring · enumOptionalDefault:
Routing strategy for cross-chain payments
AUTO
Possible values: Responses
200
Quote retrieved successfully
application/json
400Error
401Error
404
No valid corridor route quotes found
500
Internal pricing service error
post
POST /v1/corridors/quotes HTTP/1.1
Host: api-core.paygrid.co
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 185
{
"amount": 100.5,
"source_account": "0xb796b0db4333ef2ffac835a1e05c75e0c119d4",
"destinations": {
"networks": [
"POLYGON",
"BASE",
"OPTIMISM"
],
"tokens": [
"USDC",
"USDT"
]
},
"routing_priority": "AUTO"
}
{
"corridor_quotes": [
{
"corridorId": "POLYGON_POLYGON_USDC_USDT",
"total_fee": 0.0005,
"speed": 30,
"price_impact": 0.9995
},
{
"corridorId": "BASE_BASE_USDC_USDT",
"total_fee": 0.0005,
"speed": 30,
"price_impact": 0.9995
}
]
}
Last updated