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": "U2FsdGVkX18UishRZGt7K4/0kj8Cp0UizS2Svx5zNafEiBW8bXZy6oGklbS5J1TDtXLh92iVCJV+OLh5/d1ebnQo/6GH06DO5oJN1MswQsVXcaEXPbkgibASSENJh5c1Vx5ZeGZ2jkN9SmeBS9vGv5dQjiztTF2+2t3VYfrBimxjSCpL8xZV4vCBiY9DPJnLzP3urFv63pTv7q3Pe4dmWEmExZYFThlVTNnxXfQcPYo=",
"expiresAt": "2025-06-09T11:39:26.568Z"
}
}
Last updated