Skip to content

add API to get swap info #54

@zoedberg

Description

@zoedberg

Add a new API to get info about a single swap via its hash.

  • endpoint: /getswap
  • method: POST (needed to pass the parameter in a request body)
  • request body: GetSwapRequest { payment_hash: String } (the hash of the swap to get the info for)
  • response body: GetSwapResponse { swap: Swap } (Swap structure already exists)
  • documentation: add to README.md and openapi.yaml
  • hint: check the implementation of /listswaps and /getpayment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions