Transactions details
curl --request POST \
--url https://api.kas.fyi/v1/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transactionIds": [
"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a"
],
"includePayload": false
}
'import requests
url = "https://api.kas.fyi/v1/transactions"
payload = {
"transactionIds": ["a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a"],
"includePayload": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactionIds: ['a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a'],
includePayload: false
})
};
fetch('https://api.kas.fyi/v1/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.kas.fyi/v1/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactionIds' => [
'a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a'
],
'includePayload' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kas.fyi/v1/transactions"
payload := strings.NewReader("{\n \"transactionIds\": [\n \"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a\"\n ],\n \"includePayload\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kas.fyi/v1/transactions")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transactionIds\": [\n \"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a\"\n ],\n \"includePayload\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kas.fyi/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactionIds\": [\n \"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a\"\n ],\n \"includePayload\": false\n}"
response = http.request(request)
puts response.read_body{
"transactions": [
{
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"blockTime": 1749531022210,
"subnetworkId": "0000000000000000000000000000000000000000",
"hash": "f123bed13d88bc18236d977c0035267d0054b912170fe4ae619e93306685d2af",
"mass": "2036",
"blockHashes": [
"30ab8f5ac54c8aa9cbf9a69209a2061e7123293efc40630136c970abef59450b",
"f97afb6794c56e0bb283ea6a38cc51cc41303a055ef9376e707139928cffa588"
],
"acceptingBlockHash": "2a0c51fab2a7c7a187299e087a244d1e70acdc75e0214a661c62761e2d6bbf4f",
"isAccepted": true,
"confirmations": 10,
"payload": "0x",
"inputs": [
{
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"index": 0,
"signatureScript": "4183faed776b7f1b1ed32b97aafe3069ee357c80b637f5069ab859916a896ec69a59e9bebcc3e646587d59376a40c72dd0290f8ebdbf0b64f13e2d8f81d0fe106301",
"sigOpCount": 1,
"previousOutput": {
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"index": 0,
"amount": "31112708372",
"scriptPublicKey": "2010fdab002cff0ac15bfc8b982c5a616bef9e5a66f0c655f4f63f7d1cef39d2b4ac",
"scriptPublicKeyAddress": "kaspa:qqg0m2cq9nls4s2mlj9estz6v947l8j6vmcvv4057clh688088ftg7ce6p895",
"scriptPublicKeyType": "pubkey"
}
}
],
"outputs": [
{
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"index": 0,
"amount": "31112708372",
"scriptPublicKey": "2010fdab002cff0ac15bfc8b982c5a616bef9e5a66f0c655f4f63f7d1cef39d2b4ac",
"scriptPublicKeyAddress": "kaspa:qqg0m2cq9nls4s2mlj9estz6v947l8j6vmcvv4057clh688088ftg7ce6p895",
"scriptPublicKeyType": "pubkey"
}
]
}
]
}Transaction
Transactions details
Retrieve details for multiple transactions in a single request.
Maximum of 500 transactions per request.
POST
/
v1
/
transactions
Transactions details
curl --request POST \
--url https://api.kas.fyi/v1/transactions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"transactionIds": [
"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a"
],
"includePayload": false
}
'import requests
url = "https://api.kas.fyi/v1/transactions"
payload = {
"transactionIds": ["a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a"],
"includePayload": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactionIds: ['a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a'],
includePayload: false
})
};
fetch('https://api.kas.fyi/v1/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.kas.fyi/v1/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactionIds' => [
'a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a'
],
'includePayload' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kas.fyi/v1/transactions"
payload := strings.NewReader("{\n \"transactionIds\": [\n \"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a\"\n ],\n \"includePayload\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kas.fyi/v1/transactions")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transactionIds\": [\n \"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a\"\n ],\n \"includePayload\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kas.fyi/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactionIds\": [\n \"a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a\"\n ],\n \"includePayload\": false\n}"
response = http.request(request)
puts response.read_body{
"transactions": [
{
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"blockTime": 1749531022210,
"subnetworkId": "0000000000000000000000000000000000000000",
"hash": "f123bed13d88bc18236d977c0035267d0054b912170fe4ae619e93306685d2af",
"mass": "2036",
"blockHashes": [
"30ab8f5ac54c8aa9cbf9a69209a2061e7123293efc40630136c970abef59450b",
"f97afb6794c56e0bb283ea6a38cc51cc41303a055ef9376e707139928cffa588"
],
"acceptingBlockHash": "2a0c51fab2a7c7a187299e087a244d1e70acdc75e0214a661c62761e2d6bbf4f",
"isAccepted": true,
"confirmations": 10,
"payload": "0x",
"inputs": [
{
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"index": 0,
"signatureScript": "4183faed776b7f1b1ed32b97aafe3069ee357c80b637f5069ab859916a896ec69a59e9bebcc3e646587d59376a40c72dd0290f8ebdbf0b64f13e2d8f81d0fe106301",
"sigOpCount": 1,
"previousOutput": {
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"index": 0,
"amount": "31112708372",
"scriptPublicKey": "2010fdab002cff0ac15bfc8b982c5a616bef9e5a66f0c655f4f63f7d1cef39d2b4ac",
"scriptPublicKeyAddress": "kaspa:qqg0m2cq9nls4s2mlj9estz6v947l8j6vmcvv4057clh688088ftg7ce6p895",
"scriptPublicKeyType": "pubkey"
}
}
],
"outputs": [
{
"transactionId": "a7177c55769381a56c126e458c8bb6046613b8a8d45c2f8d3ca5dc71a065279a",
"index": 0,
"amount": "31112708372",
"scriptPublicKey": "2010fdab002cff0ac15bfc8b982c5a616bef9e5a66f0c655f4f63f7d1cef39d2b4ac",
"scriptPublicKeyAddress": "kaspa:qqg0m2cq9nls4s2mlj9estz6v947l8j6vmcvv4057clh688088ftg7ce6p895",
"scriptPublicKeyType": "pubkey"
}
]
}
]
}Cost
This endpoint costs 0.5 RU (Request Units) per call.Authorizations
API key required for authentication. Get your API key at https://developer.kas.fyi
Body
application/json
Response
200 - application/json
An array of transaction detail objects.
List of transactions retrieved.
Show child attributes
Show child attributes
⌘I