Calculate Total w/ Fee

View as Markdown
### Calculate Total with Fee The **Calculate Total with Fee** endpoint lets you pre-calculate the payment channel's fee before generating a transaction. This is useful if you want to display a UI confirmation showing the total amount including fees on your platform. This endpoint is optional and depends on how you design your payment flow. It is recommended if your credentials apply an additional fee on top of the original amount.

Query parameters

channel_codestringOptional
Values are available via the Get Channels endpoint. Refer to the code parameter in the response.
amountintegerOptional
Must be between 0.01 and 50,000.

Response

OK
messagestring
dataobject