Notify NEAR deposit
Endpoint Details
Notify Deposit
Notify NEAR 1Click API about completed deposits for faster swap processing
POST
Notify NEAR deposit
Overview
The notify-deposit endpoint notifies the NEAR 1Click API about a completed deposit transaction. This allows NEAR to preemptively verify the deposit, speeding up swap processing.This endpoint is specifically for NEAR protocol swaps. It’s optional but recommended for faster swap execution.
Endpoint
Request
Headers
Body
Parameters
Response
Success (200)
Error Responses
- 400 Bad Request
- 4xx/5xx from NEAR
- 500 Internal Error
Missing or invalid parameters:Or invalid format:
Example
When to Use
Call this endpoint after broadcasting a deposit transaction for a NEAR-routed swap:1
Get Quote
Request a quote with NEAR as the destination or intermediary
2
Generate Deposit
Call
/leokit/deposit to get the deposit address and transaction3
Sign & Broadcast
Sign and broadcast the transaction to the source chain
4
Notify Deposit
Call this endpoint with the transaction hash and deposit address
5
Track Status
Monitor the swap via
/leokit/statusNotes
- This endpoint forwards requests to NEAR’s 1Click API at
https://1click.chaindefuser.com/v0/deposit/submit - The timeout for NEAR API calls is 10 seconds
- Notification is optional but can significantly speed up swap processing
- Only applicable for swaps routed through the NEAR protocol
Authorizations
Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4
Body
application/json