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,
"feeInTransferCurrency": 0
},
"estimatedNetworkGasFee": {
"fee": 1.1,
"feeCurrency": "USDT",
"feeInFiat": 1.1,
"feeInTransferCurrency": 0
},
"unitPrice": 0,
"customClientFee": {
"fee": 0.011,
"feeCurrency": "USDT",
"feeInFiat": 0.011,
"feeInTransferCurrency": 0
},
"transferType": "deposit",
"isCustomClientFeeProvided": false,
"amountWithCustomClientFee": "0",
"isFeeIncluded": false,
"amountToReceive": 0,
"amountToReceiveInFiat": 0,
"transferAmountToRequest": 0,
"isMaximumAmount": false,
"isBridging": false,
"totalEstimatedAmountPlusConversionFeesInFiat": 0,
"brokerType": "robinhood"
}
},
"status": "ok",
"message": "",
"errorHash": "69ede01c",
"teamCode": "P4",
"errorType": ""
}Contact Mesh to get client Secret
Contact Mesh to get client Id
The authentication token to send the asset from.
1The type of the integration to send the asset from.
robinhood, eTrade, alpaca, tdAmeritrade, weBull, stash, interactiveBrokers, public, coinbase, kraken, coinbasePro, cryptoCom, openSea, binanceUs, gemini, cryptocurrencyAddress, cryptocurrencyWallet, okCoin, bittrex, kuCoin, etoro, cexIo, binanceInternational, bitstamp, gateIo, acorns, okx, bitFlyer, coinlist, huobi, bitfinex, deFiWallet, krakenDirect, vanguard, binanceInternationalDirect, bitfinexDirect, bybit, paxos, coinbasePrime, btcTurkDirect, kuCoinDirect, okxOAuth, paribuDirect, robinhoodConnect, blockchainCom, bitsoDirect, binanceConnect, binanceOAuth, revolutConnect, binancePay, bybitDirect, paribuOAuth, payPalConnect, binanceTrDirect, coinbaseRamp, bybitDirectMobile, sandbox, cryptoComPay, bybitEuDirect, uphold, binancePayOnchain, sandboxCoinbase, bybitPay The network to send the asset over.
The symbol of the digital asset to send.
The target address to send the asset to.
Secondary address identifier for coins like XRP,XMR etc.
The amount to send, in crypto.
The amount to send, in fiat currency. Can be used alternatively to Amount.
Fiat currency that is to get corresponding converted fiat values of transfer and fee amounts. If not provided, defaults to USD.
Transaction ID Provided by client to track transaction in future calls.
128Indicates that the transfer is a bridging transfer.
The ID of the bridging direction configuration to use for this transfer.
Specifies if connected wallet supports batched transactions.
Specifies if all the fees are included in the amount to transfer.
OK
ok, serverFailure, permissionDenied, badRequest, notFound, conflict, tooManyRequest, locked, unavailableForLegalReasons A message generated by the API
User-friendly display message that can be presented to the end user
An error grouping hash from string components and caller information. Used by bugsnag on FE for correct error grouping
Opaque team code for error routing. Resolved from exception origin or caller file path via CODEOWNERS. Format: 2-character code (e.g., "7K", "M2"). Use for alerting/routing, not display.
Strictly-typed error type that is explaining the reason of an unsuccessful status of the operation. All possible error types are available in the documentation.
Show child attributes
Was this page helpful?
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,
"feeInTransferCurrency": 0
},
"estimatedNetworkGasFee": {
"fee": 1.1,
"feeCurrency": "USDT",
"feeInFiat": 1.1,
"feeInTransferCurrency": 0
},
"unitPrice": 0,
"customClientFee": {
"fee": 0.011,
"feeCurrency": "USDT",
"feeInFiat": 0.011,
"feeInTransferCurrency": 0
},
"transferType": "deposit",
"isCustomClientFeeProvided": false,
"amountWithCustomClientFee": "0",
"isFeeIncluded": false,
"amountToReceive": 0,
"amountToReceiveInFiat": 0,
"transferAmountToRequest": 0,
"isMaximumAmount": false,
"isBridging": false,
"totalEstimatedAmountPlusConversionFeesInFiat": 0,
"brokerType": "robinhood"
}
},
"status": "ok",
"message": "",
"errorHash": "69ede01c",
"teamCode": "P4",
"errorType": ""
}