API WEB 2.0
  • Overview
  • Step-by-step guide
    • Basics
    • Request to create a transaction
    • Transfer initialization request without private key
    • Transfer initialization request with private key
    • Transaction status request
    • Request for obtaining the list of supported networks and tokens
    • Request for obtaining the list of supported token pairs
    • Transaction Data Signature Logic
    • Private key encryption logic
Powered by GitBook
On this page
  1. Step-by-step guide

Transfer initialization request without private key

POST /1.0/client/send-sign-transaction. Accepts the following parameters:

Parametrs
Description

id (string, required)

Transaction ID

approveTransactionData (string, not required)

Approve transaction data

transferTransactionData (string, required)

Transfer transaction data signed with the private key

With this request, the transfer is initialized in the departure network.

An example of a successful response (HTTP Code 200):

{
   "data": { // transfer data
       "id": "c9928e0f-0db6-4bfa-96e7-30ca994beac2", // transaction ID
       "approveHash": "0x9887395a0537d84da3d8644e767555a9b524b33757de59a19cef5184c0d98ce8", // hash of token transaction confirmation (if a native token is sent - this field is empty)
       "transferHash": "0x41095a6c033d9c08da1338c5ec101ab82e2123b441b9df25df821ee14e2c8624", // hash of transfer transaction data 
   },
   "success": true // request success flag
}

Example of sent data validation error (HTTP code 400):

{
   "success": false, // request success flag
   "message": "Validation error", // error message
   "errors": [ // list of errors
       {
           "field": "id", // request field, the validation of which ended with an error
           "messages": [ // validation error messages
               "Field are required"
           ]
       }
   ]
}

Example of a common request error (HTTP code 400):

{
   "success": false, // request success flag
   "message": "Not enough balance" // error text
}

Example of server error (HTTP code 500):

{
   "success": false, // request success flag
   "message": "Internal Server Error" // error text
}
PreviousRequest to create a transactionNextTransfer initialization request with private key

Last updated 2 years ago