Creating a cross-chain translation
The method allows you to create a cross-chain transfer. Cross-chain transfer allows you to transfer your assets from one network to another
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 request to create a cross-chain transfer
clientIdstringOptionalExample:
Unique transaction identifier in the merchant system, to prevent duplication of creation
merchant_unique_id
addressFromIdstringRequiredExample:
Identifier of the outgoing address in the system, in the specified coin and network when creating the commission token. The specified amount will be debited from this address
3632eaf6-402b-4479-9b3d-a54c9eba4c95
addressToIdstringRequiredExample:
Identifier of the destination address in the system where the coins should be delivered
9afe6e0b-25c6-4da8-80c3-dddf556b7f38
feeTokenstringRequiredExample:
Commission Token
U2FsdGVkX18UishRZGt7K4/0kj8Cp0UizS2Svx5zNafEiBW8bXZy6oGklbS5J1TDtXLh92iVCJV+OLh5/d1ebnQo/6GH06DO5oJN1MswQsVXcaEXPbkgibASSENJh5c1Vx5ZeGZ2jkN9SmeBS9vGv5dQjiztTF2+2t3VYfrBimxjSCpL8xZV4vCBiY9DPJnLzP3urFv63pTv7q3Pe4dmWEmExZYFThlVTNnxXfQcPYo=
webhookUrlstringOptionalExample:
URL address for operation status notification
https://merchant.domain/webhooks/bridge
Responses
200Success
application/json
post
POST /api-gateway/bridge/create HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 446
{
"clientId": "merchant_unique_id",
"addressFromId": "3632eaf6-402b-4479-9b3d-a54c9eba4c95",
"addressToId": "9afe6e0b-25c6-4da8-80c3-dddf556b7f38",
"feeToken": "U2FsdGVkX18UishRZGt7K4/0kj8Cp0UizS2Svx5zNafEiBW8bXZy6oGklbS5J1TDtXLh92iVCJV+OLh5/d1ebnQo/6GH06DO5oJN1MswQsVXcaEXPbkgibASSENJh5c1Vx5ZeGZ2jkN9SmeBS9vGv5dQjiztTF2+2t3VYfrBimxjSCpL8xZV4vCBiY9DPJnLzP3urFv63pTv7q3Pe4dmWEmExZYFThlVTNnxXfQcPYo=",
"webhookUrl": "https://merchant.domain/webhooks/bridge"
}
200Success
{
"success": true,
"response": {
"id": "66987f06-a51a-4d98-adf2-025a5c335761",
"clientId": "merchant_unique_id",
"currency": "USDT",
"networkFrom": "ethereum",
"networkTo": "tron",
"status": "PENDING",
"rejectMessage": null,
"amount": "200",
"amountUSD": "200",
"blockchainFee": "2",
"blockchainFeeUSD": "2.12",
"serviceFeeUSD": "0.50",
"webhookUrl": "https://merchant.domain/webhooks/bridge",
"createdAt": "2025-06-09T11:38:26.569Z"
}
}
Last updated