cURL
Protocol
GetSupportedIntentProtocols
POST
cURL
Overview
GetSupportedIntentProtocols returns the intent-protocol versions the Trails API currently serves. Each version identifies a different orchestration + contracts stack; a quote produced for v1_5 cannot be committed against v1 and vice versa.
Use this alongside GetDefaultIntentProtocol and GetProtocolContracts to negotiate the correct version at runtime instead of hardcoding it.
Request
GetSupportedIntentProtocols takes no parameters.
Response
- versions (
IntentProtocolVersion[]) — supported versions in no particular order. Members:v1,v1_5.
Example
Next Steps
GetDefaultIntentProtocol
Get the API’s current default protocol version
GetProtocolContracts
Resolve on-chain contract addresses for a protocol version
Body
application/json
The body is of type object.
Response
OK
[]IntentProtocolVersion
Represented as string on the server side
Available options:
v1, v1_5