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: be5196d9-4e99-4d9a-8a2a-b8c8b53affb2
addressToIdstringRequired

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

Example: 6b811d45-33d9-4b82-8690-8605a8b2c6f1
feeTokenstringRequired

Commission Token

Example: U2FsdGVkX19ruW7bkHxgTkyAeazA6qqA086KcL6Vq+c8L+ym/yYOoE3LRmT5j2rmVy6hfE+oM+WJRQ4YpWY/TK6V1td3AZwEprmkFCtN9NIl2h9sFbvlTMlfA/UJFdCoS4qAwDteWVUr4jx/Jp14EjcSXekZ+1mCmWjb25eV6GLVs+4/Q7L8+FyYcVeOWYZEkFiixS6f4hGiRqqKsmh+rA==
webhookUrlstringOptional

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

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

Last updated