Skip to content

API endpoint to return a transfer's estimated fees #4771

@rakanalh

Description

@rakanalh

Abstract

Currently, Raiden requests a route from the PFS when the user decides to send a transfer of an X amount. The mediation fees charged by mediators of this transfer is unknown to the user before hitting the send button or calling the transfer API.

Motivation

To improve UX, Raiden should provide an endpoint that could be integrated in the UI to return the estimated fee value depending on the transfer amount.

Specification

  • Make sure there is a decision on whether the PFS will be paid for such a request or not.
  • Create an API endpoint which receives the transfer's parameters.
  • Call the PFS to request the estimated fee for the transfer.
  • Optionally, the PFS may or may not be paid for this request. If it is, then an IOU would be required by the PFS.
  • Return the estimated fee value
  • Write tests for this new endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component / APIIssues that relate the the APIs Raiden provides.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions