cURL
Protocol
GetDefaultIntentProtocol
POST
cURL
Overview
GetDefaultIntentProtocol returns the intent-protocol version the Trails API defaults to when no intentProtocol is specified on a quote or commit. Clients that pin to a specific version should ignore this; clients that want to track the latest stable protocol without shipping a new build can call this at startup.
See GetSupportedIntentProtocols for the full list of versions the API accepts, and GetProtocolContracts to resolve the deployed contract addresses for a version.
Request
GetDefaultIntentProtocol takes no parameters.
Response
- version (
IntentProtocolVersion) — the current default. Values:v1,v1_5.
Example
Next Steps
GetSupportedIntentProtocols
List every supported intent-protocol version
GetProtocolContracts
Look up the contract addresses for a protocol version
Body
application/json
The body is of type object.
Response
OK
Represented as string on the server side
Available options:
v1, v1_5