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": {
"quote_hash": "<string>",
"order_params": {
"src_chain": "<string>",
"dst_chain": "<string>",
"src_token": "<string>",
"dst_token": "<string>",
"bridge_token_src": "<string>",
"bridge_token_dst": "<string>",
"amount_in": "<string>",
"amount_out": "<string>",
"bridge_amount": "<string>",
"min_bridge_out": "<string>",
"min_amount_out": "<string>",
"gas_drop": "<string>",
"recipient": "<string>",
"refund_address": "<string>",
"refund_token": "<string>",
"referrers": [
{
"address": "<string>",
"bps": 1
}
],
"slippage_bps": 1,
"src_slippage_bps": 1,
"router_address": "<string>",
"refund_fee_bridge": "<string>",
"refund_fee_native": "<string>",
"nonce": "aSDinaTvuI8gbWludGxpZnk=",
"params_version": 1
},
"fee_breakdown": {
"components": [
{
"name": "<string>",
"side": "<string>",
"usd_micros": "<string>",
"native": "<string>"
}
],
"dst_total_usd_micros": "<string>",
"src_total_usd_micros": "<string>",
"dst_gas_native": "<string>",
"src_gas_native": "<string>"
},
"created_at": "<string>",
"gasless": true,
"trade_type": "<string>",
"deposit_deadline": "<string>",
"token_prices": [
{
"chain": "<string>",
"token": "<string>",
"usd_micros": "<string>"
}
]
},
"order": {
"id": "<string>",
"quote_id": "<string>",
"state": "<string>",
"src_chain": "<string>",
"dst_chain": "<string>",
"src_tx": "<string>",
"src_block_number": "<string>",
"src_log_index": "<string>",
"src_confirmations": "<string>",
"required_confirmations": "<string>",
"dst_tx_hash": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"deposit": {
"chain": "<string>",
"tx_hash": "<string>",
"log_index": "<string>",
"block_number": "<string>",
"token": "<string>",
"amount": "<string>",
"from_address": "<string>",
"block_time": "<string>",
"detected_at": "<string>"
},
"fulfillment": {
"id": "<string>",
"dst_tx": "<string>",
"status": "<string>",
"attempts": "<string>",
"last_error": "<string>",
"confirmed_at": "<string>",
"created_at": "<string>",
"gas_used": "<string>",
"effective_gas_price": "<string>",
"actual_native_cost": "<string>",
"filled_amount": "<string>"
},
"refund": {
"id": "<string>",
"src_tx": "<string>",
"status": "<string>",
"attempts": "<string>",
"last_error": "<string>",
"confirmed_at": "<string>",
"created_at": "<string>",
"gas_used": "<string>",
"effective_gas_price": "<string>",
"actual_native_cost": "<string>",
"refunded_amount": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{}
]
}HularApi
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": {
"quote_hash": "<string>",
"order_params": {
"src_chain": "<string>",
"dst_chain": "<string>",
"src_token": "<string>",
"dst_token": "<string>",
"bridge_token_src": "<string>",
"bridge_token_dst": "<string>",
"amount_in": "<string>",
"amount_out": "<string>",
"bridge_amount": "<string>",
"min_bridge_out": "<string>",
"min_amount_out": "<string>",
"gas_drop": "<string>",
"recipient": "<string>",
"refund_address": "<string>",
"refund_token": "<string>",
"referrers": [
{
"address": "<string>",
"bps": 1
}
],
"slippage_bps": 1,
"src_slippage_bps": 1,
"router_address": "<string>",
"refund_fee_bridge": "<string>",
"refund_fee_native": "<string>",
"nonce": "aSDinaTvuI8gbWludGxpZnk=",
"params_version": 1
},
"fee_breakdown": {
"components": [
{
"name": "<string>",
"side": "<string>",
"usd_micros": "<string>",
"native": "<string>"
}
],
"dst_total_usd_micros": "<string>",
"src_total_usd_micros": "<string>",
"dst_gas_native": "<string>",
"src_gas_native": "<string>"
},
"created_at": "<string>",
"gasless": true,
"trade_type": "<string>",
"deposit_deadline": "<string>",
"token_prices": [
{
"chain": "<string>",
"token": "<string>",
"usd_micros": "<string>"
}
]
},
"order": {
"id": "<string>",
"quote_id": "<string>",
"state": "<string>",
"src_chain": "<string>",
"dst_chain": "<string>",
"src_tx": "<string>",
"src_block_number": "<string>",
"src_log_index": "<string>",
"src_confirmations": "<string>",
"required_confirmations": "<string>",
"dst_tx_hash": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
},
"deposit": {
"chain": "<string>",
"tx_hash": "<string>",
"log_index": "<string>",
"block_number": "<string>",
"token": "<string>",
"amount": "<string>",
"from_address": "<string>",
"block_time": "<string>",
"detected_at": "<string>"
},
"fulfillment": {
"id": "<string>",
"dst_tx": "<string>",
"status": "<string>",
"attempts": "<string>",
"last_error": "<string>",
"confirmed_at": "<string>",
"created_at": "<string>",
"gas_used": "<string>",
"effective_gas_price": "<string>",
"actual_native_cost": "<string>",
"filled_amount": "<string>"
},
"refund": {
"id": "<string>",
"src_tx": "<string>",
"status": "<string>",
"attempts": "<string>",
"last_error": "<string>",
"confirmed_at": "<string>",
"created_at": "<string>",
"gas_used": "<string>",
"effective_gas_price": "<string>",
"actual_native_cost": "<string>",
"refunded_amount": "<string>"
}
}{
"code": 123,
"message": "<string>",
"details": [
{}
]
}Headers
Optional. Without a key the request is rate limited per client IP and quotes carry extra spread.