Transactions in a specific block
curl --request GET \
--url https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/transactionsimport requests
url = "https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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://api.hypedexer.com/elysium/testnet/blocks/{block_number}/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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{
"success": true,
"message": "<string>",
"data": [
{
"block_time": "2023-11-07T05:31:56Z",
"block_number": 123,
"tx_index": 123,
"tx_hash": "<string>",
"tx_type": "<string>",
"from_addr": "<string>",
"to_addr": "<string>",
"contract_address": "<string>",
"value_wei": "<string>",
"nonce": 123,
"gas_limit": 123,
"gas_used": 123,
"gas_used_for_l1": 123,
"effective_gas_price": 123,
"success": 123,
"input_len": 123,
"method_id": "<string>",
"is_system": 123,
"is_spam": 123
}
],
"execution_time_ms": 123,
"has_more": true
}Blocks
Transactions in a specific block
Transactions in a specific block
GET
/
elysium
/
testnet
/
blocks
/
{block_number}
/
transactions
Transactions in a specific block
curl --request GET \
--url https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/transactionsimport requests
url = "https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/transactions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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://api.hypedexer.com/elysium/testnet/blocks/{block_number}/transactions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/elysium/testnet/blocks/{block_number}/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{
"success": true,
"message": "<string>",
"data": [
{
"block_time": "2023-11-07T05:31:56Z",
"block_number": 123,
"tx_index": 123,
"tx_hash": "<string>",
"tx_type": "<string>",
"from_addr": "<string>",
"to_addr": "<string>",
"contract_address": "<string>",
"value_wei": "<string>",
"nonce": 123,
"gas_limit": 123,
"gas_used": 123,
"gas_used_for_l1": 123,
"effective_gas_price": 123,
"success": 123,
"input_len": 123,
"method_id": "<string>",
"is_system": 123,
"is_spam": 123
}
],
"execution_time_ms": 123,
"has_more": true
}