cURL
curl --request POST \
--url https://api.example.com/rpc/Trails/GetEdgeStatus \
--header 'Content-Type: application/json' \
--data '
{
"edgeId": "<string>"
}
'import requests
url = "https://api.example.com/rpc/Trails/GetEdgeStatus"
payload = { "edgeId": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({edgeId: '<string>'})
};
fetch('https://api.example.com/rpc/Trails/GetEdgeStatus', 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.example.com/rpc/Trails/GetEdgeStatus",
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([
'edgeId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.example.com/rpc/Trails/GetEdgeStatus"
payload := strings.NewReader("{\n \"edgeId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/rpc/Trails/GetEdgeStatus")
.header("Content-Type", "application/json")
.body("{\n \"edgeId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/rpc/Trails/GetEdgeStatus")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"edgeId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"initTransactionHash": "<string>",
"initChainId": 123,
"fillTransactionHash": "<string>",
"fillChainId": 123,
"refundTransactionHash": "<string>",
"refundChainId": 123,
"transactionStates": [
{
"id": "<string>",
"label": "<string>",
"chainId": 123,
"transactionHash": "<string>"
}
],
"failReason": "<string>"
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}Intents
GetEdgeStatus
POST
/
rpc
/
Trails
/
GetEdgeStatus
cURL
curl --request POST \
--url https://api.example.com/rpc/Trails/GetEdgeStatus \
--header 'Content-Type: application/json' \
--data '
{
"edgeId": "<string>"
}
'import requests
url = "https://api.example.com/rpc/Trails/GetEdgeStatus"
payload = { "edgeId": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({edgeId: '<string>'})
};
fetch('https://api.example.com/rpc/Trails/GetEdgeStatus', 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.example.com/rpc/Trails/GetEdgeStatus",
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([
'edgeId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.example.com/rpc/Trails/GetEdgeStatus"
payload := strings.NewReader("{\n \"edgeId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/rpc/Trails/GetEdgeStatus")
.header("Content-Type", "application/json")
.body("{\n \"edgeId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/rpc/Trails/GetEdgeStatus")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"edgeId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"initTransactionHash": "<string>",
"initChainId": 123,
"fillTransactionHash": "<string>",
"fillChainId": 123,
"refundTransactionHash": "<string>",
"refundChainId": 123,
"transactionStates": [
{
"id": "<string>",
"label": "<string>",
"chainId": 123,
"transactionHash": "<string>"
}
],
"failReason": "<string>"
}{
"error": "WebrpcEndpoint",
"code": 0,
"msg": "endpoint error",
"status": 400,
"cause": "<string>"
}{
"error": "WebrpcBadResponse",
"code": -5,
"msg": "bad response",
"status": 500,
"cause": "<string>"
}Overview
TheGetEdgeStatus endpoint returns the current status of an edge rail leg created by QuoteIntentEdge. Use it to track the external (Solana / Tron) bridge hop’s progress alongside the inner intent’s WaitIntentReceipt/GetIntentReceipt stream.
Request Parameters
Required Fields
- edgeId (string): The Trails edge quote ID returned by
QuoteIntentEdge. The server resolves the underlyingrelayRequestIdand origin chain from this ID, then queries the external provider.
Response
- status (string): The edge rail status. Maps to the
EdgeStatusenum values:PENDING,DEPOSITED,FILLED,REFUNDED,FAILED. - initTransactionHash (string, optional): The Relay deposit (origin-side) transaction hash — on the rail chain when
mode = ORIGIN, on the EVM handoff chain whenmode = DESTINATION. Pair it withinitChainId, never with the rail chain unconditionally. - initChainId (number, optional): Chain the init transaction executed on (Relay’s origin side).
- fillTransactionHash (string, optional): The Relay fill (destination-side) transaction hash — on the rail chain when
mode = DESTINATION, on the intent’s EVM origin chain whenmode = ORIGIN. Pair it withfillChainId. - fillChainId (number, optional): Chain the fill transaction executed on (Relay’s destination side).
- refundTransactionHash (string, optional): The Relay refund transaction hash. Refunds return on Relay’s origin side (same chain as the init transaction). Pair it with
refundChainId. - refundChainId (number, optional): Chain the refund transaction executed on (Relay’s origin side).
- transactionStates (array, optional): Detailed per-transaction state info.
- failReason (string, optional): Populated when the edge rail failed.
Example
const response = await fetch('https://trails-api.sequence.app/rpc/Trails/GetEdgeStatus', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Access-Key': 'YOUR_ACCESS_KEY'
},
body: JSON.stringify({ edgeId: 'edge_abc123' })
});
const status = await response.json();
if (status.status === 'FILLED') {
console.log('Edge filled, fill tx:', status.fillTransactionHash);
} else if (status.status === 'REFUNDED') {
console.log('Edge refunded:', status.refundTransactionHash);
}
Next Steps
QuoteIntentEdge
Create the edge quote
WaitIntentReceipt
Stream the inner intent’s receipt updates
Was this page helpful?