TbdexHttpClient

A client of the tbDEX HTTP interface for communicating with a PFI.

Functions

Link copied to clipboard

Send RFQ message to the PFI.

fun createExchange(rfq: Rfq, replyTo: String)

Send RFQ message and include a replyTo URL for the PFI to send a callback to.

Link copied to clipboard
fun getBalances(pfiDid: String, requesterDid: <Error class: unknown class>): List<Balance>

Fetches balances from a PFI.

Link copied to clipboard
fun getExchange(pfiDid: String, requesterDid: <Error class: unknown class>, exchangeId: String): Exchange

Fetches a specific exchange identified by its ID from the PFI.

Link copied to clipboard
fun getExchanges(pfiDid: String, requesterDid: <Error class: unknown class>, filter: GetExchangesFilter? = null): List<Exchange>

Fetches exchanges from the PFI based on the provided filters.

Link copied to clipboard
fun getOfferings(pfiDid: String, filter: GetOfferingsFilter? = null): List<Offering>

Fetches offerings from a PFI.

Link copied to clipboard
fun submitClose(close: Close)

Send Close message to the PFI.

Link copied to clipboard
fun submitOrder(order: Order)

Send Order message to the PFI.