Sep06FeeRequest

data class Sep06FeeRequest(val operation: String, val assetCode: String, val amount: String, val type: String? = null, val jwt: String? = null)

Request to query the fee for a deposit or withdrawal operation.

Note: The /fee endpoint is deprecated in SEP-6. Anchors should use SEP-38 quotes for fee calculation instead. This request class is provided for compatibility with anchors that still support the legacy fee endpoint.

Constructors

Link copied to clipboard
constructor(operation: String, assetCode: String, amount: String, type: String? = null, jwt: String? = null)

Properties

Link copied to clipboard

Amount for which to calculate the fee.

Link copied to clipboard

Code of the asset for the operation.

Link copied to clipboard
val jwt: String?

SEP-10 JWT token for authentication. Optional as some anchors allow fee queries without authentication.

Link copied to clipboard

Type of operation: "deposit" or "withdraw".

Link copied to clipboard
val type: String?

Type of deposit or withdrawal method. The available types can be found in the /info response for each asset.