Creation of a cross-chain exchange

The method allows you to create a cross-chain exchange. Cross-chain exchange allows you to exchange one asset for another

Creation of a cross-chain exchange

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
clientIdstringOptional

Unique exchange identifier in the merchant system (to prevent duplicate requests)

Example: merchant_unique_id
addressFromIdstringRequired

Identifier of the outgoing address from which the specified amount will be debited

Example: bd0b179d-6ae3-4516-bd85-243a82b2a87a
addressToIdstringRequired

Identifier of the destination address where the coins will be credited after the swap

Example: 1de0bedc-26e6-4b83-bd89-f307b6f80f7a
feeTokenstringRequired

Commission Token

Example: U2FsdGVkX1/YV+QnxA8TgLWJjfvQq84aWf0PEXGyftGjOa5MYop5FQ4p7D08CN6WL6p1pZMw2n6KZ5RxuTyzbC74vrUkewPBQFJIbZ3J5VpMb3j1qQDkdFVnF++C73c4K4trxS/hmtZRvgbEhPL+4HCast15E3waMCsu2Mfk3c0qnXa+NVYiG3g0fuoUjupWcdsgv4eJQA/M9qocf2O+wQ==
webhookUrlstringOptional

URL address for notifying about the change in the status of the swap operation

Example: https://merchant.domain/webhooks/swap
Responses
post
/api-gateway/swaps/create
200Success

Last updated