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: 258e95ed-a3c2-4c85-bf6f-09f8b8f1c0be
addressToIdstringRequired

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

Example: 3d22de20-3fff-4025-bd1a-8a7333aed01b
feeTokenstringRequired

Commission Token

Example: U2FsdGVkX1/HkixIWxE4ktwUlqmkake0EghgpPQ3ZUY8beJ3jFfSsNTHc8CJ+HtT2l42Vf3aczU2EF1am/ziHL/6knjiJhGu0nsSFSBKtz3mMnT5kQll1AtBa8hEHMtYS9f8TwcvEm8F++6g+zYwyjhUzh0wEwRrl53SkRiGERO7YGYpQv2anTUYvVQbKogM+cXRK9yAbkdkNzhvdsT/yg==
webhookUrlstringOptional

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

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

Last updated