Skip to main content
POST
/
api
/
v1
/
actions
/
deposit
/
quote
Build a deposit quote with approval requirements and vault calldata.
curl --request POST \
  --url https://shlp-web-production.up.railway.app/api/v1/actions/deposit/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "amountRaw": "1000000",
  "account": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
  "receiver": "0xB4a1168b8Ea05aF1536aC990F4940e50E0Be17f1",
  "slippageBps": 50
}
'
{
  "success": true,
  "data": {
    "action": "<string>",
    "tx": {
      "to": "<string>",
      "data": "<string>",
      "value": "0",
      "chainId": 999
    },
    "account": "<string>",
    "receiver": "<string>",
    "quoteBlock": "<string>",
    "requirements": [
      {
        "type": "approval",
        "token": "<string>",
        "spender": "<string>",
        "amount": {
          "raw": "1000000",
          "decimals": 6,
          "formatted": "1.000000"
        },
        "tx": {
          "to": "<string>",
          "data": "<string>",
          "value": "0",
          "chainId": 999
        }
      }
    ],
    "expected": {
      "assets": {
        "raw": "1000000",
        "decimals": 6,
        "formatted": "1.000000"
      },
      "shares": {
        "raw": "1000000",
        "decimals": 6,
        "formatted": "1.000000"
      },
      "minShares": {
        "raw": "1000000",
        "decimals": 6,
        "formatted": "1.000000"
      }
    },
    "slippageBps": 123,
    "expiresAt": "2023-11-07T05:31:56Z"
  },
  "meta": {
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
amountRaw
string
required

USDC base units. Must be at least 1000000 for native HyperEVM deposits.

Example:

"1000000"

account
string
required
Pattern: ^0x[a-fA-F0-9]{40}$
receiver
string
Pattern: ^0x[a-fA-F0-9]{40}$
slippageBps
integer
Required range: 0 <= x <= 2000

Response

OK

success
boolean
required
data
object
required
meta
object
required