Fee Calculation
Trade Transfer Payments Fee Calculation (v1.0.0)
Download OpenAPI specification:Download
API Documentation for Trade Transfer Payments Fee Calculation
PaymentFeeCalc
PaymentFeeCalc calculates the fees that must be paid for creating or accepting a specific payment.
Authorizations:
query Parameters
| payment.source | string (source) source is the account that created this Payment. It is considered the owner of the payment. |
| payment.sourceAmount.denom | string (denom) (proto string) |
| payment.sourceAmount.amount | string (amount) (proto string) |
| payment.target | string (target) target is the account that can accept this Payment. The target is the only thing allowed to change in a payment. I.e. it can be empty initially and updated later as needed. |
| payment.externalId | string (external_id) external_id is used along with the source to uniquely identify this Payment. A source can only have one Payment with any given external id. A source can have two payments with two different external ids. Two different sources can each have a payment with the same external id. But a source cannot have two different payments each with the same external id. An external id can be reused by a source once the payment is accepted, rejected, or cancelled. The external id is limited to 100 bytes. An empty string is a valid external id. |
Responses
Response samples
- 200
{- "feeCreate": [
- {
- "denom": "string",
- "amount": "string"
}
], - "feeAccept": [
- {
- "denom": "string",
- "amount": "string"
}
]
}