curl --request GET \
--url https://router-api.initia.xyz/v2/tx/statusimport requests
url = "https://router-api.initia.xyz/v2/tx/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://router-api.initia.xyz/v2/tx/status', 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://router-api.initia.xyz/v2/tx/status",
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://router-api.initia.xyz/v2/tx/status"
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://router-api.initia.xyz/v2/tx/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://router-api.initia.xyz/v2/tx/status")
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{
"state": "STATE_COMPLETED_SUCCESS",
"transfers": [],
"transfer_sequence": [
{
"src_chain_id": "interwoven-1",
"dst_chain_id": "8453",
"state": "TRANSFER_SUCCESS"
}
],
"next_blocking_transfer": null,
"transfer_asset_release": null,
"error": null
}Get Transaction Status
Polls the current status of a transaction that was previously registered with Track Transaction (POST /v2/tx/track). Returns the overall status and the state of each hop in the transfer sequence.
Call this endpoint repeatedly until the status reaches a terminal state (e.g. STATE_COMPLETED or STATE_FAILED). This is useful for showing transfer progress in your UI.
curl --request GET \
--url https://router-api.initia.xyz/v2/tx/statusimport requests
url = "https://router-api.initia.xyz/v2/tx/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://router-api.initia.xyz/v2/tx/status', 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://router-api.initia.xyz/v2/tx/status",
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://router-api.initia.xyz/v2/tx/status"
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://router-api.initia.xyz/v2/tx/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://router-api.initia.xyz/v2/tx/status")
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{
"state": "STATE_COMPLETED_SUCCESS",
"transfers": [],
"transfer_sequence": [
{
"src_chain_id": "interwoven-1",
"dst_chain_id": "8453",
"state": "TRANSFER_SUCCESS"
}
],
"next_blocking_transfer": null,
"transfer_asset_release": null,
"error": null
}Query Parameters
The transaction hash to check.
The chain ID where the transaction was submitted.
Response
Successful response
Overall end-to-end transaction state (e.g. STATE_SUBMITTED, STATE_PENDING, STATE_COMPLETED_SUCCESS, STATE_COMPLETED_ERROR, STATE_ABANDONED, STATE_PENDING_ERROR).
Transfer status for all transfers in the route.
Deprecated. Flat list of transfer events in sequence order.
Show child attributes
Show child attributes
The next transfer that is blocking progress, if any.
Show child attributes
Show child attributes
Information about released assets.
Show child attributes
Show child attributes
Error details if the transaction failed.
Was this page helpful?