Skip to main content
POST
/
rpc
/
Trails
/
GetEdges
GetEdges returns edge rails and modes currently enabled on this deployment.
curl --request POST \
  --url https://trails-api.sequence.app/rpc/Trails/GetEdges \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "edges": [
    {
      "modes": []
    }
  ]
}

Overview

The GetEdges endpoint returns the edge rails and modes currently enabled on this Trails deployment. Use it to discover whether Solana or Tron edges are available — and whether they are configured for ORIGIN, DESTINATION, or both — before calling QuoteIntentEdge.

Request

GetEdges takes no parameters.

Response

  • edges (array of EdgeRailModes):
    • rail (EdgeRail): SOLANA or TRON.
    • modes (array of EdgeMode): One or both of ORIGIN, DESTINATION.

Example

const response = await fetch('https://trails-api.sequence.app/rpc/Trails/GetEdges', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-Access-Key': 'YOUR_ACCESS_KEY'
  },
  body: JSON.stringify({})
});

const { edges } = await response.json();

for (const edge of edges) {
  console.log(`${edge.rail} supports modes:`, edge.modes);
}

Next Steps

QuoteIntentEdge

Quote a cross-chain intent using an edge rail

GetEdgeStatus

Track an edge rail’s status

Body

application/json

The body is of type object.

Response

OK

edges
object[]

[]EdgeRailModes