List Actions in a DEX block
curl --request GET \
--url https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactionsimport requests
url = "https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactions', 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/blocks/{height}/transactions",
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/blocks/{height}/transactions"
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/blocks/{height}/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactions")
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{
"transactions": [
{
"hash": "<string>",
"blockHeight": 123,
"blockActionIndex": 123,
"blockTime": 123,
"initiator": "<string>",
"type": "<string>"
}
],
"page": 123,
"pageSize": 20,
"totalPages": 123,
"matchedCount": 123,
"browsableCount": 123,
"indexedTotal": 123,
"chainTotal": 123,
"scopeLimit": 123,
"snapshotHeight": 123
}{
"error": "block not found"
}{
"error": "block not found"
}{
"error": "block not found"
}{
"error": "block not found"
}DEX
List Actions in a DEX block
All Actions in one finalized block. This collection is not capped at 10,000.
GET
/
api
/
v1
/
dex
/
blocks
/
{height}
/
transactions
List Actions in a DEX block
curl --request GET \
--url https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactionsimport requests
url = "https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactions', 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/blocks/{height}/transactions",
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/blocks/{height}/transactions"
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/blocks/{height}/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.backend.scan.biya.io/api/v1/dex/blocks/{height}/transactions")
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{
"transactions": [
{
"hash": "<string>",
"blockHeight": 123,
"blockActionIndex": 123,
"blockTime": 123,
"initiator": "<string>",
"type": "<string>"
}
],
"page": 123,
"pageSize": 20,
"totalPages": 123,
"matchedCount": 123,
"browsableCount": 123,
"indexedTotal": 123,
"chainTotal": 123,
"scopeLimit": 123,
"snapshotHeight": 123
}{
"error": "block not found"
}{
"error": "block not found"
}{
"error": "block not found"
}{
"error": "block not found"
}Path Parameters
Unsigned decimal block height.
Pattern:
^[0-9]+$Query Parameters
1-based page. Out-of-range values are clamped. Default 1.
Immutable upper height from a previous response. Omit to refresh.
Exact original protocol type. Unknown values return 400.
Case-insensitive literal substring of the canonical Action ID. % and _ are not wildcards.
Case-insensitive literal substring of the initiator address.