GetOrder
curl --request GET \
--url https://api.hular.dev/json/v1/orders/{quote_hash}import requests
url = "https://api.hular.dev/json/v1/orders/{quote_hash}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hular.dev/json/v1/orders/{quote_hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hular.dev/json/v1/orders/{quote_hash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hular.dev/json/v1/orders/{quote_hash}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hular.dev/json/v1/orders/{quote_hash}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hular.dev/json/v1/orders/{quote_hash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"quote": {
"quoteHash": "<string>",
"orderParams": {
"srcChain": "<string>",
"dstChain": "<string>",
"srcToken": "<string>",
"dstToken": "<string>",
"lockToken": "<string>",
"expectedAmountIn": "<string>",
"expectedAmountOut": "<string>",
"expectedLockAmount": "<string>",
"minLockAmount": "<string>",
"minAmountOut": "<string>",
"gasDrop": "<string>",
"recipient": "<string>",
"refundAddress": "<string>",
"referrers": [
{
"address": "<string>",
"bps": 1
}
],
"routerAddress": "<string>",
"refundFeeBridge": "<string>",
"random": "aSDinaTvuI8gbWludGxpZnk=",
"paramsVersion": 1
},
"feeBreakdown": {
"components": [
{
"name": "<string>",
"side": "<string>",
"usdMicros": "<string>",
"native": "<string>"
}
],
"dstTotalUsdMicros": "<string>",
"srcTotalUsdMicros": "<string>",
"dstGasNative": "<string>",
"srcGasNative": "<string>"
},
"createdAt": "<string>",
"gasless": true,
"tradeType": "<string>",
"expiresAt": "<string>",
"tokenPrices": [
{
"chain": "<string>",
"token": "<string>",
"usdMicros": "<string>"
}
],
"isGuaranteed": true
},
"order": {
"id": "<string>",
"quoteId": "<string>",
"state": "<string>",
"srcChain": "<string>",
"dstChain": "<string>",
"srcTx": "<string>",
"srcBlockNumber": "<string>",
"srcLogIndex": "<string>",
"srcConfirmations": "<string>",
"requiredConfirmations": "<string>",
"dstTxHash": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deepReorgDetectedAt": "<string>"
},
"deposit": {
"chain": "<string>",
"txHash": "<string>",
"logIndex": "<string>",
"blockNumber": "<string>",
"token": "<string>",
"amount": "<string>",
"fromAddress": "<string>",
"blockTime": "<string>",
"detectedAt": "<string>"
},
"fulfillment": {
"id": "<string>",
"dstTx": "<string>",
"status": "<string>",
"attempts": "<string>",
"lastError": "<string>",
"confirmedAt": "<string>",
"createdAt": "<string>",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"actualNativeCost": "<string>",
"filledAmount": "<string>"
},
"refund": {
"id": "<string>",
"srcTx": "<string>",
"status": "<string>",
"attempts": "<string>",
"lastError": "<string>",
"confirmedAt": "<string>",
"createdAt": "<string>",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"actualNativeCost": "<string>",
"refundedAmount": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{}
]
}BlinkApi
GetOrder
GET
/
v1
/
orders
/
{quote_hash}
GetOrder
curl --request GET \
--url https://api.hular.dev/json/v1/orders/{quote_hash}import requests
url = "https://api.hular.dev/json/v1/orders/{quote_hash}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hular.dev/json/v1/orders/{quote_hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hular.dev/json/v1/orders/{quote_hash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hular.dev/json/v1/orders/{quote_hash}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hular.dev/json/v1/orders/{quote_hash}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hular.dev/json/v1/orders/{quote_hash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"quote": {
"quoteHash": "<string>",
"orderParams": {
"srcChain": "<string>",
"dstChain": "<string>",
"srcToken": "<string>",
"dstToken": "<string>",
"lockToken": "<string>",
"expectedAmountIn": "<string>",
"expectedAmountOut": "<string>",
"expectedLockAmount": "<string>",
"minLockAmount": "<string>",
"minAmountOut": "<string>",
"gasDrop": "<string>",
"recipient": "<string>",
"refundAddress": "<string>",
"referrers": [
{
"address": "<string>",
"bps": 1
}
],
"routerAddress": "<string>",
"refundFeeBridge": "<string>",
"random": "aSDinaTvuI8gbWludGxpZnk=",
"paramsVersion": 1
},
"feeBreakdown": {
"components": [
{
"name": "<string>",
"side": "<string>",
"usdMicros": "<string>",
"native": "<string>"
}
],
"dstTotalUsdMicros": "<string>",
"srcTotalUsdMicros": "<string>",
"dstGasNative": "<string>",
"srcGasNative": "<string>"
},
"createdAt": "<string>",
"gasless": true,
"tradeType": "<string>",
"expiresAt": "<string>",
"tokenPrices": [
{
"chain": "<string>",
"token": "<string>",
"usdMicros": "<string>"
}
],
"isGuaranteed": true
},
"order": {
"id": "<string>",
"quoteId": "<string>",
"state": "<string>",
"srcChain": "<string>",
"dstChain": "<string>",
"srcTx": "<string>",
"srcBlockNumber": "<string>",
"srcLogIndex": "<string>",
"srcConfirmations": "<string>",
"requiredConfirmations": "<string>",
"dstTxHash": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"deepReorgDetectedAt": "<string>"
},
"deposit": {
"chain": "<string>",
"txHash": "<string>",
"logIndex": "<string>",
"blockNumber": "<string>",
"token": "<string>",
"amount": "<string>",
"fromAddress": "<string>",
"blockTime": "<string>",
"detectedAt": "<string>"
},
"fulfillment": {
"id": "<string>",
"dstTx": "<string>",
"status": "<string>",
"attempts": "<string>",
"lastError": "<string>",
"confirmedAt": "<string>",
"createdAt": "<string>",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"actualNativeCost": "<string>",
"filledAmount": "<string>"
},
"refund": {
"id": "<string>",
"srcTx": "<string>",
"status": "<string>",
"attempts": "<string>",
"lastError": "<string>",
"confirmedAt": "<string>",
"createdAt": "<string>",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"actualNativeCost": "<string>",
"refundedAmount": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{}
]
}Headers
Optional. Without a key the request is rate limited per client IP and quotes carry extra spread.