API
이 웹사이트를 뒷받침하는 공개 API입니다. 기계 판독이 가능한 전체 명세는 OpenAPI 3.1 형식으로 https://api.noveraswap.com/v1/openapi.json에서 확인할 수 있습니다.
연동 가이드
링크부터 완전한 서버 연동까지, 사용자에게 프라이빗 스왑을 제공하는 세 가지 방법입니다.
추천 링크
제휴 페이지에서 코드를 받으세요. 함께 aff_로 시작하는 대시보드 키가 발급됩니다. 한 번만 표시되므로 안전하게 보관하세요.
YOURCODE를 본인 코드로 바꿔 https://noveraswap.com/?ref=YOURCODE을(를) 공유하거나, 홈페이지나 스왑 페이지(/swap/…) 주소에 ?ref=YOURCODE를 붙이세요. 코드는 스왑 양식이 있는 페이지에서 작동합니다.
링크를 통해 생성된 모든 주문에 대해, 서비스가 해당 주문으로 실제로 받은 금액의 일부를 받게 됩니다. 합계만 볼 수 있으며, 추천한 사람에 대한 정보는 절대 볼 수 없습니다.
수익은 대시보드에서 지급을 요청한 뒤 USDC로 지급됩니다. 대부분의 지급은 몇 분 안에 자동으로 전송되며, 가끔 저희 팀의 처리를 기다리는 경우 며칠이 걸릴 수 있습니다.
위젯
iframe으로 스왑 양식을 페이지에 삽입하세요. 방문자는 프레임 안의 저희 페이지에서 스왑하므로, 고객님의 사이트가 방문자의 코인이나 주소를 다룰 일은 없습니다.
<iframe
src="https://noveraswap.com/widget?from=usdt-eth&to=usdc-base&ref=YOURCODE&theme=auto"
title="NoveraSwap"
width="420"
height="680"
allow="clipboard-write"
style="border:0"
loading="lazy"
></iframe>쿼리 매개변수(모두 선택 사항):
from— 보낼 자산, 이 사이트에서의 ID로 지정(예: usdt-eth)to— 받을 자산, ID로 지정amount— 보낼 금액, 소수점 구분 기호로 점 사용mode— private 또는 standardref— 위젯에서 생성된 주문이 고객님의 실적으로 집계되도록 하는 제휴 코드theme— dark, light 또는 auto(방문자의 시스템 설정을 따름)lockTo— 1이면 받을 자산을 고정(to 필요)
위젯은 postMessage로 진행 상황을 페이지에 알립니다. novera:order_created는 주문 ID를, novera:phase_changed는 주문 ID와 공개 단계를 전달합니다. 메시지를 사용하기 전에 이 사이트에서 온 것인지(event.origin) 확인하세요.
window.addEventListener('message', (event) => {
if (event.origin !== 'https://noveraswap.com') return;
if (event.data?.type === 'novera:order_created') {
// event.data.orderId
}
if (event.data?.type === 'novera:phase_changed') {
// event.data.orderId, event.data.phase
}
});서버 간 API
제휴 대시보드에서 키를 만드세요(먼저 제휴 페이지에서 코드를 받으세요). 이 키로 만든 모든 주문은 추천 링크로 들어온 주문과 똑같이 제휴 수익을 가져다줍니다. 키를 다시 만들면 이전 키는 즉시 교체됩니다.
nsk_로 시작하는 연동 파트너 키를 X-Api-Key 헤더에 담아 자체 서버에서 API를 호출하세요. 키를 브라우저에서 절대 사용하지 마세요. Origin 헤더가 있는 요청은 거부됩니다.
요청 한도는 키별로 적용됩니다. 키는 비밀번호처럼 서버에만 보관하세요. 키를 가진 사람은 누구나 고객님 이름으로 주문을 만들 수 있습니다.
새 키는 키가 없는 방문자와 같은 제한(가끔 필요한 작업 증명 포함)으로 시작하며, 입금을 기다리는 주문은 몇 개만 보유할 수 있습니다. 주문 일부가 결제되면 전체 제한이 적용됩니다. 주문이 거의 결제되지 않는 키는 차단되며, 지원팀이 다시 활성화할 수 있습니다.
전체 참조 문서는 https://api.noveraswap.com/v1/openapi.json에 있는 OpenAPI 문서입니다.
연동 파트너는 자체 키를 사용해 서버 간 통신으로 같은 API를 이용합니다. 브라우저에서는 연동 파트너 키를 절대 사용할 수 없습니다.
Affiliates
| 엔드포인트 | 기능 |
|---|---|
| POST/v1/affiliates | Sign up as an affiliate and reserve a referral code. |
| GET/v1/affiliates/me | The affiliate account and its totals (aggregates only). |
| PATCH/v1/affiliates/me | Change the payout address or contact. |
| DELETE/v1/affiliates/me/api-key | Revoke the affiliate's own server-to-server API key. |
| POST/v1/affiliates/me/api-key | Create (or replace) the affiliate's own server-to-server API key. |
| POST/v1/affiliates/me/key | Replace the affiliate key. |
| POST/v1/affiliates/me/payout-request | Request a payout of the whole withdrawable balance. |
| POST/v1/affiliates/me/recovery-code | Make a new recovery code. |
| DELETE/v1/affiliates/me/recovery-email | Remove the recovery email. |
| POST/v1/affiliates/me/recovery-email | Add or replace the optional recovery email. |
| POST/v1/affiliates/me/recovery-email/verify | Confirm the recovery email with the code mailed to it. |
| GET/v1/affiliates/me/statements | Statements and payout requests with their status, newest first. |
| GET/v1/affiliates/me/stats | Referred orders and earnings per day, week or month (aggregates only). |
| GET/v1/affiliates/me/tickets | The affiliate's support requests, newest first. |
| POST/v1/affiliates/me/tickets | Open a support request about the affiliate account. |
| GET/v1/affiliates/me/tickets/{ticketId} | One support request and its thread. |
| POST/v1/affiliates/me/tickets/{ticketId}/close | Close a support request. |
| POST/v1/affiliates/me/tickets/{ticketId}/messages | Write to a support request. |
| POST/v1/affiliates/recover | Ask for a key recovery code (no key). |
| POST/v1/affiliates/recover/confirm | Exchange a recovery code for a new key (no key). |
Catalogue
| 엔드포인트 | 기능 |
|---|---|
| GET/v1/assets | Enabled assets with their networks and the pricing notice copy. |
| GET/v1/pairs/limits | Minimum and maximum input amount for a pair. |
Utilities
| 엔드포인트 | 기능 |
|---|---|
| GET/v1/go/{id} | Redirect to the sponsor, counting the click. |
| GET/v1/openapi.json | This OpenAPI 3.1 document. |
| GET/v1/pow | Proof-of-work challenge parameters for `X-Novera-PoW`. |
| GET/v1/sponsors | The sponsored card for a slot, if any. |
| POST/v1/sponsors/{id}/impression | Count one impression of a placement. |
| GET/v1/status | Service status, completion statistics, incidents and the signing-key manifest. |
| POST/v1/telemetry/client-errors | Opt-in client error reports. |
| POST/v1/validate-address | Check an address for an asset, locally. |
Health
| 엔드포인트 | 기능 |
|---|---|
| GET/v1/health | Liveness; no dependencies. |
| GET/v1/health/ready | Readiness: `200` when ready (possibly degraded), `503` otherwise. |
Orders
| 엔드포인트 | 기능 |
|---|---|
| POST/v1/orders | Create an order from a quote. |
| GET/v1/orders/{publicId} | Order status: minimal without the secret, full with it. |
| POST/v1/orders/{publicId}/action | Answer the form in `actionRequired`. |
| POST/v1/orders/{publicId}/cancel | Cancel an order that is still waiting for its deposit. |
| DELETE/v1/orders/{publicId}/details | Delete the order details now instead of at the automatic deletion. |
| GET/v1/orders/{publicId}/events | The full public timeline, with transaction hashes where present. |
| POST/v1/orders/{publicId}/notifications | Opt into status notifications by email or Telegram. |
| DELETE/v1/orders/{publicId}/notifications/{channel} | Remove a notification channel. |
| POST/v1/orders/{publicId}/refund-address | Register or replace the refund address. |
Support
| 엔드포인트 | 기능 |
|---|---|
| GET/v1/orders/{publicId}/tickets | Every ticket on the order with its thread. |
| POST/v1/orders/{publicId}/tickets | Open a support ticket on an order. |
| GET/v1/orders/{publicId}/tickets/{ticketId} | One ticket and its thread. |
| POST/v1/orders/{publicId}/tickets/{ticketId}/close | Close a ticket and release its hold on the order details. |
| POST/v1/orders/{publicId}/tickets/{ticketId}/messages | Add a message to a ticket. |
| POST/v1/support/requests | Open a support request without an order. |
| GET/v1/support/requests/{ticketId} | A request without an order and its thread. |
| POST/v1/support/requests/{ticketId}/close | Close a request without an order. |
| POST/v1/support/requests/{ticketId}/messages | Add a message to a request without an order. |
Quotes
| 엔드포인트 | 기능 |
|---|---|
| POST/v1/quotes | Quote a swap. |