Search DEX suggestions
curl --request GET \
--url https://dev.backend.scan.biya.io/api/v1/dex/searchimport requests
url = "https://dev.backend.scan.biya.io/api/v1/dex/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.backend.scan.biya.io/api/v1/dex/search', 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://dev.backend.scan.biya.io/api/v1/dex/search",
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://dev.backend.scan.biya.io/api/v1/dex/search"
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://dev.backend.scan.biya.io/api/v1/dex/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.backend.scan.biya.io/api/v1/dex/search")
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{
"query": "<string>",
"transactions": [
{
"hash": "<string>",
"blockHeight": 123,
"blockActionIndex": 123,
"blockTime": 123,
"initiator": "<string>",
"type": "<string>"
}
],
"blocks": [
{
"height": 123,
"hash": "<string>",
"blockTime": 123,
"transactionCount": 123,
"actionCountComplete": true,
"proposer": "<string>"
}
],
"addresses": [
{
"address": "<string>"
}
],
"counts": {
"transactions": 123,
"blocks": 123,
"addresses": 123
},
"selectedCategory": "transactions",
"submitTarget": {
"kind": "transaction",
"hash": "<string>"
}
}{
"error": "block not found"
}{
"error": "block not found"
}{
"error": "block not found"
}DEX
Search DEX suggestions
Prefix suggestions, at most 10 per category. Exact values are preferred.
Use submitTarget after Enter; null means keep the suggestion panel.
Unknown query parameters are rejected.
GET
/
api
/
v1
/
dex
/
search
Search DEX suggestions
curl --request GET \
--url https://dev.backend.scan.biya.io/api/v1/dex/searchimport requests
url = "https://dev.backend.scan.biya.io/api/v1/dex/search"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.backend.scan.biya.io/api/v1/dex/search', 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://dev.backend.scan.biya.io/api/v1/dex/search",
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://dev.backend.scan.biya.io/api/v1/dex/search"
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://dev.backend.scan.biya.io/api/v1/dex/search")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.backend.scan.biya.io/api/v1/dex/search")
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{
"query": "<string>",
"transactions": [
{
"hash": "<string>",
"blockHeight": 123,
"blockActionIndex": 123,
"blockTime": 123,
"initiator": "<string>",
"type": "<string>"
}
],
"blocks": [
{
"height": 123,
"hash": "<string>",
"blockTime": 123,
"transactionCount": 123,
"actionCountComplete": true,
"proposer": "<string>"
}
],
"addresses": [
{
"address": "<string>"
}
],
"counts": {
"transactions": 123,
"blocks": 123,
"addresses": 123
},
"selectedCategory": "transactions",
"submitTarget": {
"kind": "transaction",
"hash": "<string>"
}
}{
"error": "block not found"
}{
"error": "block not found"
}{
"error": "block not found"
}Query Parameters
Literal search text. Max 256 bytes. Null bytes are rejected.
Maximum string length:
256Response
Suggestions
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
transactions, blocks, addresses - Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes