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

Creating a cross-chain translation

post
Header parameters
x-api-public-keystringoptional

Public API-key

x-api-signaturestringoptional

Signing the request body with a private API-key

Content-typestringoptional

Request content type

Example: application/json
Body

The body of the request to create a cross-chain transfer

advancedBalanceIdstringrequired

Identifier of the advance balance specified when creating the commission token

Example: f9565f73-eb15-4246-9954-169eeb9475fc
clientIdstringoptional

Unique transaction identifier in the merchant system, to prevent duplication of creation

Example: merchant_unique_id
addressFromIdstringrequired

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

Example: 21d8a948-5b69-45b9-8a4d-898be4df18e6
addressToIdstringrequired

Identifier of the destination address in the system where the coins should be delivered

Example: cfe09965-99b4-47df-802e-e0ddb5553148
feeTokenstringrequired

Commission Token

Example: U2FsdGVkX1+h3VDooU83C1qKiVksIb9jt0v5bjuvTTNBhqUakxiOLug+ziv1eOyLSOzU48C53N3pWmK1yeO8UBOh2Cex4LgLYl99Cv86ldC21mmaoNjpKv+HfQ7LaCxWIHdNuHgvhkX7+srodpKK+kJ/ZAB4IGKykEReI/b8lMVbUawNMWr3JQMQTAiMYWJxcBqqHAUdYiKdKvcIi874LbuqKgshep5y+67786P9Oz8=
webhookUrlstringoptional

URL address for operation status notification

Example: https://merchant.domain/webhooks/bridge
Responses
curl -L \
  --request POST \
  --url 'https://app.apollopayment.io/api-gateway/bridge/create' \
  --header 'Content-Type: application/json' \
  --data '{
    "advancedBalanceId": "f9565f73-eb15-4246-9954-169eeb9475fc",
    "clientId": "merchant_unique_id",
    "addressFromId": "21d8a948-5b69-45b9-8a4d-898be4df18e6",
    "addressToId": "cfe09965-99b4-47df-802e-e0ddb5553148",
    "feeToken": "U2FsdGVkX1+h3VDooU83C1qKiVksIb9jt0v5bjuvTTNBhqUakxiOLug+ziv1eOyLSOzU48C53N3pWmK1yeO8UBOh2Cex4LgLYl99Cv86ldC21mmaoNjpKv+HfQ7LaCxWIHdNuHgvhkX7+srodpKK+kJ/ZAB4IGKykEReI/b8lMVbUawNMWr3JQMQTAiMYWJxcBqqHAUdYiKdKvcIi874LbuqKgshep5y+67786P9Oz8=",
    "webhookUrl": "https://merchant.domain/webhooks/bridge"
  }'
{
  "success": true,
  "response": {
    "id": "f1bce4ae-89a6-4f95-8cf8-e245afddd6e1",
    "clientId": "merchant_unique_id",
    "advancedBalanceId": "f9565f73-eb15-4246-9954-169eeb9475fc",
    "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": "2024-12-26T08:21:53.360Z"
  }
}

Last updated