Get wallet transactions summary
curl --request GET \
--url https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summaryimport requests
url = "https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary', 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://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary",
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://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary"
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://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary")
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{
"address": "<string>",
"transactions": {
"totalCount": 123,
"earliestTransaction": {
"block_hash": "<string>",
"block_number": 123,
"block_timestamp": "2023-11-07T05:31:56Z",
"from_address": "<string>",
"gas": "<string>",
"gas_price": "<string>",
"input": "<string>",
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>",
"nonce": "<string>",
"to_address": "<string>",
"transaction_hash": "<string>",
"transaction_index": 123,
"transaction_type": 123,
"value": "<string>",
"contract_address": "<string>",
"cumulative_gas_used": "<string>",
"effective_gas_price": "<string>",
"gas_used": "<string>",
"l1_fee": "<string>",
"l1_fee_scalar": "<string>",
"l1_gas_price": "<string>",
"l1_gas_used": "<string>",
"status": 123
},
"latestTransaction": {
"block_hash": "<string>",
"block_number": 123,
"block_timestamp": "2023-11-07T05:31:56Z",
"from_address": "<string>",
"gas": "<string>",
"gas_price": "<string>",
"input": "<string>",
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>",
"nonce": "<string>",
"to_address": "<string>",
"transaction_hash": "<string>",
"transaction_index": 123,
"transaction_type": 123,
"value": "<string>",
"contract_address": "<string>",
"cumulative_gas_used": "<string>",
"effective_gas_price": "<string>",
"gas_used": "<string>",
"l1_fee": "<string>",
"l1_fee_scalar": "<string>",
"l1_gas_price": "<string>",
"l1_gas_used": "<string>",
"status": 123
}
}
}Transactions
Get wallet transactions summary
Get the earliest and latest transactions, and the transaction cound involving a wallet.
GET
/
somnia
/
v1
/
address
/
{walletAddress}
/
transactions
/
summary
Get wallet transactions summary
curl --request GET \
--url https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summaryimport requests
url = "https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary', 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://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary",
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://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary"
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://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.cloud.ormi.dev/somnia/v1/address/{walletAddress}/transactions/summary")
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{
"address": "<string>",
"transactions": {
"totalCount": 123,
"earliestTransaction": {
"block_hash": "<string>",
"block_number": 123,
"block_timestamp": "2023-11-07T05:31:56Z",
"from_address": "<string>",
"gas": "<string>",
"gas_price": "<string>",
"input": "<string>",
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>",
"nonce": "<string>",
"to_address": "<string>",
"transaction_hash": "<string>",
"transaction_index": 123,
"transaction_type": 123,
"value": "<string>",
"contract_address": "<string>",
"cumulative_gas_used": "<string>",
"effective_gas_price": "<string>",
"gas_used": "<string>",
"l1_fee": "<string>",
"l1_fee_scalar": "<string>",
"l1_gas_price": "<string>",
"l1_gas_used": "<string>",
"status": 123
},
"latestTransaction": {
"block_hash": "<string>",
"block_number": 123,
"block_timestamp": "2023-11-07T05:31:56Z",
"from_address": "<string>",
"gas": "<string>",
"gas_price": "<string>",
"input": "<string>",
"max_fee_per_gas": "<string>",
"max_priority_fee_per_gas": "<string>",
"nonce": "<string>",
"to_address": "<string>",
"transaction_hash": "<string>",
"transaction_index": 123,
"transaction_type": 123,
"value": "<string>",
"contract_address": "<string>",
"cumulative_gas_used": "<string>",
"effective_gas_price": "<string>",
"gas_used": "<string>",
"l1_fee": "<string>",
"l1_fee_scalar": "<string>",
"l1_gas_price": "<string>",
"l1_gas_used": "<string>",
"status": 123
}
}
}⌘I