Skip to main content
Methods are snake_case, but request fields keep the API’s camelCase keys. Each method returns the response’s data and raises RavnApiError (code, details, meta; the message is str(e)) on failure. The client signs nothing: handle each execution as in Execution types.

execute

For a Hinkal quote sent with authorizeSteps: True, execute first answers AUTHORIZE twice. Check each step with check_authorize, sign it with the paying wallet, and call execute again until the TRANSACTION comes back. Check that with check_hinkal_deposit before sending anything.
Both raise UnsafeExecutionError when a step isn’t what your user asked for. This client checks Hinkal’s answers only, not other venues’.

recover_stuck_funds

Gets a failed Hinkal swap’s funds back to the paying wallet, checking every step:
Building an AI agent? The MCP server covers the same calls with no code.