Send coins
This endpoint facilitates the transfer of coins from one wallet to another. It orchestrates the transaction process of transferring coins between wallets.
After confirming the phone number or after user authorization, you will receive an access_token. You need to enter this access_token in the
Token
field.
The body parameters
The API endpoint allows specifying only the recipient wallet address
or phone number
for conducting the transfer.
Request Sample: cURL
At the time of sending the request, the curl command should be as follows:
curl --request POST \
--url https://api.vault.sandbox.testessential.net/v1/wallet/send \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI3NzQ3MmM5YS1lMmY3LTRhMWEtODFlNC03N2MxNTFiNzg1MTciLCJleHAiOjE3MTEwMzgzMjUsImlhdCI6MTcxMDk1MTkyNX0.b8ATi6SSiR7OJY0Mtx74YijSECtSXUwQ7Jbv3hL6eMU' \
--header 'content-type: application/json' \
--data '
{
"fee": "16.714556",
"amount": "10",
"address": "0x9A6034c84cd431409Ac1a35278c7Da36FfDa53E5",
"currency": "USDT"
}
'
After entering the phone number and password into the respective fields, you need to click the Try It!
button.
This action initiates the process of sending data to the server and receiving a response from the API using the provided credentials.
Response Example
Successful execution of the request indicates that the operation was successful.
{
"txId": "5d8a5f9b-ea0a-4e0a-b293-d905310e7042",
"sequenceId": "5d8a5f9b-ea0a-4e0a-b293-d905310e7042",
"fee": 16.725028,
"internal": false,
"sendConfirmation": false
}
Updated 7 months ago