Minima Docs
  • Minima DeFi Router
  • Quick Start
  • Supported Protocols and Functions
  • Swaps
    • Good to know
    • Query a Swap
    • Exclude Protocols from Route
    • Execute a Swap
  • Reference
    • API Reference
      • Querying a Swap Route
      • Deposit
      • Withdraw
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Deposit

Query a deposit path from one token to an LP position

PreviousQuerying a Swap RouteNextWithdraw

Last updated 2 years ago

get

Get a swap route from one token to another

Authorizations
Path parameters
tokenInstring · 20 byte EVM addressRequired

Input token

tokenOutstring · 20 byte EVM addressRequired

Target LP or Gauge token

inputAmountstring · Raw uint256 valueRequired

Total amount of input token to be traded

deadlineMsinteger · Unix SecondsOptional

Deadline for quote, defaults to 5 minutes

chainIdinteger · enumOptional

Chain to perform swap on, defaults to 42220 (CELO). More chains coming soon.

Possible values:
Responses
200
Path found Successfully
application/json
get
GET /earn/deposit HTTP/1.1
Host: router.nodefinance.org
X-API-KEY: YOUR_API_KEY
Accept: */*
200

Path found Successfully

{
  "expectedOut": "text",
  "routerAddress": "text",
  "oneClickFarmAddress": "text",
  "underlyingRoutes": [
    {
      "path": [
        "text"
      ],
      "pairs": [
        "text"
      ],
      "extras": [
        "text"
      ],
      "inputAmount": "text",
      "expectedOutputAmount": "text",
      "deadline": 1,
      "partner": 1,
      "sig": "text"
    }
  ]
}