Skip to Content
LandedFXDocs

Deposit from any token on any chain

POST
/api/v1/vaults/{id}/deposit-routes

Pay with USDT on Tron or Ethereum, USDC on Solana or Arbitrum, ETH and more. Returns the steps to sign on the origin chain: they swap, bridge and deposit exactly amount USDC into the vault in one go, with Relay paying gas on Base.

Path Parameters

id*string

Request Body

application/json
  1. body
from*string

What the user pays with: a swap asset key from GET /swap/assets, e.g. USDT:tron, USDC:sol, ETH:eth.

account*string

The wallet paying, on the origin chain. Refunds go back here.

amount*string

USDC to deposit into the vault. The user pays whatever that costs in from.

receiver?string

Base address that receives the vault shares. Defaults to account when it is an EVM address.

Response Body

No route right now, or the vault cannot take that much

application/json
  1. response
code*number

HTTP status code

message*string

Human-readable message

data?

Response payload

metadata?
errors?array<string>

Validation errors, when the request was rejected

Example Request
curl -X POST 'https://api.landedfx.com/api/v1/vaults/string/deposit-routes' \  -H 'Content-Type: application/json' \  -d '{  "from": "USDT:tron",  "account": "TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL",  "amount": "250"}'
Example Response422
{  "data": {},  "metadata": {    "page": 1,    "limit": 20,    "totalDocs": 42,    "prevPage": null,    "nextPage": 2,    "totalPages": 3  },  "errors": [    "string"  ],  "code": 422,  "message": "No route right now, or the vault cannot take that much"}