Skip to main content
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

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 transaction
3

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/status

Notes

  • 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

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Body

application/json

Request body for /notify-deposit. Used to notify NEAR 1Click API about completed deposits.

txHash
string
required

Transaction hash (hex string starting with 0x).

depositAddress
string
required

Deposit address from NEAR aggregator quote (hex string starting with 0x).

Response

Deposit notification sent successfully

Response from /notify-deposit on success.

success
boolean
required
message
string
required
status
string

Status from NEAR 1Click API.

correlationId
string

Correlation ID from NEAR 1Click API.