---
title: "Initiate on-ramp with permit"
method: POST
path: "/api/v1/onramp-with-permit"
tags: ["External Wallet Access Mode"]
---

# Initiate on-ramp with permit

`POST /api/v1/onramp-with-permit`

On-ramp is not yet generally available; this endpoint is documented for preview only. Submits the on-ramp transaction with an EIP-2612 permit signature. Requires a valid cached quote (quoteId binding) and passed liveness when required; mismatched or expired quotes are rejected.

## Headers

- `tokenId` string, required
- `network` string, required
- `sign` string, required
- `hash` string, required
- `deadline` string, required

## Request body

- object
  - `quoteId` string, required — quoteId from the on-ramp quote.
  - `chainId` string, required — Source chain ID (CAIP-2).
  - `tokenIn` string, required — Fiat token contract address.
  - `amountIn` string, required — Input amount in smallest units; must match the cached quote.
  - `dstChainId` string — Destination chain ID (CAIP-2).
  - `dstAggregator` string — best.to from the quote.
  - `dstTokenOut` string — Destination token address.
  - `dstSwapCalldata` string — best.swapCalldata from the quote.
  - `dstMinAmountOut` string — best.minAmountOut from the quote.
  - `permitDeadline` integer, required — Unix seconds until which the permit is valid.
  - `permitV` integer, required — EIP-2612 signature component v.
  - `permitR` string, required — EIP-2612 signature component r.
  - `permitS` string, required — EIP-2612 signature component s.

## Response `200`

Response envelope. For the user API, retCode 0 means success; for the partner API, code 0 means success. Business rejections return HTTP 200 with a non-zero code.

- EwaEnvelope — Standard response envelope for the user API (api.ur.app).
  - `retCode` integer, required — 0 on success; non-zero indicates failure.
  - `retMsg` string, required — Human-readable message; error details when retCode is non-zero.
  - `result` unknown
  - `timeNow` integer — Server timestamp in milliseconds.

---

[API](https://skmtc.net/ur/apis/ur-api.md) · [All operations](https://skmtc.net/ur/apis/ur-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ur/ur-api/revisions/087dcf516ce2/schema)
