Commission token formation
The method allows you to get a commission token for cross-chain transfer
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
The body of the commission token creation request
currencystringRequiredExample:
The coin you want to exchange
USDT
networkFromstringRequiredExample:
Outgoing network
ethereum
networkTostringRequiredExample:
Network where you want to receive coins
tron
amountstringRequiredExample:
Amount to transfer
200
Responses
200Success
application/json
post
POST /api-gateway/bridge/fee-token HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"currency": "USDT",
"networkFrom": "ethereum",
"networkTo": "tron",
"amount": "200"
}
200Success
{
"success": true,
"response": {
"blockchainFee": "2",
"blockchainFeeUSD": "2.12",
"serviceFeeUSD": "0.50",
"amount": "200",
"amountUSD": "200",
"token": "U2FsdGVkX1/q7wJP4zatjl/52yKfIkWGikSPzjnRIhpBkyMwhX6A26VxzuXfN1ooEOne+Nk3gfqg4tN3DE4WF3qkQIDTEjqEP7sx7egHyv02VU3i0QPrbPhVB8F4gHxElJpdtV79+XkGBmGYrREEWh/9c1pqRDL/sgIghqYvBPKNOuRpw+sU+VEPhX0MUub4qWYhYGaNqHhD4svWSGz9jon6EE8l4uQbBRwri3MVbQ0=",
"expiresAt": "2025-06-09T13:19:11.527Z"
}
}
Last updated