curl --request POST \
--url https://integration-api.meshconnect.com/api/v1/transfers/managed/preview \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '{
"fromAuthToken": "Secret authentication token",
"fromType": "robinhood",
"networkId": "7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",
"symbol": "USDT",
"toAddress": "0x9Bf6207f8A3f4278E0C989527015deFe10e5D7c6",
"amount": 10
}'
{
"content": {
"status": "succeeded",
"previewResult": {
"previewId": "29b185b1-2305-40fb-a0e2-929d61451568",
"previewExpiresIn": 300,
"fromAddress": "0x9Bf6207f8A3f4278E0C989527015deFe10e5D7c6",
"toAddress": "0x326a8825472bb0f4719998e708a1eeeb4473ed1b",
"symbol": "USDT",
"amount": 10,
"amountInFiat": 10,
"totalEstimatedAmount": 11.21,
"totalEstimatedAmountInFiat": 11.21,
"networkId": "e3c7fdd8-b1fc-4e51-85ae-bb276e075611",
"institutionTransferFee": {
"fee": 0,
"feeCurrency": "USDT",
"feeInFiat": 0
},
"estimatedNetworkGasFee": {
"fee": 1.1,
"feeCurrency": "USDT",
"feeInFiat": 1.1
},
"unitPrice": 0,
"customClientFee": {
"fee": 0.011,
"feeCurrency": "USDT",
"feeInFiat": 0.011
},
"transferType": "deposit",
"isCustomClientFeeProvided": false,
"amountWithCustomClientFee": "0",
"isFeeIncluded": false,
"amountToReceive": 0,
"amountToReceiveInFiat": 0,
"transferAmountToRequest": 0,
"isMaximumAmount": false
}
},
"status": "ok",
"message": "",
"errorType": ""
}
Validate and preview the transfer.
Validates the transfer, calculates the relevant amount in crypto if requested amount was in fiat and updates the current network fee values.
This endpoint uses the NetworkId
field to specify which network will be used to perform the transfer. The target NetworkId
should be selected after configuring the transfer using /configure
endpoint.
Returns the PreviewId
value that can be used to commit the transfer.
curl --request POST \
--url https://integration-api.meshconnect.com/api/v1/transfers/managed/preview \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '{
"fromAuthToken": "Secret authentication token",
"fromType": "robinhood",
"networkId": "7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",
"symbol": "USDT",
"toAddress": "0x9Bf6207f8A3f4278E0C989527015deFe10e5D7c6",
"amount": 10
}'
{
"content": {
"status": "succeeded",
"previewResult": {
"previewId": "29b185b1-2305-40fb-a0e2-929d61451568",
"previewExpiresIn": 300,
"fromAddress": "0x9Bf6207f8A3f4278E0C989527015deFe10e5D7c6",
"toAddress": "0x326a8825472bb0f4719998e708a1eeeb4473ed1b",
"symbol": "USDT",
"amount": 10,
"amountInFiat": 10,
"totalEstimatedAmount": 11.21,
"totalEstimatedAmountInFiat": 11.21,
"networkId": "e3c7fdd8-b1fc-4e51-85ae-bb276e075611",
"institutionTransferFee": {
"fee": 0,
"feeCurrency": "USDT",
"feeInFiat": 0
},
"estimatedNetworkGasFee": {
"fee": 1.1,
"feeCurrency": "USDT",
"feeInFiat": 1.1
},
"unitPrice": 0,
"customClientFee": {
"fee": 0.011,
"feeCurrency": "USDT",
"feeInFiat": 0.011
},
"transferType": "deposit",
"isCustomClientFeeProvided": false,
"amountWithCustomClientFee": "0",
"isFeeIncluded": false,
"amountToReceive": 0,
"amountToReceiveInFiat": 0,
"transferAmountToRequest": 0,
"isMaximumAmount": false
}
},
"status": "ok",
"message": "",
"errorType": ""
}
Contact Mesh to get client Secret
Contact Mesh to get client Id
OK
The response is of type object
.
Was this page helpful?