Intents
Refund an expired intent
Changed onManually refunds an expired intent for the authenticated client. This is an escape hatch for recovering stuck funds when automation fails.
post/intents/{intentAddress}/refund
Request
- Base URLhttps://api.chainrails.io/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
intentAddressstring required
Example:0x1234567890abcdef1234567890abcdef12345678
The blockchain address of the intent
Response
Refund attempted
Example response
{
"success": true,
"message": "Refund successful",
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}Changes
- info
endpoint added
- info