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
ed7c4941-a5ab-4f53-afb1-195f3a217a62
addressToIdstringRequiredExample:
Identifier of the destination address in the system where the coins should be delivered
8caacef1-8170-4e3d-863e-7762a8157dae
feeTokenstringRequiredExample:
Commission Token
U2FsdGVkX1/gprhfuVsVOeMlNccvgryJ7bxDhFKbG6oYMkPbGLjgp2UnPOkNxC5LOQkksB0IehLgSQ027djoa4oxKfK+Tl6jMfcwb0CKmUBj/FaqObGLZqfW2oCOYoteBdgPzSBqXxkq1yAol6yTZMrvlVnT6pVTECnwVSQ9Es+W2idS3v+Q3oKd0exhHiLyhbtuVVodnGcUErK/c5uBHj/aHDB5+CuidRaf0on/YIQ=
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": "ed7c4941-a5ab-4f53-afb1-195f3a217a62",
"addressToId": "8caacef1-8170-4e3d-863e-7762a8157dae",
"feeToken": "U2FsdGVkX1/gprhfuVsVOeMlNccvgryJ7bxDhFKbG6oYMkPbGLjgp2UnPOkNxC5LOQkksB0IehLgSQ027djoa4oxKfK+Tl6jMfcwb0CKmUBj/FaqObGLZqfW2oCOYoteBdgPzSBqXxkq1yAol6yTZMrvlVnT6pVTECnwVSQ9Es+W2idS3v+Q3oKd0exhHiLyhbtuVVodnGcUErK/c5uBHj/aHDB5+CuidRaf0on/YIQ=",
"webhookUrl": "https://merchant.domain/webhooks/bridge"
}
200Success
{
"success": true,
"response": {
"id": "9342889b-3bbb-4a26-9daa-09794063035e",
"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-07-15T10:50:46.080Z"
}
}
Last updated