Beta
Optional
opts: NewHttpServerOptionsExpress server instance
Optional
balancesPFI Balances API
Map of callbacks handlers for the available requests
PFI Exchanges API
PFI Offerings API
PFI DID
Setup the PFI routes and start a express server to listen for incoming requests
server port number
Optional
callback: (() => void)to be called when the server is ready
Set up a callback or overwrite the existing callback for the SubmitRfq endpoint
A callback to be invoked when a valid Rfq is sent to the CreateExchange endpoint.
Set up a callback or overwrite the existing callback for the GetBalances endpoint
A callback to be invoked when a valid request is sent to the GetBalances endpoint.
Set up a callback or overwrite the existing callback for the GetExchange endpoint
A callback to be invoked when a valid request is sent to the GetExchange endpoint.
Set up a callback or overwrite the existing callback for the GetExchanges endpoint
A callback to be invoked when a valid request is sent to the GetExchanges endpoint.
Set up a callback or overwrite the existing callback for the GetOfferings endpoint
A callback to be invoked when a valid request is sent to the GetOfferings endpoint.
Set up a callback or overwrite the existing callback for the for the SubmitMessage endpoint
A callback to be invoked when a valid Close is sent to the SubmitMessage endpoint.
Set up a callback or overwrite the existing callback for the for the SubmitMessage endpoint
A callback to be invoked when a valid Order is sent to the SubmitMessage endpoint.
TBDex HTTP Server powered by Express