Client for Riddler's Relay API: the Tron cross-chain rail.
Relay settles transfers where one leg is Tron. It is deposit-address based, so the client never signs anything: it requests a quote (which returns a Riddler-managed deposit address), the user sends funds to that address, and the client polls status until terminal. Riddler is the single solver behind it.
Endpoints
get_quote/2-- POST /relay/quoteexecute/2-- POST /relay/executeget_status/2-- GET /relay/status/:transfer_id
Configuration
config = %{base_url: "https://riddler.example.com", auth_token: "token"}
Summary
Functions
Start execution of a quoted transfer. Returns the initial status.
Request a Tron cross-chain quote with a deposit address.
Get transfer status by id.
Types
Functions
@spec execute(config(), Raxol.Payments.Relay.Schemas.ExecuteRequest.t()) :: {:ok, Raxol.Payments.Relay.Schemas.StatusResponse.t()} | error()
Start execution of a quoted transfer. Returns the initial status.
@spec get_quote(config(), Raxol.Payments.Relay.Schemas.QuoteRequest.t()) :: {:ok, Raxol.Payments.Relay.Schemas.QuoteResponse.t()} | error()
Request a Tron cross-chain quote with a deposit address.
@spec get_status(config(), String.t()) :: {:ok, Raxol.Payments.Relay.Schemas.StatusResponse.t()} | error()
Get transfer status by id.